mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
configure BMDMA
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@972 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9808745072
commit
d187d4b218
2
hw/pci.c
2
hw/pci.c
@ -1402,9 +1402,9 @@ static void pci_bios_init_device(PCIDevice *d)
|
||||
case 0x0101:
|
||||
if (vendor_id == 0x8086 && device_id == 0x7010) {
|
||||
/* PIIX3 IDE */
|
||||
pci_config_writew(d, PCI_COMMAND, PCI_COMMAND_IO);
|
||||
pci_config_writew(d, 0x40, 0x8000); // enable IDE0
|
||||
pci_config_writew(d, 0x42, 0x8000); // enable IDE1
|
||||
goto default_map;
|
||||
} else {
|
||||
/* IDE: we map it as in ISA mode */
|
||||
pci_set_io_region_addr(d, 0, 0x1f0);
|
||||
|
Loading…
Reference in New Issue
Block a user