Revision 9a43dba0
b/hw/ide/pci.c | ||
---|---|---|
404 | 404 |
} |
405 | 405 |
|
406 | 406 |
pci_register_bar((PCIDevice *)d, 0, 0x8, |
407 |
PCI_ADDRESS_SPACE_IO, ide_map);
|
|
407 |
PCI_ADDRESS_SPACE_IO, ide_map); |
|
408 | 408 |
pci_register_bar((PCIDevice *)d, 1, 0x4, |
409 |
PCI_ADDRESS_SPACE_IO, ide_map);
|
|
409 |
PCI_ADDRESS_SPACE_IO, ide_map); |
|
410 | 410 |
pci_register_bar((PCIDevice *)d, 2, 0x8, |
411 |
PCI_ADDRESS_SPACE_IO, ide_map);
|
|
411 |
PCI_ADDRESS_SPACE_IO, ide_map); |
|
412 | 412 |
pci_register_bar((PCIDevice *)d, 3, 0x4, |
413 |
PCI_ADDRESS_SPACE_IO, ide_map);
|
|
413 |
PCI_ADDRESS_SPACE_IO, ide_map); |
|
414 | 414 |
pci_register_bar((PCIDevice *)d, 4, 0x10, |
415 |
PCI_ADDRESS_SPACE_IO, bmdma_map);
|
|
415 |
PCI_ADDRESS_SPACE_IO, bmdma_map); |
|
416 | 416 |
|
417 | 417 |
pci_conf[0x3d] = 0x01; // interrupt on pin 1 |
418 | 418 |
|
... | ... | |
466 | 466 |
piix3_reset(d); |
467 | 467 |
|
468 | 468 |
pci_register_bar((PCIDevice *)d, 4, 0x10, |
469 |
PCI_ADDRESS_SPACE_IO, bmdma_map);
|
|
469 |
PCI_ADDRESS_SPACE_IO, bmdma_map); |
|
470 | 470 |
|
471 | 471 |
ide_init2(&d->bus[0], hd_table[0], hd_table[1], isa_reserve_irq(14)); |
472 | 472 |
ide_init2(&d->bus[1], hd_table[2], hd_table[3], isa_reserve_irq(15)); |
Also available in: Unified diff