summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/w89c840.c
diff options
context:
space:
mode:
authorMichael Brown2005-04-22 18:27:56 +0200
committerMichael Brown2005-04-22 18:27:56 +0200
commite7c177cc33c969e8d675f965554ac5092c6580a3 (patch)
tree63777802f435f104a01cbd20b1abfd25dace7e54 /src/drivers/net/w89c840.c
parentUpdated to new device probing API (diff)
downloadipxe-e7c177cc33c969e8d675f965554ac5092c6580a3.tar.gz
ipxe-e7c177cc33c969e8d675f965554ac5092c6580a3.tar.xz
ipxe-e7c177cc33c969e8d675f965554ac5092c6580a3.zip
Coerced into compiling
Diffstat (limited to 'src/drivers/net/w89c840.c')
-rw-r--r--src/drivers/net/w89c840.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/drivers/net/w89c840.c b/src/drivers/net/w89c840.c
index d3686d5e..73609cc1 100644
--- a/src/drivers/net/w89c840.c
+++ b/src/drivers/net/w89c840.c
@@ -649,19 +649,20 @@ static int w89c840_probe ( struct nic *nic, struct pci_device *p ) {
#define PCI_DEVICE_ID_COMPEX_RL100ATX 0x2011
/* From Matt Hortman <mbhortman@acpthinclient.com> */
- if (p->vendor == PCI_VENDOR_ID_WINBOND2
- && p->dev_id == PCI_DEVICE_ID_WINBOND2_89C840) {
+ if (p->vendor_id == PCI_VENDOR_ID_WINBOND2
+ && p->device_id == PCI_DEVICE_ID_WINBOND2_89C840) {
/* detected "Winbond W89c840 Fast Ethernet PCI NIC" */
- } else if ( p->vendor == PCI_VENDOR_ID_COMPEX
- && p->dev_id == PCI_DEVICE_ID_COMPEX_RL100ATX) {
+ } else if ( p->vendor_id == PCI_VENDOR_ID_COMPEX
+ && p->device_id == PCI_DEVICE_ID_COMPEX_RL100ATX) {
/* detected "Compex RL100ATX Fast Ethernet PCI NIC" */
} else {
/* 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;
}