Browse Source

Coerced into actually compiling.

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
fba7f011d2
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/drivers/net/depca.c

+ 4
- 4
src/drivers/net/depca.c View File

502
 	memset(lp.init_block.mcast_table, 0, sizeof(lp.init_block.mcast_table));
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
 	outw(CSR1, nic->ioaddr + DEPCA_ADDR);	/* initialisation block address LSW */
507
 	outw(CSR1, nic->ioaddr + DEPCA_ADDR);	/* initialisation block address LSW */
508
 	outw((u16) (lp.sh_mem & LA_MASK), nic->ioaddr + DEPCA_DATA);
508
 	outw((u16) (lp.sh_mem & LA_MASK), nic->ioaddr + DEPCA_DATA);
513
 	outw(CSR0, nic->ioaddr + DEPCA_ADDR);	/* Point back to CSR0 */
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
 	int		i;
518
 	int		i;
519
 
519
 
582
 
582
 
583
 	/* Load the initialisation block */
583
 	/* Load the initialisation block */
584
 	depca_init_ring(nic);
584
 	depca_init_ring(nic);
585
-	LoadCSRs();
586
-	InitRestartDepca();
585
+	LoadCSRs(nic);
586
+	InitRestartDepca(nic);
587
 }
587
 }
588
 
588
 
589
 /**************************************************************************
589
 /**************************************************************************

Loading…
Cancel
Save