Browse Source

Coerced into compiling

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
e7c177cc33

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

687
 
687
 
688
     adjust_pci_device(pci);
688
     adjust_pci_device(pci);
689
 
689
 
690
-    mtdx.nic_name = dev->name;
691
-    mtdx.dev_id = pci->dev_id;
690
+    mtdx.nic_name = pci->name;
691
+    mtdx.dev_id = pci->device_id;
692
 
692
 
693
     /* read ethernet id */
693
     /* read ethernet id */
694
     for (i = 0; i < 6; ++i)
694
     for (i = 0; i < 6; ++i)

+ 3
- 3
src/drivers/net/natsemi.c View File

261
     nic->ioaddr = pci->ioaddr;
261
     nic->ioaddr = pci->ioaddr;
262
 
262
 
263
     ioaddr     = pci->ioaddr;
263
     ioaddr     = pci->ioaddr;
264
-    vendor     = pci->vendor;
265
-    dev_id     = pci->dev_id;
266
-    nic_name   = dev->name;
264
+    vendor     = pci->vendor_id;
265
+    dev_id     = pci->device_id;
266
+    nic_name   = pci->name;
267
 
267
 
268
     /* natsemi has a non-standard PM control register
268
     /* natsemi has a non-standard PM control register
269
      * in PCI config space.  Some boards apparently need
269
      * in PCI config space.  Some boards apparently need

+ 3
- 3
src/drivers/net/ns83820.c View File

836
 		return 0;
836
 		return 0;
837
 
837
 
838
 	printf("ns83820.c: Found %s, vendor=0x%hX, device=0x%hX\n",
838
 	printf("ns83820.c: Found %s, vendor=0x%hX, device=0x%hX\n",
839
-	       dev->name, pci->vendor, pci->dev_id);
839
+	       pci->name, pci->vendor_id, pci->device_id);
840
 
840
 
841
 	/* point to private storage */
841
 	/* point to private storage */
842
 	ns = &nsx;
842
 	ns = &nsx;
877
 	ns->CFG_cache = readl(ns->base + CFG);
877
 	ns->CFG_cache = readl(ns->base + CFG);
878
 
878
 
879
 	if ((ns->CFG_cache & CFG_PCI64_DET)) {
879
 	if ((ns->CFG_cache & CFG_PCI64_DET)) {
880
-		printf("%s: detected 64 bit PCI data bus.\n", dev->name);
880
+		printf("%s: detected 64 bit PCI data bus.\n", pci->name);
881
 		/*dev->CFG_cache |= CFG_DATA64_EN; */
881
 		/*dev->CFG_cache |= CFG_DATA64_EN; */
882
 		if (!(ns->CFG_cache & CFG_DATA64_EN))
882
 		if (!(ns->CFG_cache & CFG_DATA64_EN))
883
 			printf
883
 			printf
884
 			    ("%s: EEPROM did not enable 64 bit bus.  Disabled.\n",
884
 			    ("%s: EEPROM did not enable 64 bit bus.  Disabled.\n",
885
-			     dev->name);
885
+			     pci->name);
886
 	} else
886
 	} else
887
 		ns->CFG_cache &= ~(CFG_DATA64_EN);
887
 		ns->CFG_cache &= ~(CFG_DATA64_EN);
888
 
888
 

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

682
 	/* BASE is used throughout to address the card */
682
 	/* BASE is used throughout to address the card */
683
 	ioaddr = pci->ioaddr;
683
 	ioaddr = pci->ioaddr;
684
 	printf("pcnet32.c: Found %s, Vendor=0x%hX Device=0x%hX\n",
684
 	printf("pcnet32.c: Found %s, Vendor=0x%hX Device=0x%hX\n",
685
-	       dev->name, pci->vendor, pci->dev_id);
685
+	       pci->name, pci->vendor_id, pci->device_id);
686
 
686
 
687
 	nic->irqno  = 0;
687
 	nic->irqno  = 0;
688
 	pci_fill_nic ( nic, pci );
688
 	pci_fill_nic ( nic, pci );
801
 		nic->node_addr[i] = promaddr[i];
801
 		nic->node_addr[i] = promaddr[i];
802
 	}
802
 	}
803
 	/* Print out some hardware info */
803
 	/* Print out some hardware info */
804
-	printf("%s: %! at ioaddr %hX, ", dev->name, nic->node_addr,
804
+	printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr,
805
 	       ioaddr);
805
 	       ioaddr);
806
 
806
 
807
 	/* Set to pci bus master */
807
 	/* Set to pci bus master */

+ 3
- 3
src/drivers/net/r8169.c View File

731
 	int option = -1, Cap10_100 = 0, Cap1000 = 0;
731
 	int option = -1, Cap10_100 = 0, Cap1000 = 0;
732
 
732
 
733
 	printf("r8169.c: Found %s, Vendor=%hX Device=%hX\n",
733
 	printf("r8169.c: Found %s, Vendor=%hX Device=%hX\n",
734
-	       dev->name, pci->vendor, pci->dev_id);
734
+	       pci->name, pci->vendor_id, pci->device_id);
735
 
735
 
736
 	board_idx++;
736
 	board_idx++;
737
 
737
 
749
 	dprintf(("%s: Identified chip type is '%s'.\n", pci->name,
749
 	dprintf(("%s: Identified chip type is '%s'.\n", pci->name,
750
 		 rtl_chip_info[tpc->chipset].name));
750
 		 rtl_chip_info[tpc->chipset].name));
751
 	/* Print out some hardware info */
751
 	/* Print out some hardware info */
752
-	printf("%s: %! at ioaddr %hX, ", dev->name, nic->node_addr,
752
+	printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr,
753
 	       ioaddr);
753
 	       ioaddr);
754
 
754
 
755
 	/* if TBI is not endbled */
755
 	/* if TBI is not endbled */
836
 		udelay(100);
836
 		udelay(100);
837
 		printf
837
 		printf
838
 		    ("%s: 1000Mbps Full-duplex operation, TBI Link %s!\n",
838
 		    ("%s: 1000Mbps Full-duplex operation, TBI Link %s!\n",
839
-		     dev->name,
839
+		     pci->name,
840
 		     (RTL_R32(TBICSR) & TBILinkOK) ? "OK" : "Failed");
840
 		     (RTL_R32(TBICSR) & TBILinkOK) ? "OK" : "Failed");
841
 
841
 
842
 	}
842
 	}

+ 3
- 3
src/drivers/net/sundance.c View File

596
 	/* BASE is used throughout to address the card */
596
 	/* BASE is used throughout to address the card */
597
 	BASE = pci->ioaddr;
597
 	BASE = pci->ioaddr;
598
 	printf(" sundance.c: Found %s Vendor=0x%hX Device=0x%hX\n",
598
 	printf(" sundance.c: Found %s Vendor=0x%hX Device=0x%hX\n",
599
-	       dev->name, pci->vendor, pci->dev_id);
599
+	       pci->name, pci->vendor_id, pci->device_id);
600
 
600
 
601
 	/* Get the MAC Address by reading the EEPROM */
601
 	/* Get the MAC Address by reading the EEPROM */
602
 	for (i = 0; i < 3; i++) {
602
 	for (i = 0; i < 3; i++) {
618
 	/* point to private storage */
618
 	/* point to private storage */
619
 	sdc = &sdx;
619
 	sdc = &sdx;
620
 
620
 
621
-	sdc->nic_name = dev->name;
621
+	sdc->nic_name = pci->name;
622
 	sdc->mtu = mtu;
622
 	sdc->mtu = mtu;
623
 
623
 
624
 	pci_read_config_byte(pci, PCI_REVISION_ID, &sdc->pci_rev_id);
624
 	pci_read_config_byte(pci, PCI_REVISION_ID, &sdc->pci_rev_id);
625
 	dprintf(("Device revision id: %hx\n", sdc->pci_rev_id));
625
 	dprintf(("Device revision id: %hx\n", sdc->pci_rev_id));
626
 	/* Print out some hardware info */
626
 	/* Print out some hardware info */
627
-	printf("%s: %! at ioaddr %hX, ", dev->name, nic->node_addr, BASE);
627
+	printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE);
628
 	sdc->mii_preamble_required = 0;
628
 	sdc->mii_preamble_required = 0;
629
 	if (1) {
629
 	if (1) {
630
 		int phy, phy_idx = 0;
630
 		int phy, phy_idx = 0;

+ 3
- 3
src/drivers/net/tg3.c View File

2841
 	if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) &&
2841
 	if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) &&
2842
 		    ((grc_misc_cfg == 0x8000) || (grc_misc_cfg == 0x4000))) ||
2842
 		    ((grc_misc_cfg == 0x8000) || (grc_misc_cfg == 0x4000))) ||
2843
 		((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) &&
2843
 		((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) &&
2844
-			(tp->pdev->vendor == PCI_VENDOR_ID_BROADCOM) &&
2845
-			((tp->pdev->dev_id == PCI_DEVICE_ID_TIGON3_5901) ||
2846
-				(tp->pdev->dev_id == PCI_DEVICE_ID_TIGON3_5901_2)))) {
2844
+			(tp->pdev->vendor_id == PCI_VENDOR_ID_BROADCOM) &&
2845
+			((tp->pdev->device_id == PCI_DEVICE_ID_TIGON3_5901) ||
2846
+				(tp->pdev->device_id == PCI_DEVICE_ID_TIGON3_5901_2)))) {
2847
 		tp->tg3_flags |= TG3_FLAG_10_100_ONLY;
2847
 		tp->tg3_flags |= TG3_FLAG_10_100_ONLY;
2848
 	}
2848
 	}
2849
 
2849
 

+ 6
- 6
src/drivers/net/tlan.c View File

806
 	i = 0;
806
 	i = 0;
807
 	chip_idx = -1;
807
 	chip_idx = -1;
808
 	while (tlan_pci_tbl[i].name) {
808
 	while (tlan_pci_tbl[i].name) {
809
-		if ((((u32) pci->dev_id << 16) | pci->vendor) ==
809
+		if ((((u32) pci->device_id << 16) | pci->vendor_id) ==
810
 		    (tlan_pci_tbl[i].id.pci & 0xffffffff)) {
810
 		    (tlan_pci_tbl[i].id.pci & 0xffffffff)) {
811
 			chip_idx = i;
811
 			chip_idx = i;
812
 			break;
812
 			break;
814
 		i++;
814
 		i++;
815
 	}
815
 	}
816
 
816
 
817
-	priv->vendor_id = pci->vendor;
818
-	priv->dev_id = pci->dev_id;
819
-	priv->nic_name = dev->name;
817
+	priv->vendor_id = pci->vendor_id;
818
+	priv->dev_id = pci->device_id;
819
+	priv->nic_name = pci->name;
820
 	priv->eoc = 0;
820
 	priv->eoc = 0;
821
 
821
 
822
 	err = 0;
822
 	err = 0;
827
 				       (u8 *) & nic->node_addr[i]);
827
 				       (u8 *) & nic->node_addr[i]);
828
 	if (err) {
828
 	if (err) {
829
 		printf("TLAN: %s: Error reading MAC from eeprom: %d\n",
829
 		printf("TLAN: %s: Error reading MAC from eeprom: %d\n",
830
-		       dev->name, err);
830
+		       pci->name, err);
831
 	} else 
831
 	} else 
832
 		/* Print out some hardware info */
832
 		/* Print out some hardware info */
833
 		printf("%s: %! at ioaddr %hX, ", 
833
 		printf("%s: %! at ioaddr %hX, ", 
834
-			dev->name, nic->node_addr, pci->ioaddr);
834
+			pci->name, nic->node_addr, pci->ioaddr);
835
 
835
 
836
 	priv->tlanRev = TLan_DioRead8(BASE, TLAN_DEF_REVISION);
836
 	priv->tlanRev = TLan_DioRead8(BASE, TLAN_DEF_REVISION);
837
 	printf("revision: 0x%hX\n", priv->tlanRev);
837
 	printf("revision: 0x%hX\n", priv->tlanRev);

+ 3
- 3
src/drivers/net/tulip.c View File

1245
     /* point to private storage */
1245
     /* point to private storage */
1246
     tp = &tpx;
1246
     tp = &tpx;
1247
 
1247
 
1248
-    tp->vendor_id  = pci->vendor;
1249
-    tp->dev_id     = pci->dev_id;
1250
-    tp->nic_name   = dev->name;
1248
+    tp->vendor_id  = pci->vendor_id;
1249
+    tp->dev_id     = pci->device_id;
1250
+    tp->nic_name   = pci->name;
1251
 
1251
 
1252
     tp->if_port = 0;
1252
     tp->if_port = 0;
1253
     tp->default_port = 0;
1253
     tp->default_port = 0;

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

960
 
960
 
961
     if (!pci->ioaddr)
961
     if (!pci->ioaddr)
962
 	return 0;
962
 	return 0;
963
-    rhine_probe1 (nic, pci, pci->ioaddr, pci->dev_id, -1);
963
+    rhine_probe1 (nic, pci, pci->ioaddr, pci->device_id, -1);
964
 
964
 
965
     adjust_pci_device ( pci );
965
     adjust_pci_device ( pci );
966
     rhine_reset (nic);
966
     rhine_reset (nic);

+ 6
- 5
src/drivers/net/w89c840.c View File

649
 #define PCI_DEVICE_ID_COMPEX_RL100ATX   0x2011
649
 #define PCI_DEVICE_ID_COMPEX_RL100ATX   0x2011
650
 
650
 
651
     /* From Matt Hortman <mbhortman@acpthinclient.com> */
651
     /* From Matt Hortman <mbhortman@acpthinclient.com> */
652
-    if (p->vendor == PCI_VENDOR_ID_WINBOND2
653
-        && p->dev_id == PCI_DEVICE_ID_WINBOND2_89C840) {
652
+    if (p->vendor_id == PCI_VENDOR_ID_WINBOND2
653
+        && p->device_id == PCI_DEVICE_ID_WINBOND2_89C840) {
654
 
654
 
655
         /* detected "Winbond W89c840 Fast Ethernet PCI NIC" */
655
         /* detected "Winbond W89c840 Fast Ethernet PCI NIC" */
656
 
656
 
657
-    } else if ( p->vendor == PCI_VENDOR_ID_COMPEX
658
-                && p->dev_id == PCI_DEVICE_ID_COMPEX_RL100ATX) {
657
+    } else if ( p->vendor_id == PCI_VENDOR_ID_COMPEX
658
+                && p->device_id == PCI_DEVICE_ID_COMPEX_RL100ATX) {
659
 
659
 
660
         /* detected "Compex RL100ATX Fast Ethernet PCI NIC" */
660
         /* detected "Compex RL100ATX Fast Ethernet PCI NIC" */
661
 
661
 
662
     } else {
662
     } else {
663
         /* Gee, guess what? They missed again. */
663
         /* Gee, guess what? They missed again. */
664
-        printf("device ID : %X - is not a Compex RL100ATX NIC.\n", p->dev_id);
664
+        printf("device ID : %X - is not a Compex RL100ATX NIC.\n",
665
+	       p->device_id);
665
         return 0;
666
         return 0;
666
     }
667
     }
667
 
668
 

Loading…
Cancel
Save