diff options
author | Michael Brown | 2005-04-22 18:06:46 +0200 |
---|---|---|
committer | Michael Brown | 2005-04-22 18:06:46 +0200 |
commit | fba7f011d2cd5d6e51f551262ec56adde52bdd76 (patch) | |
tree | d537717da6140e407ad50992778e31d412f73593 /src/drivers/net/depca.c | |
parent | Fields in struct pci_device slightly changed. (diff) | |
download | ipxe-fba7f011d2cd5d6e51f551262ec56adde52bdd76.tar.gz ipxe-fba7f011d2cd5d6e51f551262ec56adde52bdd76.tar.xz ipxe-fba7f011d2cd5d6e51f551262ec56adde52bdd76.zip |
Coerced into actually compiling.
Diffstat (limited to 'src/drivers/net/depca.c')
-rw-r--r-- | src/drivers/net/depca.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/net/depca.c b/src/drivers/net/depca.c index f8fb97ae..d6da9b78 100644 --- a/src/drivers/net/depca.c +++ b/src/drivers/net/depca.c @@ -502,7 +502,7 @@ static void depca_init_ring(struct nic *nic) memset(lp.init_block.mcast_table, 0, sizeof(lp.init_block.mcast_table)); } -static void LoadCSRs(void) +static inline void LoadCSRs(struct nic *nic) { outw(CSR1, nic->ioaddr + DEPCA_ADDR); /* initialisation block address LSW */ outw((u16) (lp.sh_mem & LA_MASK), nic->ioaddr + DEPCA_DATA); @@ -513,7 +513,7 @@ static void LoadCSRs(void) outw(CSR0, nic->ioaddr + DEPCA_ADDR); /* Point back to CSR0 */ } -static int InitRestartDepca(void) +static inline int InitRestartDepca(struct nic *nic) { int i; @@ -582,8 +582,8 @@ static void depca_reset(struct nic *nic) /* Load the initialisation block */ depca_init_ring(nic); - LoadCSRs(); - InitRestartDepca(); + LoadCSRs(nic); + InitRestartDepca(nic); } /************************************************************************** |