Extensively reworked the PCI bus emulation, fixes quite a few bugs, including incorrect IRQ routing for the last two slots on the Intel Advanced/ATX.

This commit is contained in:
OBattler
2017-08-30 04:49:20 +02:00
parent 18dbde0118
commit 0d84add8a3
25 changed files with 771 additions and 333 deletions

View File

@@ -49,13 +49,6 @@
#define PCI_REGSIZE 256 /* size of PCI space */
/* For PCI. */
typedef union {
uint32_t addr;
uint8_t addr_regs[4];
} bar_t;
/* Never completely fill the ne2k ring so that we never
hit the unclear completely full buffer condition. */
#define NE2K_NEVER_FULL_RING (1)
@@ -2018,7 +2011,7 @@ nic_init(int board)
dev->eeprom[0x7D] = (PCI_VENDID>>8);
/* Insert this device onto the PCI bus, keep its slot number. */
dev->card = pci_add(nic_pci_read, nic_pci_write, dev);
dev->card = pci_add_card(PCI_ADD_NORMAL, nic_pci_read, nic_pci_write, dev);
}
/* Set up our BIA. */