ソースを参照

Coerced into compiling

tags/v0.9.3
Michael Brown 19年前
コミット
e7c177cc33

+ 2
- 2
src/drivers/net/mtd80x.c ファイルの表示

@@ -687,8 +687,8 @@ static int mtd_probe ( struct nic *nic, struct pci_device *pci ) {
687 687
 
688 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 693
     /* read ethernet id */
694 694
     for (i = 0; i < 6; ++i)

+ 3
- 3
src/drivers/net/natsemi.c ファイルの表示

@@ -261,9 +261,9 @@ natsemi_probe ( struct nic *nic, struct pci_device *pci ) {
261 261
     nic->ioaddr = pci->ioaddr;
262 262
 
263 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 268
     /* natsemi has a non-standard PM control register
269 269
      * in PCI config space.  Some boards apparently need

+ 3
- 3
src/drivers/net/ns83820.c ファイルの表示

@@ -836,7 +836,7 @@ static int ns83820_probe ( struct nic *nic, struct pci_device *pci ) {
836 836
 		return 0;
837 837
 
838 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 841
 	/* point to private storage */
842 842
 	ns = &nsx;
@@ -877,12 +877,12 @@ static int ns83820_probe ( struct nic *nic, struct pci_device *pci ) {
877 877
 	ns->CFG_cache = readl(ns->base + CFG);
878 878
 
879 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 881
 		/*dev->CFG_cache |= CFG_DATA64_EN; */
882 882
 		if (!(ns->CFG_cache & CFG_DATA64_EN))
883 883
 			printf
884 884
 			    ("%s: EEPROM did not enable 64 bit bus.  Disabled.\n",
885
-			     dev->name);
885
+			     pci->name);
886 886
 	} else
887 887
 		ns->CFG_cache &= ~(CFG_DATA64_EN);
888 888
 

+ 2
- 2
src/drivers/net/pcnet32.c ファイルの表示

@@ -682,7 +682,7 @@ static int pcnet32_probe ( struct nic *nic, struct pci_device *pci ) {
682 682
 	/* BASE is used throughout to address the card */
683 683
 	ioaddr = pci->ioaddr;
684 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 687
 	nic->irqno  = 0;
688 688
 	pci_fill_nic ( nic, pci );
@@ -801,7 +801,7 @@ static int pcnet32_probe ( struct nic *nic, struct pci_device *pci ) {
801 801
 		nic->node_addr[i] = promaddr[i];
802 802
 	}
803 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 805
 	       ioaddr);
806 806
 
807 807
 	/* Set to pci bus master */

+ 3
- 3
src/drivers/net/r8169.c ファイルの表示

@@ -731,7 +731,7 @@ static int r8169_probe ( struct nic *nic, struct pci_device *pci ) {
731 731
 	int option = -1, Cap10_100 = 0, Cap1000 = 0;
732 732
 
733 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 736
 	board_idx++;
737 737
 
@@ -749,7 +749,7 @@ static int r8169_probe ( struct nic *nic, struct pci_device *pci ) {
749 749
 	dprintf(("%s: Identified chip type is '%s'.\n", pci->name,
750 750
 		 rtl_chip_info[tpc->chipset].name));
751 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 753
 	       ioaddr);
754 754
 
755 755
 	/* if TBI is not endbled */
@@ -836,7 +836,7 @@ static int r8169_probe ( struct nic *nic, struct pci_device *pci ) {
836 836
 		udelay(100);
837 837
 		printf
838 838
 		    ("%s: 1000Mbps Full-duplex operation, TBI Link %s!\n",
839
-		     dev->name,
839
+		     pci->name,
840 840
 		     (RTL_R32(TBICSR) & TBILinkOK) ? "OK" : "Failed");
841 841
 
842 842
 	}

+ 3
- 3
src/drivers/net/sundance.c ファイルの表示

@@ -596,7 +596,7 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
596 596
 	/* BASE is used throughout to address the card */
597 597
 	BASE = pci->ioaddr;
598 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 601
 	/* Get the MAC Address by reading the EEPROM */
602 602
 	for (i = 0; i < 3; i++) {
@@ -618,13 +618,13 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
618 618
 	/* point to private storage */
619 619
 	sdc = &sdx;
620 620
 
621
-	sdc->nic_name = dev->name;
621
+	sdc->nic_name = pci->name;
622 622
 	sdc->mtu = mtu;
623 623
 
624 624
 	pci_read_config_byte(pci, PCI_REVISION_ID, &sdc->pci_rev_id);
625 625
 	dprintf(("Device revision id: %hx\n", sdc->pci_rev_id));
626 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 628
 	sdc->mii_preamble_required = 0;
629 629
 	if (1) {
630 630
 		int phy, phy_idx = 0;

+ 3
- 3
src/drivers/net/tg3.c ファイルの表示

@@ -2841,9 +2841,9 @@ static int tg3_get_invariants(struct tg3 *tp)
2841 2841
 	if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) &&
2842 2842
 		    ((grc_misc_cfg == 0x8000) || (grc_misc_cfg == 0x4000))) ||
2843 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 2847
 		tp->tg3_flags |= TG3_FLAG_10_100_ONLY;
2848 2848
 	}
2849 2849
 

+ 6
- 6
src/drivers/net/tlan.c ファイルの表示

@@ -806,7 +806,7 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
806 806
 	i = 0;
807 807
 	chip_idx = -1;
808 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 810
 		    (tlan_pci_tbl[i].id.pci & 0xffffffff)) {
811 811
 			chip_idx = i;
812 812
 			break;
@@ -814,9 +814,9 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
814 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 820
 	priv->eoc = 0;
821 821
 
822 822
 	err = 0;
@@ -827,11 +827,11 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
827 827
 				       (u8 *) & nic->node_addr[i]);
828 828
 	if (err) {
829 829
 		printf("TLAN: %s: Error reading MAC from eeprom: %d\n",
830
-		       dev->name, err);
830
+		       pci->name, err);
831 831
 	} else 
832 832
 		/* Print out some hardware info */
833 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 836
 	priv->tlanRev = TLan_DioRead8(BASE, TLAN_DEF_REVISION);
837 837
 	printf("revision: 0x%hX\n", priv->tlanRev);

+ 3
- 3
src/drivers/net/tulip.c ファイルの表示

@@ -1245,9 +1245,9 @@ static int tulip_probe ( struct nic *nic, struct pci_device *pci ) {
1245 1245
     /* point to private storage */
1246 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 1252
     tp->if_port = 0;
1253 1253
     tp->default_port = 0;

+ 1
- 1
src/drivers/net/via-rhine.c ファイルの表示

@@ -960,7 +960,7 @@ rhine_probe ( struct nic *nic, struct pci_device *pci ) {
960 960
 
961 961
     if (!pci->ioaddr)
962 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 965
     adjust_pci_device ( pci );
966 966
     rhine_reset (nic);

+ 6
- 5
src/drivers/net/w89c840.c ファイルの表示

@@ -649,19 +649,20 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) {
649 649
 #define PCI_DEVICE_ID_COMPEX_RL100ATX   0x2011
650 650
 
651 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 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 660
         /* detected "Compex RL100ATX Fast Ethernet PCI NIC" */
661 661
 
662 662
     } else {
663 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 666
         return 0;
666 667
     }
667 668
 

読み込み中…
キャンセル
保存