Corrected PCI slots for Intel Advanced/ATX and Intel Advanced/ZP.
This commit is contained in:
18
src/piix.c
18
src/piix.c
@@ -683,7 +683,7 @@ void piix3_reset(void)
|
||||
card_piix_ide[0x44] = 0x00;
|
||||
}
|
||||
|
||||
void piix_init(int card, int pci_a, int pci_b, int pci_c, int pci_d)
|
||||
void piix_init_common(int card)
|
||||
{
|
||||
pci_add_specific(card, piix_read, piix_write, NULL);
|
||||
|
||||
@@ -702,7 +702,23 @@ void piix_init(int card, int pci_a, int pci_b, int pci_c, int pci_d)
|
||||
dma_alias_set();
|
||||
|
||||
pci_reset_handler.pci_set_reset = piix_reset;
|
||||
}
|
||||
|
||||
void piix_init(int card, int pci_a, int pci_b, int pci_c, int pci_d)
|
||||
{
|
||||
piix_init_common(card);
|
||||
|
||||
pci_set_card_routing(pci_a, PCI_INTA);
|
||||
pci_set_card_routing(pci_b, PCI_INTB);
|
||||
pci_set_card_routing(pci_c, PCI_INTC);
|
||||
pci_set_card_routing(pci_d, PCI_INTD);
|
||||
}
|
||||
|
||||
void piix_init_thor(int card, int pci_d_only, int pci_a, int pci_b, int pci_c, int pci_d)
|
||||
{
|
||||
piix_init_common(card);
|
||||
|
||||
pci_set_card_routing(pci_d_only, PCI_INTD);
|
||||
pci_set_card_routing(pci_a, PCI_INTA);
|
||||
pci_set_card_routing(pci_b, PCI_INTB);
|
||||
pci_set_card_routing(pci_c, PCI_INTC);
|
||||
|
||||
Reference in New Issue
Block a user