|
@@ -951,11 +951,9 @@ static int forcedeth_probe ( struct nic *nic, struct pci_device *pci ) {
|
951
|
951
|
return 0;
|
952
|
952
|
|
953
|
953
|
printf("forcedeth.c: Found %s, vendor=0x%hX, device=0x%hX\n",
|
954
|
|
- dev->name, pci->vendor, pci->dev_id);
|
|
954
|
+ pci->name, pci->vendor_id, pci->device_id);
|
955
|
955
|
|
956
|
|
- nic->irqno = 0;
|
957
|
956
|
pci_fill_nic ( nic, pci );
|
958
|
|
- nic->ioaddr = pci->ioaddr;
|
959
|
957
|
|
960
|
958
|
/* point to private storage */
|
961
|
959
|
np = &npx;
|
|
@@ -1003,12 +1001,12 @@ static int forcedeth_probe ( struct nic *nic, struct pci_device *pci ) {
|
1003
|
1001
|
get_random_bytes(&dev->dev_addr[3], 3);
|
1004
|
1002
|
}
|
1005
|
1003
|
#endif
|
1006
|
|
- printf("%s: MAC Address %!, ", dev->name, nic->node_addr);
|
|
1004
|
+ printf("%s: MAC Address %!, ", pci->name, nic->node_addr);
|
1007
|
1005
|
|
1008
|
1006
|
np->tx_flags =
|
1009
|
1007
|
cpu_to_le16(NV_TX_LASTPACKET | NV_TX_LASTPACKET1 |
|
1010
|
1008
|
NV_TX_VALID);
|
1011
|
|
- switch (pci->dev_id) {
|
|
1009
|
+ switch (pci->device_id) {
|
1012
|
1010
|
case 0x01C3: // nforce
|
1013
|
1011
|
np->irqmask = NVREG_IRQMASK_WANTED_2;
|
1014
|
1012
|
np->irqmask |= NVREG_IRQ_TIMER;
|