summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMichael Brown2007-07-28 23:55:31 +0200
committerMichael Brown2007-07-28 23:55:31 +0200
commite3484e26eba1ba36481d814b35f8561a0f4cb8a6 (patch)
tree2b0691c2aae17c8aca095d88ebcc172a7e06805c /src/drivers
parentEnsure clock line is in the idle state before asserting chip select. (diff)
parentMake has_key() a static inline, rather than omitting it altogether. (diff)
downloadipxe-e3484e26eba1ba36481d814b35f8561a0f4cb8a6.tar.gz
ipxe-e3484e26eba1ba36481d814b35f8561a0f4cb8a6.tar.xz
ipxe-e3484e26eba1ba36481d814b35f8561a0f4cb8a6.zip
Merge branch 'symcheck2'
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/net/bnx2.c2
-rwxr-xr-xsrc/drivers/net/ns83820.c2
-rw-r--r--src/drivers/net/pcnet32.c2
-rw-r--r--src/drivers/net/r8169.c4
-rw-r--r--src/drivers/net/via-velocity.h4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/drivers/net/bnx2.c b/src/drivers/net/bnx2.c
index 105e9c3f4..fdd6655bb 100644
--- a/src/drivers/net/bnx2.c
+++ b/src/drivers/net/bnx2.c
@@ -43,7 +43,7 @@ static struct bss {
struct statistics_block stats_blk;
} bnx2_bss;
-struct bnx2 bnx2;
+static struct bnx2 bnx2;
static struct flash_spec flash_table[] =
{
diff --git a/src/drivers/net/ns83820.c b/src/drivers/net/ns83820.c
index 8b8500f48..3262ba6ce 100755
--- a/src/drivers/net/ns83820.c
+++ b/src/drivers/net/ns83820.c
@@ -364,7 +364,7 @@ struct ring_desc {
#endif
/* Private Storage for the NIC */
-struct ns83820_private {
+static struct ns83820_private {
u8 *base;
int up;
long idle;
diff --git a/src/drivers/net/pcnet32.c b/src/drivers/net/pcnet32.c
index 0328cf2c3..63353e3fe 100644
--- a/src/drivers/net/pcnet32.c
+++ b/src/drivers/net/pcnet32.c
@@ -67,7 +67,7 @@ static struct nic_operations pcnet32_operations;
/* End Etherboot Specific */
-int cards_found /* __initdata */ ;
+static int cards_found = 0 /* __initdata */ ;
#ifdef REMOVE
/* FIXME: Remove these they are probably pointless */
diff --git a/src/drivers/net/r8169.c b/src/drivers/net/r8169.c
index d9854e9c4..08d1c6f62 100644
--- a/src/drivers/net/r8169.c
+++ b/src/drivers/net/r8169.c
@@ -400,7 +400,7 @@ static void rtl8169_hw_PHY_config(struct nic *nic __unused);
// 20-16 5-bit GMII/MII register address
// 15-0 16-bit GMII/MII register data
//=================================================================
-void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
+static void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
{
int i;
@@ -418,7 +418,7 @@ void RTL8169_WRITE_GMII_REG(unsigned long ioaddr, int RegAddr, int value)
}
//=================================================================
-int RTL8169_READ_GMII_REG(unsigned long ioaddr, int RegAddr)
+static int RTL8169_READ_GMII_REG(unsigned long ioaddr, int RegAddr)
{
int i, value = -1;
diff --git a/src/drivers/net/via-velocity.h b/src/drivers/net/via-velocity.h
index e0b8809f1..c296d2899 100644
--- a/src/drivers/net/via-velocity.h
+++ b/src/drivers/net/via-velocity.h
@@ -1204,7 +1204,7 @@ struct velocity_info_tbl {
u32 flags;
};
-struct velocity_info_tbl *info;
+static struct velocity_info_tbl *info;
#define mac_hw_mibs_init(regs) {\
BYTE_REG_BITS_ON(MIBCR_MIBFRZ,&((regs)->MIBCR));\
@@ -1768,7 +1768,7 @@ struct velocity_opt {
#define TX_DESC_MAX 256
#define TX_DESC_DEF TX_DESC_MIN
-struct velocity_info {
+static struct velocity_info {
// struct list_head list;
struct pci_device *pdev;