Browse Source

Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
7e8624a26f

+ 12
- 2
src/drivers/net/3c509-eisa.c View File

15
  */
15
  */
16
 static int el3_eisa_probe ( struct nic *nic, struct eisa_device *eisa ) {
16
 static int el3_eisa_probe ( struct nic *nic, struct eisa_device *eisa ) {
17
 	
17
 	
18
-	enable_eisa_device ( eisa );
19
-	eisa_fill_nic ( nic, eisa );
20
 
18
 
19
+        nic->ioaddr = eisa->ioaddr;
20
+        nic->irqno = 0;
21
+        enable_eisa_device ( eisa );
22
+        
21
 	/* Hand off to generic t5x9 probe routine */
23
 	/* Hand off to generic t5x9 probe routine */
22
 	return t5x9_probe ( nic, ISA_PROD_ID ( PROD_ID ), ISA_PROD_ID_MASK );
24
 	return t5x9_probe ( nic, ISA_PROD_ID ( PROD_ID ), ISA_PROD_ID_MASK );
23
 }
25
 }
37
 	 el3_eisa_probe, el3_eisa_disable );
39
 	 el3_eisa_probe, el3_eisa_disable );
38
 
40
 
39
 ISA_ROM ( "3c509-eisa","3c509 (EISA)" );
41
 ISA_ROM ( "3c509-eisa","3c509 (EISA)" );
42
+
43
+/*
44
+ * Local variables:
45
+ *  c-basic-offset: 8
46
+ *  c-indent-level: 8
47
+ *  tab-width: 8
48
+ * End:
49
+ */

+ 0
- 2
src/drivers/net/3c515.c View File

614
 
614
 
615
 	/* Direct copy from Beckers 3c515.c removing any ISAPNP sections */
615
 	/* Direct copy from Beckers 3c515.c removing any ISAPNP sections */
616
 
616
 
617
-	isapnp_fill_nic ( nic, isapnp );
618
-
619
 	nic->ioaddr = isapnp->ioaddr;
617
 	nic->ioaddr = isapnp->ioaddr;
620
 	nic->irqno = isapnp->irqno;
618
 	nic->irqno = isapnp->irqno;
621
 	activate_isapnp_device ( isapnp );
619
 	activate_isapnp_device ( isapnp );

+ 8
- 1
src/drivers/net/3c529.c View File

23
 static int t529_probe ( struct nic *nic, struct mca_device *mca ) {
23
 static int t529_probe ( struct nic *nic, struct mca_device *mca ) {
24
 
24
 
25
 	/* Retrieve NIC parameters from MCA device parameters */
25
 	/* Retrieve NIC parameters from MCA device parameters */
26
-	mca_fill_nic ( nic, mca );
27
 	nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
26
 	nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
28
 	nic->irqno = mca->pos[5] & 0x0f;
27
 	nic->irqno = mca->pos[5] & 0x0f;
29
 	printf ( "3c529 board found on MCA at %#hx IRQ %d -",
28
 	printf ( "3c529 board found on MCA at %#hx IRQ %d -",
51
 	 t529_probe, t529_disable );
50
 	 t529_probe, t529_disable );
52
 
51
 
53
 ISA_ROM( "3c529", "3c529 == MCA 3c509" );
52
 ISA_ROM( "3c529", "3c529 == MCA 3c509" );
53
+
54
+/*
55
+ * Local variables:
56
+ *  c-basic-offset: 8
57
+ *  c-indent-level: 8
58
+ *  tab-width: 8
59
+ * End:
60
+ */

+ 2
- 2
src/drivers/net/3c595.c View File

479
 	eth_nic_base = pci->ioaddr;
479
 	eth_nic_base = pci->ioaddr;
480
 
480
 
481
 	nic->irqno  = 0;
481
 	nic->irqno  = 0;
482
-	pci_fill_nic ( nic, pci );
483
 	nic->ioaddr = pci->ioaddr;
482
 	nic->ioaddr = pci->ioaddr;
484
 
483
 
485
 	GO_WINDOW(0);
484
 	GO_WINDOW(0);
547
 /*
546
 /*
548
  * Local variables:
547
  * Local variables:
549
  *  c-basic-offset: 8
548
  *  c-basic-offset: 8
549
+ *  c-indent-level: 8
550
+ *  tab-width: 8
550
  * End:
551
  * End:
551
  */
552
  */
552
-

+ 8
- 2
src/drivers/net/3c90x.c View File

713
 
713
 
714
     adjust_pci_device(pci);
714
     adjust_pci_device(pci);
715
 
715
 
716
-    pci_fill_nic ( nic, pci );
717
-
718
     nic->ioaddr = pci->ioaddr;
716
     nic->ioaddr = pci->ioaddr;
719
     nic->irqno = 0;
717
     nic->irqno = 0;
720
 
718
 
1016
 
1014
 
1017
 DRIVER ( "3C90X", nic_driver, pci_driver, a3c90x_driver,
1015
 DRIVER ( "3C90X", nic_driver, pci_driver, a3c90x_driver,
1018
 	 a3c90x_probe, a3c90x_disable );
1016
 	 a3c90x_probe, a3c90x_disable );
1017
+
1018
+/*
1019
+ * Local variables:
1020
+ *  c-basic-offset: 8
1021
+ *  c-indent-level: 8
1022
+ *  tab-width: 8
1023
+ * End:
1024
+ */

+ 10
- 1
src/drivers/net/amd8111e.c View File

653
 	struct amd8111e_priv *lp = &amd8111e;
653
 	struct amd8111e_priv *lp = &amd8111e;
654
 	unsigned long mmio_start, mmio_len;
654
 	unsigned long mmio_start, mmio_len;
655
 
655
 
656
-	pci_fill_nic ( nic, pdev );
656
+        nic->ioaddr = pdev->ioaddr;
657
+        nic->irqno  = pdev->irq;
657
 	
658
 	
658
 	mmio_start = pci_bar_start(pdev, PCI_BASE_ADDRESS_0);
659
 	mmio_start = pci_bar_start(pdev, PCI_BASE_ADDRESS_0);
659
 	mmio_len = pci_bar_size(pdev, PCI_BASE_ADDRESS_0);
660
 	mmio_len = pci_bar_size(pdev, PCI_BASE_ADDRESS_0);
681
 
682
 
682
 DRIVER ( "AMD8111E", nic_driver, pci_driver, amd8111e_driver,
683
 DRIVER ( "AMD8111E", nic_driver, pci_driver, amd8111e_driver,
683
 	 amd8111e_probe, amd8111e_disable );
684
 	 amd8111e_probe, amd8111e_disable );
685
+
686
+/*
687
+ * Local variables:
688
+ *  c-basic-offset: 8
689
+ *  c-indent-level: 8
690
+ *  tab-width: 8
691
+ * End:
692
+ */

+ 5
- 4
src/drivers/net/cs89x0.c View File

477
 	return 1;
477
 	return 1;
478
 }
478
 }
479
 
479
 
480
-static int cs89x0_probe ( struct nic *nic, struct isa_device *isa ) {
480
+static int cs89x0_probe ( struct nic *nic, struct isa_device *isa __unused ) {
481
 	int      i, result = -1;
481
 	int      i, result = -1;
482
 	unsigned rev_type = 0, isa_cnf, cs_revision;
482
 	unsigned rev_type = 0, isa_cnf, cs_revision;
483
 	unsigned short eeprom_buff[CHKSUM_LEN];
483
 	unsigned short eeprom_buff[CHKSUM_LEN];
484
 
484
 
485
-	isa_fill_nic ( nic, isa );
486
 	nic->ioaddr &= ~1; /* LSB = 1 indicates a more aggressive probe */
485
 	nic->ioaddr &= ~1; /* LSB = 1 indicates a more aggressive probe */
487
-
488
 	eth_nic_base = nic->ioaddr;
486
 	eth_nic_base = nic->ioaddr;
489
 
487
 
490
 	/* get the chip type */
488
 	/* get the chip type */
552
 			else printf("\ncs: BUG: isa_config is %d\n", i); }
550
 			else printf("\ncs: BUG: isa_config is %d\n", i); }
553
 		eth_irqno = i; }
551
 		eth_irqno = i; }
554
 	
552
 	
553
+        nic->irqno = eth_irqno;
554
+
555
 	/* Retrieve and print the ethernet address. */
555
 	/* Retrieve and print the ethernet address. */
556
 	for (i=0; i<ETH_ALEN; i++) {
556
 	for (i=0; i<ETH_ALEN; i++) {
557
 		nic->node_addr[i] = ((unsigned char *)eeprom_buff)[i];
557
 		nic->node_addr[i] = ((unsigned char *)eeprom_buff)[i];
712
 /*
712
 /*
713
  * Local variables:
713
  * Local variables:
714
  *  c-basic-offset: 8
714
  *  c-basic-offset: 8
715
+ *  c-indent-level: 8
716
+ *  tab-width: 8
715
  * End:
717
  * End:
716
  */
718
  */
717
-

+ 10
- 1
src/drivers/net/davicom.c View File

666
   dev_id  = pci->device;
666
   dev_id  = pci->device;
667
   ioaddr  = pci->ioaddr;
667
   ioaddr  = pci->ioaddr;
668
 
668
 
669
-  pci_fill_nic ( nic, pci );
669
+  nic->ioaddr = pci->ioaddr;
670
+  nic->irqno = 0;
670
 
671
 
671
   /* wakeup chip */
672
   /* wakeup chip */
672
   pci_write_config_dword(pci, 0x40, 0x00000000);
673
   pci_write_config_dword(pci, 0x40, 0x00000000);
714
 
715
 
715
 DRIVER ( "DAVICOM", nic_driver, pci_driver, davicom_driver,
716
 DRIVER ( "DAVICOM", nic_driver, pci_driver, davicom_driver,
716
 	 davicom_probe, davicom_disable );
717
 	 davicom_probe, davicom_disable );
718
+
719
+/*
720
+ * Local variables:
721
+ *  c-basic-offset: 8
722
+ *  c-indent-level: 8
723
+ *  tab-width: 8
724
+ * End:
725
+ */

+ 8
- 1
src/drivers/net/depca.c View File

742
 	long	sum, chksum;
742
 	long	sum, chksum;
743
 
743
 
744
 	nic->irqno    = 0;
744
 	nic->irqno    = 0;
745
-	isa_fill_nic ( nic, isa );
746
 	nic->ioaddr   = isa->ioaddr;
745
 	nic->ioaddr   = isa->ioaddr;
747
 
746
 
748
 	for (i = 0, j = 0, sum = 0; j < 3; j++) {
747
 	for (i = 0, j = 0, sum = 0; j < 3; j++) {
794
 ISA_ROM ( "depca", "Digital DE100 and DE200" );
793
 ISA_ROM ( "depca", "Digital DE100 and DE200" );
795
 
794
 
796
 #endif
795
 #endif
796
+
797
+/*
798
+ * Local variables:
799
+ *  c-basic-offset: 8
800
+ *  c-indent-level: 8
801
+ *  tab-width: 8
802
+ * End:
803
+ */

+ 8
- 1
src/drivers/net/dmfe.c View File

496
 	dmfe_reset(nic);
496
 	dmfe_reset(nic);
497
 
497
 
498
 	nic->irqno  = 0;
498
 	nic->irqno  = 0;
499
-	pci_fill_nic ( nic, pci );
500
 	nic->ioaddr = pci->ioaddr;
499
 	nic->ioaddr = pci->ioaddr;
501
 
500
 
502
 	/* point to NIC specific routines */
501
 	/* point to NIC specific routines */
1216
 
1215
 
1217
 DRIVER ( "DMFE/PCI", nic_driver, pci_driver, dmfe_driver,
1216
 DRIVER ( "DMFE/PCI", nic_driver, pci_driver, dmfe_driver,
1218
 	 dmfe_probe, dmfe_disable );
1217
 	 dmfe_probe, dmfe_disable );
1218
+
1219
+/*
1220
+ * Local variables:
1221
+ *  c-basic-offset: 8
1222
+ *  c-indent-level: 8
1223
+ *  tab-width: 8
1224
+ * End:
1225
+ */

+ 2
- 2
src/drivers/net/e1000/e1000.c View File

728
 	
728
 	
729
 	switch ( enable ) {
729
 	switch ( enable ) {
730
 	case 0 :
730
 	case 0 :
731
-		e1000_irq_enable ( adapter );
731
+		e1000_irq_disable ( adapter );
732
 		break;
732
 		break;
733
 	case 1 :
733
 	case 1 :
734
-		e1000_irq_disable ( adapter );
734
+		e1000_irq_enable ( adapter );
735
 		break;
735
 		break;
736
 	case 2 :
736
 	case 2 :
737
 		e1000_irq_force ( adapter );
737
 		e1000_irq_force ( adapter );

+ 8
- 1
src/drivers/net/eepro.c View File

562
 	const char *name;
562
 	const char *name;
563
 
563
 
564
 	nic->irqno  = 0;
564
 	nic->irqno  = 0;
565
-	isa_fill_nic ( nic, isa );
566
 	nic->ioaddr = isa->ioaddr;
565
 	nic->ioaddr = isa->ioaddr;
567
 
566
 
568
 	station_addr.saddr[2] = read_eeprom(nic->ioaddr,2);
567
 	station_addr.saddr[2] = read_eeprom(nic->ioaddr,2);
627
 	 eepro_probe, eepro_disable );
626
 	 eepro_probe, eepro_disable );
628
 
627
 
629
 ISA_ROM ( "eepro", "Intel Etherexpress Pro/10" );
628
 ISA_ROM ( "eepro", "Intel Etherexpress Pro/10" );
629
+
630
+/*
631
+ * Local variables:
632
+ *  c-basic-offset: 8
633
+ *  c-indent-level: 8
634
+ *  tab-width: 8
635
+ * End:
636
+ */

+ 16
- 4
src/drivers/net/eepro100.c View File

599
  *            leaves the 82557 initialized, and ready to recieve packets.
599
  *            leaves the 82557 initialized, and ready to recieve packets.
600
  */
600
  */
601
 
601
 
602
-static int eepro100_probe ( struct nic *nic, struct pci_device *p ) {
602
+static int eepro100_probe ( struct nic *nic, struct pci_device *pci ) {
603
 
603
 
604
 	unsigned short sum = 0;
604
 	unsigned short sum = 0;
605
 	int i;
605
 	int i;
611
 	   be careful not to access beyond this array */
611
 	   be careful not to access beyond this array */
612
 	unsigned short eeprom[16];
612
 	unsigned short eeprom[16];
613
 
613
 
614
-	if (p->ioaddr == 0)
614
+	if (pci->ioaddr == 0)
615
 		return 0;
615
 		return 0;
616
-	pci_fill_nic ( nic, p );
617
-	adjust_pci_device(p);
616
+
617
+	adjust_pci_device(pci);
618
+
619
+        nic->ioaddr = pci->ioaddr;
620
+        nic->irqno = pci->irq;
621
+
618
 	ioaddr = nic->ioaddr;
622
 	ioaddr = nic->ioaddr;
619
 
623
 
620
 	if ((do_eeprom_cmd(EE_READ_CMD << 24, 27) & 0xffe0000)
624
 	if ((do_eeprom_cmd(EE_READ_CMD << 24, 27) & 0xffe0000)
834
 
838
 
835
 DRIVER ( "EEPRO100", nic_driver, pci_driver, eepro100_driver,
839
 DRIVER ( "EEPRO100", nic_driver, pci_driver, eepro100_driver,
836
 	 eepro100_probe, eepro100_disable );
840
 	 eepro100_probe, eepro100_disable );
841
+
842
+/*
843
+ * Local variables:
844
+ *  c-basic-offset: 8
845
+ *  c-indent-level: 8
846
+ *  tab-width: 8
847
+ * End:
848
+ */

+ 9
- 1
src/drivers/net/epic100.c View File

120
        Epic cards in slot order. */
120
        Epic cards in slot order. */
121
 
121
 
122
     ioaddr = pci->ioaddr;
122
     ioaddr = pci->ioaddr;
123
+
123
     nic->irqno  = 0;
124
     nic->irqno  = 0;
124
-    pci_fill_nic ( nic, pci );
125
     nic->ioaddr = pci->ioaddr & ~3;
125
     nic->ioaddr = pci->ioaddr & ~3;
126
 
126
 
127
     /* compute all used static epic100 registers address */
127
     /* compute all used static epic100 registers address */
525
 
525
 
526
 DRIVER ( "EPIC100", nic_driver, pci_driver, epic100_driver,
526
 DRIVER ( "EPIC100", nic_driver, pci_driver, epic100_driver,
527
 	 epic100_probe, epic100_disable );
527
 	 epic100_probe, epic100_disable );
528
+
529
+/*
530
+ * Local variables:
531
+ *  c-basic-offset: 8
532
+ *  c-indent-level: 8
533
+ *  tab-width: 8
534
+ * End:
535
+ */

+ 10
- 1
src/drivers/net/forcedeth.c View File

1248
 	printf("forcedeth.c: Found %s, vendor=0x%hX, device=0x%hX\n",
1248
 	printf("forcedeth.c: Found %s, vendor=0x%hX, device=0x%hX\n",
1249
 	       pci->driver_name, pci->vendor, pci->device);
1249
 	       pci->driver_name, pci->vendor, pci->device);
1250
 
1250
 
1251
-	pci_fill_nic ( nic, pci );
1251
+        nic->ioaddr = pci->ioaddr;
1252
+        nic->irqno = 0;
1252
 
1253
 
1253
 	/* point to private storage */
1254
 	/* point to private storage */
1254
 	np = &npx;
1255
 	np = &npx;
1426
 
1427
 
1427
 DRIVER ( "forcedeth", nic_driver, pci_driver, forcedeth_driver,
1428
 DRIVER ( "forcedeth", nic_driver, pci_driver, forcedeth_driver,
1428
 	 forcedeth_probe, forcedeth_disable );
1429
 	 forcedeth_probe, forcedeth_disable );
1430
+
1431
+/*
1432
+ * Local variables:
1433
+ *  c-basic-offset: 8
1434
+ *  c-indent-level: 8
1435
+ *  tab-width: 8
1436
+ * End:
1437
+ */

+ 3
- 1
src/drivers/net/mtd80x.c View File

674
     if (pci->ioaddr == 0)
674
     if (pci->ioaddr == 0)
675
 	    return 0;
675
 	    return 0;
676
 
676
 
677
-    pci_fill_nic ( nic, pci );
678
     adjust_pci_device(pci);
677
     adjust_pci_device(pci);
679
 
678
 
679
+    nic->ioaddr = pci->ioaddr;
680
+    nic->irqno = 0;
681
+
680
     mtdx.nic_name = pci->driver_name;
682
     mtdx.nic_name = pci->driver_name;
681
     mtdx.dev_id = pci->device;
683
     mtdx.dev_id = pci->device;
682
     mtdx.ioaddr = nic->ioaddr;
684
     mtdx.ioaddr = nic->ioaddr;

+ 8
- 1
src/drivers/net/ns83820.c View File

837
 		return 0;
837
 		return 0;
838
 
838
 
839
 	nic->irqno  = 0;
839
 	nic->irqno  = 0;
840
-	pci_fill_nic ( nic, pci );
841
 	nic->ioaddr = pci->ioaddr & ~3;
840
 	nic->ioaddr = pci->ioaddr & ~3;
842
 
841
 
843
 	/* disable interrupts */
842
 	/* disable interrupts */
1003
 
1002
 
1004
 DRIVER ( "NS83820/PCI", nic_driver, pci_driver, ns83820_driver,
1003
 DRIVER ( "NS83820/PCI", nic_driver, pci_driver, ns83820_driver,
1005
 	 ns83820_probe, ns83820_disable );
1004
 	 ns83820_probe, ns83820_disable );
1005
+
1006
+/*
1007
+ * Local variables:
1008
+ *  c-basic-offset: 8
1009
+ *  c-indent-level: 8
1010
+ *  tab-width: 8
1011
+ * End:
1012
+ */

+ 4
- 3
src/drivers/net/ns8390.c View File

1018
 
1018
 
1019
 #endif /* INCLUDE_NS8390 */
1019
 #endif /* INCLUDE_NS8390 */
1020
 
1020
 
1021
+#endif
1022
+
1021
 /*
1023
 /*
1022
  * Local variables:
1024
  * Local variables:
1023
  *  c-basic-offset: 8
1025
  *  c-basic-offset: 8
1026
+ *  c-indent-level: 8
1027
+ *  tab-width: 8
1024
  * End:
1028
  * End:
1025
  */
1029
  */
1026
-
1027
-
1028
-#endif

+ 8
- 1
src/drivers/net/pcnet32.c View File

681
 	       pci->driver_name, pci->vendor, pci->device);
681
 	       pci->driver_name, pci->vendor, pci->device);
682
 
682
 
683
 	nic->irqno  = 0;
683
 	nic->irqno  = 0;
684
-	pci_fill_nic ( nic, pci );
685
 	nic->ioaddr = pci->ioaddr & ~3;
684
 	nic->ioaddr = pci->ioaddr & ~3;
686
 
685
 
687
 	/* reset the chip */
686
 	/* reset the chip */
1017
 
1016
 
1018
 DRIVER ( "PCNET32/PCI", nic_driver, pci_driver, pcnet32_driver,
1017
 DRIVER ( "PCNET32/PCI", nic_driver, pci_driver, pcnet32_driver,
1019
 	 pcnet32_probe, pcnet32_disable );
1018
 	 pcnet32_probe, pcnet32_disable );
1019
+
1020
+/*
1021
+ * Local variables:
1022
+ *  c-basic-offset: 8
1023
+ *  c-indent-level: 8
1024
+ *  tab-width: 8
1025
+ * End:
1026
+ */

+ 9
- 1
src/drivers/net/prism2_pci.c View File

24
   hfa384x_t *hw = &hw_global;
24
   hfa384x_t *hw = &hw_global;
25
   uint32_t membase = 0; /* Prism2.5 Memory Base */
25
   uint32_t membase = 0; /* Prism2.5 Memory Base */
26
 
26
 
27
-  pci_fill_nic ( nic, pci );
28
   pci_read_config_dword( pci, PRISM2_PCI_MEM_BASE, &membase);
27
   pci_read_config_dword( pci, PRISM2_PCI_MEM_BASE, &membase);
29
   membase &= PCI_BASE_ADDRESS_MEM_MASK;
28
   membase &= PCI_BASE_ADDRESS_MEM_MASK;
30
   hw->membase = (uint32_t) phys_to_virt(membase);
29
   hw->membase = (uint32_t) phys_to_virt(membase);
31
   printf ( "Prism2.5 has registers at %#lx\n", hw->membase );
30
   printf ( "Prism2.5 has registers at %#lx\n", hw->membase );
31
+
32
   nic->ioaddr = hw->membase;
32
   nic->ioaddr = hw->membase;
33
+  nic->irqno = 0;
33
 
34
 
34
   return prism2_probe ( nic, hw );
35
   return prism2_probe ( nic, hw );
35
 }
36
 }
49
 DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
50
 DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
50
 	 prism2_pci_probe, prism2_pci_disable );
51
 	 prism2_pci_probe, prism2_pci_disable );
51
 
52
 
53
+/*
54
+ * Local variables:
55
+ *  c-basic-offset: 8
56
+ *  c-indent-level: 8
57
+ *  tab-width: 8
58
+ * End:
59
+ */

+ 8
- 3
src/drivers/net/prism2_plx.c View File

81
 static int prism2_plx_probe ( struct nic *nic, struct pci_device *pci ) {
81
 static int prism2_plx_probe ( struct nic *nic, struct pci_device *pci ) {
82
   hfa384x_t *hw = &hw_global;
82
   hfa384x_t *hw = &hw_global;
83
   
83
   
84
-  pci_fill_nic ( nic, pci );
85
-
86
   /* Find and intialise PLX Prism2 card */
84
   /* Find and intialise PLX Prism2 card */
87
   if ( ! prism2_find_plx ( hw, pci ) ) return 0;
85
   if ( ! prism2_find_plx ( hw, pci ) ) return 0;
88
   nic->ioaddr = hw->iobase;
86
   nic->ioaddr = hw->iobase;
89
-
87
+  nic->irqno  = 0;
90
   return prism2_probe ( nic, hw );
88
   return prism2_probe ( nic, hw );
91
 }
89
 }
92
 
90
 
114
 DRIVER ( "Prism2/PLX", nic_driver, pci_driver, prism2_plx_driver,
112
 DRIVER ( "Prism2/PLX", nic_driver, pci_driver, prism2_plx_driver,
115
 	 prism2_plx_probe, prism2_plx_disable );
113
 	 prism2_plx_probe, prism2_plx_disable );
116
 
114
 
115
+/*
116
+ * Local variables:
117
+ *  c-basic-offset: 8
118
+ *  c-indent-level: 8
119
+ *  tab-width: 8
120
+ * End:
121
+ */

+ 13
- 4
src/drivers/net/r8169.c View File

1024
 	}
1024
 	}
1025
 
1025
 
1026
 	r8169_reset(nic);
1026
 	r8169_reset(nic);
1027
+
1027
 	/* point to NIC specific routines */
1028
 	/* point to NIC specific routines */
1028
-	nic->nic_op	= &r8169_operations;
1029
-	pci_fill_nic ( nic, pci );
1030
-	nic->irqno = pci->irq;
1029
+	nic->nic_op = &r8169_operations;
1030
+
1031
+	nic->irqno  = pci->irq;
1031
 	nic->ioaddr = ioaddr;
1032
 	nic->ioaddr = ioaddr;
1032
-	return 1;
1033
 
1033
 
1034
+	return 1;
1034
 }
1035
 }
1035
 
1036
 
1036
 //======================================================================================================
1037
 //======================================================================================================
1174
 
1175
 
1175
 DRIVER ( "r8169/PCI", nic_driver, pci_driver, r8169_driver,
1176
 DRIVER ( "r8169/PCI", nic_driver, pci_driver, r8169_driver,
1176
 	 r8169_probe, r8169_disable );
1177
 	 r8169_probe, r8169_disable );
1178
+
1179
+/*
1180
+ * Local variables:
1181
+ *  c-basic-offset: 8
1182
+ *  c-indent-level: 8
1183
+ *  tab-width: 8
1184
+ * End:
1185
+ */

+ 9
- 1
src/drivers/net/sis900.c View File

344
         return 0;
344
         return 0;
345
 
345
 
346
     nic->irqno  = 0;
346
     nic->irqno  = 0;
347
-    pci_fill_nic ( nic, pci );
348
     nic->ioaddr = pci->ioaddr;
347
     nic->ioaddr = pci->ioaddr;
348
+
349
     ioaddr  = pci->ioaddr;
349
     ioaddr  = pci->ioaddr;
350
     vendor  = pci->vendor;
350
     vendor  = pci->vendor;
351
     dev_id  = pci->device;
351
     dev_id  = pci->device;
1287
 
1287
 
1288
 DRIVER ( "SIS900", nic_driver, pci_driver, sis900_driver,
1288
 DRIVER ( "SIS900", nic_driver, pci_driver, sis900_driver,
1289
 	 sis900_probe, sis900_disable );
1289
 	 sis900_probe, sis900_disable );
1290
+
1291
+/*
1292
+ * Local variables:
1293
+ *  c-basic-offset: 8
1294
+ *  c-indent-level: 8
1295
+ *  tab-width: 8
1296
+ * End:
1297
+ */

+ 3
- 2
src/drivers/net/smc9000.c View File

841
    int              i;
841
    int              i;
842
 
842
 
843
    nic->irqno  = 0;
843
    nic->irqno  = 0;
844
-   isa_fill_nic ( nic, isa );
845
    nic->ioaddr = isa->ioaddr;
844
    nic->ioaddr = isa->ioaddr;
846
 
845
 
847
    /*
846
    /*
947
 
946
 
948
 /*
947
 /*
949
  * Local variables:
948
  * Local variables:
950
- *  c-basic-offset: 3
949
+ *  c-basic-offset: 8
950
+ *  c-indent-level: 8
951
+ *  tab-width: 8
951
  * End:
952
  * End:
952
  */
953
  */

+ 10
- 2
src/drivers/net/sundance.c View File

728
 
728
 
729
 	/* point to NIC specific routines */
729
 	/* point to NIC specific routines */
730
 	nic->nic_op	= &sundance_operations;
730
 	nic->nic_op	= &sundance_operations;
731
-	pci_fill_nic ( nic, pci );
732
-	nic->irqno = pci->irq;
731
+
732
+	nic->irqno  = pci->irq;
733
 	nic->ioaddr = BASE;
733
 	nic->ioaddr = BASE;
734
 
734
 
735
 	return 1;
735
 	return 1;
876
 
876
 
877
 DRIVER ( "SUNDANCE/PCI", nic_driver, pci_driver, sundance_driver,
877
 DRIVER ( "SUNDANCE/PCI", nic_driver, pci_driver, sundance_driver,
878
 	 sundance_probe, sundance_disable );
878
 	 sundance_probe, sundance_disable );
879
+
880
+/*
881
+ * Local variables:
882
+ *  c-basic-offset: 8
883
+ *  c-indent-level: 8
884
+ *  tab-width: 8
885
+ * End:
886
+ */

+ 9
- 1
src/drivers/net/tg3.c View File

3242
 
3242
 
3243
 	adjust_pci_device(pdev);
3243
 	adjust_pci_device(pdev);
3244
 
3244
 
3245
-	pci_fill_nic ( nic, pdev );
3246
 	nic->irqno  = 0;
3245
 	nic->irqno  = 0;
3246
+        nic->ioaddr = pdev->ioaddr;
3247
 
3247
 
3248
 	/* Find power-management capability. */
3248
 	/* Find power-management capability. */
3249
 	pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM);
3249
 	pm_cap = pci_find_capability(pdev, PCI_CAP_ID_PM);
3390
 
3390
 
3391
 DRIVER ( "TG3", nic_driver, pci_driver, tg3_driver,
3391
 DRIVER ( "TG3", nic_driver, pci_driver, tg3_driver,
3392
 	 tg3_probe, tg3_disable );
3392
 	 tg3_probe, tg3_disable );
3393
+
3394
+/*
3395
+ * Local variables:
3396
+ *  c-basic-offset: 8
3397
+ *  c-indent-level: 8
3398
+ *  tab-width: 8
3399
+ * End:
3400
+ */

+ 8
- 1
src/drivers/net/tlan.c View File

784
 		return 0;
784
 		return 0;
785
 
785
 
786
 	nic->irqno  = 0;
786
 	nic->irqno  = 0;
787
-	pci_fill_nic ( nic, pci );
788
 	nic->ioaddr = pci->ioaddr;
787
 	nic->ioaddr = pci->ioaddr;
789
 
788
 
790
 	BASE = pci->ioaddr;
789
 	BASE = pci->ioaddr;
1712
 
1711
 
1713
 DRIVER ( "TLAN/PCI", nic_driver, pci_driver, tlan_driver,
1712
 DRIVER ( "TLAN/PCI", nic_driver, pci_driver, tlan_driver,
1714
 	 tlan_probe, tlan_disable );
1713
 	 tlan_probe, tlan_disable );
1714
+
1715
+/*
1716
+ * Local variables:
1717
+ *  c-basic-offset: 8
1718
+ *  c-indent-level: 8
1719
+ *  tab-width: 8
1720
+ * End:
1721
+ */

+ 8
- 1
src/drivers/net/tulip.c View File

1243
         return 0;
1243
         return 0;
1244
 
1244
 
1245
     ioaddr         = pci->ioaddr;
1245
     ioaddr         = pci->ioaddr;
1246
-    pci_fill_nic ( nic, pci );
1247
     nic->ioaddr    = pci->ioaddr & ~3;
1246
     nic->ioaddr    = pci->ioaddr & ~3;
1248
     nic->irqno     = 0;
1247
     nic->irqno     = 0;
1249
 
1248
 
2088
 
2087
 
2089
 DRIVER ( "Tulip", nic_driver, pci_driver, tulip_driver,
2088
 DRIVER ( "Tulip", nic_driver, pci_driver, tulip_driver,
2090
 	 tulip_probe, tulip_disable );
2089
 	 tulip_probe, tulip_disable );
2090
+
2091
+/*
2092
+ * Local variables:
2093
+ *  c-basic-offset: 8
2094
+ *  c-indent-level: 8
2095
+ *  tab-width: 8
2096
+ * End:
2097
+ */

+ 13
- 1
src/drivers/net/via-rhine.c View File

966
 
966
 
967
     if (!pci->ioaddr)
967
     if (!pci->ioaddr)
968
 	return 0;
968
 	return 0;
969
+
969
     rhine_probe1 (nic, pci, pci->ioaddr, pci->device, -1);
970
     rhine_probe1 (nic, pci, pci->ioaddr, pci->device, -1);
970
 
971
 
971
     adjust_pci_device ( pci );
972
     adjust_pci_device ( pci );
973
+
972
     rhine_reset (nic);
974
     rhine_reset (nic);
975
+
973
     nic->nic_op	= &rhine_operations;
976
     nic->nic_op	= &rhine_operations;
974
-    pci_fill_nic ( nic, pci );
977
+
975
     nic->irqno	  = pci->irq;
978
     nic->irqno	  = pci->irq;
976
     nic->ioaddr   = tp->ioaddr;
979
     nic->ioaddr   = tp->ioaddr;
980
+
977
     return 1;
981
     return 1;
978
 }
982
 }
979
 
983
 
1426
 	 rhine_probe, rhine_disable );
1430
 	 rhine_probe, rhine_disable );
1427
 
1431
 
1428
 /* EOF via-rhine.c */
1432
 /* EOF via-rhine.c */
1433
+
1434
+/*
1435
+ * Local variables:
1436
+ *  c-basic-offset: 8
1437
+ *  c-indent-level: 8
1438
+ *  tab-width: 8
1439
+ * End:
1440
+ */

+ 9
- 2
src/drivers/net/w89c840.c View File

630
     if (p->ioaddr == 0)
630
     if (p->ioaddr == 0)
631
         return 0;
631
         return 0;
632
 
632
 
633
-    pci_fill_nic ( nic, p );
633
+    nic->ioaddr = p->ioaddr;
634
     nic->irqno  = 0;
634
     nic->irqno  = 0;
635
 
635
 
636
-
637
 #if defined(W89C840_DEBUG)
636
 #if defined(W89C840_DEBUG)
638
     printf("winbond-840: PCI bus %hhX device function %hhX: I/O address: %hX\n", p->bus, p->devfn, ioaddr);
637
     printf("winbond-840: PCI bus %hhX device function %hhX: I/O address: %hX\n", p->bus, p->devfn, ioaddr);
639
 #endif
638
 #endif
954
 
953
 
955
 DRIVER ( "W89C840F", nic_driver, pci_driver, w89c840_driver,
954
 DRIVER ( "W89C840F", nic_driver, pci_driver, w89c840_driver,
956
 	 w89c840_probe, w89c840_disable );
955
 	 w89c840_probe, w89c840_disable );
956
+
957
+/*
958
+ * Local variables:
959
+ *  c-basic-offset: 8
960
+ *  c-indent-level: 8
961
+ *  tab-width: 8
962
+ * End:
963
+ */

Loading…
Cancel
Save