PCI and IRQ rework, pci.c rewritten from ground up, fixes numerous issues such as the bridge being added when the number of normal PCI devices equals the number of normal PCI slots, Windows 95 PCI operation on Intel 430NX, sharing of PCI IRQ's with non-PCI level-triggered devices, having both configuration mechanisms operating at the same time (ALi M1435), etc., and makes the code much more readable.
This commit is contained in:
@@ -19,15 +19,21 @@ typedef struct pci_dummy_t {
|
||||
|
||||
uint8_t card;
|
||||
uint8_t interrupt_on;
|
||||
|
||||
uint8_t irq_level;
|
||||
} pci_dummy_t;
|
||||
|
||||
static void
|
||||
pci_dummy_interrupt(int set, pci_dummy_t *dev)
|
||||
{
|
||||
if (set)
|
||||
pci_set_irq(dev->card, PCI_INTA);
|
||||
else
|
||||
pci_clear_irq(dev->card, PCI_INTA);
|
||||
if (set != dev->irq_level) {
|
||||
if (set)
|
||||
pci_set_irq(dev->card, PCI_INTA);
|
||||
else
|
||||
pci_clear_irq(dev->card, PCI_INTA);
|
||||
}
|
||||
|
||||
dev->irq_level = set;
|
||||
}
|
||||
|
||||
static uint8_t
|
||||
|
||||
Reference in New Issue
Block a user