Merged various SMC FDC67C6xx Super I/O chips into one file, re-added the UMC88xx 486 chipsets (and four machines for it) based on work by tiseno100 and my own work, various other fixes, and added quite a few machines (including the AOpen AP5VM which now works), also added the remaining ALi M6117 machine (Protech SBC with Award BIOS), and made the Intel Advanced/ATX's on-board S3 Trio64V+ work, as well as the on-board S3 Trio64/V2 of the two Compaq Presarios.
This commit is contained in:
15
src/pci.c
15
src/pci.c
@@ -888,10 +888,17 @@ pci_find_slot(uint8_t add_type, uint8_t ignore_slot)
|
||||
dev = &pci_cards[i];
|
||||
|
||||
if (!dev->read && !dev->write && ((ignore_slot == 0xff) || (i != ignore_slot))) {
|
||||
if (((dev->type == PCI_CARD_NORMAL) && (add_type >= PCI_ADD_NORMAL)) ||
|
||||
(dev->type == add_type)) {
|
||||
ret = i;
|
||||
break;
|
||||
if (add_type & PCI_ADD_STRICT) {
|
||||
if (dev->type == (add_type & 0x7f)) {
|
||||
ret = i;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (((dev->type == PCI_CARD_NORMAL) && ((add_type & 0x7f) >= PCI_ADD_NORMAL)) ||
|
||||
(dev->type == (add_type & 0x7f))) {
|
||||
ret = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user