Set Link State from VBox to 86Box implemented on the PCnet card (any other nics don't have it and will simply return NULL).

The PCnet-based Racal nic now has its own OID to make its drivers happy (according to VBox).
This commit is contained in:
TC1995
2020-04-20 19:02:13 +02:00
parent 9a287c31e5
commit 2de9a3f37a
8 changed files with 203 additions and 72 deletions

View File

@@ -1469,7 +1469,7 @@ nic_init(const device_t *info)
nic_reset(dev);
/* Attach ourselves to the network module. */
network_attach(dev->dp8390, dev->dp8390->physaddr, dp8390_rx, NULL);
network_attach(dev->dp8390, dev->dp8390->physaddr, dp8390_rx, NULL, NULL);
nelog(1, "%s: %s attached IO=0x%X IRQ=%d\n", dev->name,
dev->is_pci?"PCI":"ISA", dev->base_address, dev->base_irq);