|
@@ -502,7 +502,7 @@ static void depca_init_ring(struct nic *nic)
|
502
|
502
|
memset(lp.init_block.mcast_table, 0, sizeof(lp.init_block.mcast_table));
|
503
|
503
|
}
|
504
|
504
|
|
505
|
|
-static void LoadCSRs(void)
|
|
505
|
+static inline void LoadCSRs(struct nic *nic)
|
506
|
506
|
{
|
507
|
507
|
outw(CSR1, nic->ioaddr + DEPCA_ADDR); /* initialisation block address LSW */
|
508
|
508
|
outw((u16) (lp.sh_mem & LA_MASK), nic->ioaddr + DEPCA_DATA);
|
|
@@ -513,7 +513,7 @@ static void LoadCSRs(void)
|
513
|
513
|
outw(CSR0, nic->ioaddr + DEPCA_ADDR); /* Point back to CSR0 */
|
514
|
514
|
}
|
515
|
515
|
|
516
|
|
-static int InitRestartDepca(void)
|
|
516
|
+static inline int InitRestartDepca(struct nic *nic)
|
517
|
517
|
{
|
518
|
518
|
int i;
|
519
|
519
|
|
|
@@ -582,8 +582,8 @@ static void depca_reset(struct nic *nic)
|
582
|
582
|
|
583
|
583
|
/* Load the initialisation block */
|
584
|
584
|
depca_init_ring(nic);
|
585
|
|
- LoadCSRs();
|
586
|
|
- InitRestartDepca();
|
|
585
|
+ LoadCSRs(nic);
|
|
586
|
+ InitRestartDepca(nic);
|
587
|
587
|
}
|
588
|
588
|
|
589
|
589
|
/**************************************************************************
|