mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 14:03:29 +03:00
Fields in struct pci_device slightly changed.
This commit is contained in:
@@ -665,13 +665,11 @@ static int davicom_probe ( struct nic *nic, struct pci_device *pci ) {
|
|||||||
if (pci->ioaddr == 0)
|
if (pci->ioaddr == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
vendor = pci->vendor;
|
vendor = pci->vendor_id;
|
||||||
dev_id = pci->dev_id;
|
dev_id = pci->device_id;
|
||||||
ioaddr = pci->ioaddr;
|
ioaddr = pci->ioaddr;
|
||||||
|
|
||||||
nic->irqno = 0;
|
|
||||||
pci_fill_nic ( nic, pci );
|
pci_fill_nic ( nic, pci );
|
||||||
nic->ioaddr = pci->ioaddr;
|
|
||||||
|
|
||||||
/* wakeup chip */
|
/* wakeup chip */
|
||||||
pci_write_config_dword(pci, 0x40, 0x00000000);
|
pci_write_config_dword(pci, 0x40, 0x00000000);
|
||||||
|
|||||||
Reference in New Issue
Block a user