mirror of https://github.com/ipxe/ipxe.git
Coerced into compiling
parent
628444af86
commit
e7c177cc33
|
@ -687,8 +687,8 @@ static int mtd_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
|
|
||||||
adjust_pci_device(pci);
|
adjust_pci_device(pci);
|
||||||
|
|
||||||
mtdx.nic_name = dev->name;
|
mtdx.nic_name = pci->name;
|
||||||
mtdx.dev_id = pci->dev_id;
|
mtdx.dev_id = pci->device_id;
|
||||||
|
|
||||||
/* read ethernet id */
|
/* read ethernet id */
|
||||||
for (i = 0; i < 6; ++i)
|
for (i = 0; i < 6; ++i)
|
||||||
|
|
|
@ -261,9 +261,9 @@ natsemi_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
nic->ioaddr = pci->ioaddr;
|
nic->ioaddr = pci->ioaddr;
|
||||||
|
|
||||||
ioaddr = pci->ioaddr;
|
ioaddr = pci->ioaddr;
|
||||||
vendor = pci->vendor;
|
vendor = pci->vendor_id;
|
||||||
dev_id = pci->dev_id;
|
dev_id = pci->device_id;
|
||||||
nic_name = dev->name;
|
nic_name = pci->name;
|
||||||
|
|
||||||
/* natsemi has a non-standard PM control register
|
/* natsemi has a non-standard PM control register
|
||||||
* in PCI config space. Some boards apparently need
|
* in PCI config space. Some boards apparently need
|
||||||
|
|
|
@ -836,7 +836,7 @@ static int ns83820_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
printf("ns83820.c: Found %s, vendor=0x%hX, device=0x%hX\n",
|
printf("ns83820.c: Found %s, vendor=0x%hX, device=0x%hX\n",
|
||||||
dev->name, pci->vendor, pci->dev_id);
|
pci->name, pci->vendor_id, pci->device_id);
|
||||||
|
|
||||||
/* point to private storage */
|
/* point to private storage */
|
||||||
ns = &nsx;
|
ns = &nsx;
|
||||||
|
@ -877,12 +877,12 @@ static int ns83820_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
ns->CFG_cache = readl(ns->base + CFG);
|
ns->CFG_cache = readl(ns->base + CFG);
|
||||||
|
|
||||||
if ((ns->CFG_cache & CFG_PCI64_DET)) {
|
if ((ns->CFG_cache & CFG_PCI64_DET)) {
|
||||||
printf("%s: detected 64 bit PCI data bus.\n", dev->name);
|
printf("%s: detected 64 bit PCI data bus.\n", pci->name);
|
||||||
/*dev->CFG_cache |= CFG_DATA64_EN; */
|
/*dev->CFG_cache |= CFG_DATA64_EN; */
|
||||||
if (!(ns->CFG_cache & CFG_DATA64_EN))
|
if (!(ns->CFG_cache & CFG_DATA64_EN))
|
||||||
printf
|
printf
|
||||||
("%s: EEPROM did not enable 64 bit bus. Disabled.\n",
|
("%s: EEPROM did not enable 64 bit bus. Disabled.\n",
|
||||||
dev->name);
|
pci->name);
|
||||||
} else
|
} else
|
||||||
ns->CFG_cache &= ~(CFG_DATA64_EN);
|
ns->CFG_cache &= ~(CFG_DATA64_EN);
|
||||||
|
|
||||||
|
|
|
@ -682,7 +682,7 @@ static int pcnet32_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
/* BASE is used throughout to address the card */
|
/* BASE is used throughout to address the card */
|
||||||
ioaddr = pci->ioaddr;
|
ioaddr = pci->ioaddr;
|
||||||
printf("pcnet32.c: Found %s, Vendor=0x%hX Device=0x%hX\n",
|
printf("pcnet32.c: Found %s, Vendor=0x%hX Device=0x%hX\n",
|
||||||
dev->name, pci->vendor, pci->dev_id);
|
pci->name, pci->vendor_id, pci->device_id);
|
||||||
|
|
||||||
nic->irqno = 0;
|
nic->irqno = 0;
|
||||||
pci_fill_nic ( nic, pci );
|
pci_fill_nic ( nic, pci );
|
||||||
|
@ -801,7 +801,7 @@ static int pcnet32_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
nic->node_addr[i] = promaddr[i];
|
nic->node_addr[i] = promaddr[i];
|
||||||
}
|
}
|
||||||
/* Print out some hardware info */
|
/* Print out some hardware info */
|
||||||
printf("%s: %! at ioaddr %hX, ", dev->name, nic->node_addr,
|
printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr,
|
||||||
ioaddr);
|
ioaddr);
|
||||||
|
|
||||||
/* Set to pci bus master */
|
/* Set to pci bus master */
|
||||||
|
|
|
@ -731,7 +731,7 @@ static int r8169_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
int option = -1, Cap10_100 = 0, Cap1000 = 0;
|
int option = -1, Cap10_100 = 0, Cap1000 = 0;
|
||||||
|
|
||||||
printf("r8169.c: Found %s, Vendor=%hX Device=%hX\n",
|
printf("r8169.c: Found %s, Vendor=%hX Device=%hX\n",
|
||||||
dev->name, pci->vendor, pci->dev_id);
|
pci->name, pci->vendor_id, pci->device_id);
|
||||||
|
|
||||||
board_idx++;
|
board_idx++;
|
||||||
|
|
||||||
|
@ -749,7 +749,7 @@ static int r8169_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
dprintf(("%s: Identified chip type is '%s'.\n", pci->name,
|
dprintf(("%s: Identified chip type is '%s'.\n", pci->name,
|
||||||
rtl_chip_info[tpc->chipset].name));
|
rtl_chip_info[tpc->chipset].name));
|
||||||
/* Print out some hardware info */
|
/* Print out some hardware info */
|
||||||
printf("%s: %! at ioaddr %hX, ", dev->name, nic->node_addr,
|
printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr,
|
||||||
ioaddr);
|
ioaddr);
|
||||||
|
|
||||||
/* if TBI is not endbled */
|
/* if TBI is not endbled */
|
||||||
|
@ -836,7 +836,7 @@ static int r8169_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
udelay(100);
|
udelay(100);
|
||||||
printf
|
printf
|
||||||
("%s: 1000Mbps Full-duplex operation, TBI Link %s!\n",
|
("%s: 1000Mbps Full-duplex operation, TBI Link %s!\n",
|
||||||
dev->name,
|
pci->name,
|
||||||
(RTL_R32(TBICSR) & TBILinkOK) ? "OK" : "Failed");
|
(RTL_R32(TBICSR) & TBILinkOK) ? "OK" : "Failed");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -596,7 +596,7 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
/* BASE is used throughout to address the card */
|
/* BASE is used throughout to address the card */
|
||||||
BASE = pci->ioaddr;
|
BASE = pci->ioaddr;
|
||||||
printf(" sundance.c: Found %s Vendor=0x%hX Device=0x%hX\n",
|
printf(" sundance.c: Found %s Vendor=0x%hX Device=0x%hX\n",
|
||||||
dev->name, pci->vendor, pci->dev_id);
|
pci->name, pci->vendor_id, pci->device_id);
|
||||||
|
|
||||||
/* Get the MAC Address by reading the EEPROM */
|
/* Get the MAC Address by reading the EEPROM */
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
|
@ -618,13 +618,13 @@ static int sundance_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
/* point to private storage */
|
/* point to private storage */
|
||||||
sdc = &sdx;
|
sdc = &sdx;
|
||||||
|
|
||||||
sdc->nic_name = dev->name;
|
sdc->nic_name = pci->name;
|
||||||
sdc->mtu = mtu;
|
sdc->mtu = mtu;
|
||||||
|
|
||||||
pci_read_config_byte(pci, PCI_REVISION_ID, &sdc->pci_rev_id);
|
pci_read_config_byte(pci, PCI_REVISION_ID, &sdc->pci_rev_id);
|
||||||
dprintf(("Device revision id: %hx\n", sdc->pci_rev_id));
|
dprintf(("Device revision id: %hx\n", sdc->pci_rev_id));
|
||||||
/* Print out some hardware info */
|
/* Print out some hardware info */
|
||||||
printf("%s: %! at ioaddr %hX, ", dev->name, nic->node_addr, BASE);
|
printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE);
|
||||||
sdc->mii_preamble_required = 0;
|
sdc->mii_preamble_required = 0;
|
||||||
if (1) {
|
if (1) {
|
||||||
int phy, phy_idx = 0;
|
int phy, phy_idx = 0;
|
||||||
|
|
|
@ -2841,9 +2841,9 @@ static int tg3_get_invariants(struct tg3 *tp)
|
||||||
if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) &&
|
if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) &&
|
||||||
((grc_misc_cfg == 0x8000) || (grc_misc_cfg == 0x4000))) ||
|
((grc_misc_cfg == 0x8000) || (grc_misc_cfg == 0x4000))) ||
|
||||||
((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) &&
|
((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) &&
|
||||||
(tp->pdev->vendor == PCI_VENDOR_ID_BROADCOM) &&
|
(tp->pdev->vendor_id == PCI_VENDOR_ID_BROADCOM) &&
|
||||||
((tp->pdev->dev_id == PCI_DEVICE_ID_TIGON3_5901) ||
|
((tp->pdev->device_id == PCI_DEVICE_ID_TIGON3_5901) ||
|
||||||
(tp->pdev->dev_id == PCI_DEVICE_ID_TIGON3_5901_2)))) {
|
(tp->pdev->device_id == PCI_DEVICE_ID_TIGON3_5901_2)))) {
|
||||||
tp->tg3_flags |= TG3_FLAG_10_100_ONLY;
|
tp->tg3_flags |= TG3_FLAG_10_100_ONLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -806,7 +806,7 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
i = 0;
|
i = 0;
|
||||||
chip_idx = -1;
|
chip_idx = -1;
|
||||||
while (tlan_pci_tbl[i].name) {
|
while (tlan_pci_tbl[i].name) {
|
||||||
if ((((u32) pci->dev_id << 16) | pci->vendor) ==
|
if ((((u32) pci->device_id << 16) | pci->vendor_id) ==
|
||||||
(tlan_pci_tbl[i].id.pci & 0xffffffff)) {
|
(tlan_pci_tbl[i].id.pci & 0xffffffff)) {
|
||||||
chip_idx = i;
|
chip_idx = i;
|
||||||
break;
|
break;
|
||||||
|
@ -814,9 +814,9 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->vendor_id = pci->vendor;
|
priv->vendor_id = pci->vendor_id;
|
||||||
priv->dev_id = pci->dev_id;
|
priv->dev_id = pci->device_id;
|
||||||
priv->nic_name = dev->name;
|
priv->nic_name = pci->name;
|
||||||
priv->eoc = 0;
|
priv->eoc = 0;
|
||||||
|
|
||||||
err = 0;
|
err = 0;
|
||||||
|
@ -827,11 +827,11 @@ static int tlan_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
(u8 *) & nic->node_addr[i]);
|
(u8 *) & nic->node_addr[i]);
|
||||||
if (err) {
|
if (err) {
|
||||||
printf("TLAN: %s: Error reading MAC from eeprom: %d\n",
|
printf("TLAN: %s: Error reading MAC from eeprom: %d\n",
|
||||||
dev->name, err);
|
pci->name, err);
|
||||||
} else
|
} else
|
||||||
/* Print out some hardware info */
|
/* Print out some hardware info */
|
||||||
printf("%s: %! at ioaddr %hX, ",
|
printf("%s: %! at ioaddr %hX, ",
|
||||||
dev->name, nic->node_addr, pci->ioaddr);
|
pci->name, nic->node_addr, pci->ioaddr);
|
||||||
|
|
||||||
priv->tlanRev = TLan_DioRead8(BASE, TLAN_DEF_REVISION);
|
priv->tlanRev = TLan_DioRead8(BASE, TLAN_DEF_REVISION);
|
||||||
printf("revision: 0x%hX\n", priv->tlanRev);
|
printf("revision: 0x%hX\n", priv->tlanRev);
|
||||||
|
|
|
@ -1245,9 +1245,9 @@ static int tulip_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
/* point to private storage */
|
/* point to private storage */
|
||||||
tp = &tpx;
|
tp = &tpx;
|
||||||
|
|
||||||
tp->vendor_id = pci->vendor;
|
tp->vendor_id = pci->vendor_id;
|
||||||
tp->dev_id = pci->dev_id;
|
tp->dev_id = pci->device_id;
|
||||||
tp->nic_name = dev->name;
|
tp->nic_name = pci->name;
|
||||||
|
|
||||||
tp->if_port = 0;
|
tp->if_port = 0;
|
||||||
tp->default_port = 0;
|
tp->default_port = 0;
|
||||||
|
|
|
@ -960,7 +960,7 @@ rhine_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
|
|
||||||
if (!pci->ioaddr)
|
if (!pci->ioaddr)
|
||||||
return 0;
|
return 0;
|
||||||
rhine_probe1 (nic, pci, pci->ioaddr, pci->dev_id, -1);
|
rhine_probe1 (nic, pci, pci->ioaddr, pci->device_id, -1);
|
||||||
|
|
||||||
adjust_pci_device ( pci );
|
adjust_pci_device ( pci );
|
||||||
rhine_reset (nic);
|
rhine_reset (nic);
|
||||||
|
|
|
@ -649,19 +649,20 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) {
|
||||||
#define PCI_DEVICE_ID_COMPEX_RL100ATX 0x2011
|
#define PCI_DEVICE_ID_COMPEX_RL100ATX 0x2011
|
||||||
|
|
||||||
/* From Matt Hortman <mbhortman@acpthinclient.com> */
|
/* From Matt Hortman <mbhortman@acpthinclient.com> */
|
||||||
if (p->vendor == PCI_VENDOR_ID_WINBOND2
|
if (p->vendor_id == PCI_VENDOR_ID_WINBOND2
|
||||||
&& p->dev_id == PCI_DEVICE_ID_WINBOND2_89C840) {
|
&& p->device_id == PCI_DEVICE_ID_WINBOND2_89C840) {
|
||||||
|
|
||||||
/* detected "Winbond W89c840 Fast Ethernet PCI NIC" */
|
/* detected "Winbond W89c840 Fast Ethernet PCI NIC" */
|
||||||
|
|
||||||
} else if ( p->vendor == PCI_VENDOR_ID_COMPEX
|
} else if ( p->vendor_id == PCI_VENDOR_ID_COMPEX
|
||||||
&& p->dev_id == PCI_DEVICE_ID_COMPEX_RL100ATX) {
|
&& p->device_id == PCI_DEVICE_ID_COMPEX_RL100ATX) {
|
||||||
|
|
||||||
/* detected "Compex RL100ATX Fast Ethernet PCI NIC" */
|
/* detected "Compex RL100ATX Fast Ethernet PCI NIC" */
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* Gee, guess what? They missed again. */
|
/* Gee, guess what? They missed again. */
|
||||||
printf("device ID : %X - is not a Compex RL100ATX NIC.\n", p->dev_id);
|
printf("device ID : %X - is not a Compex RL100ATX NIC.\n",
|
||||||
|
p->device_id);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue