提交 0516ede0 编写于 作者: A aurel32

cmd646: correctly enable IDE channels

Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6232 c046a42c-6fe2-441c-8c8c-71466251a162
上级 5ce4aafd
...@@ -3185,9 +3185,10 @@ void pci_cmd646_ide_init(PCIBus *bus, BlockDriverState **hd_table, ...@@ -3185,9 +3185,10 @@ void pci_cmd646_ide_init(PCIBus *bus, BlockDriverState **hd_table,
pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage
pci_conf[0x0e] = 0x00; // header_type pci_conf[0x0e] = 0x00; // header_type
pci_conf[0x51] = 0x04; // enable IDE0
if (secondary_ide_enabled) { if (secondary_ide_enabled) {
/* XXX: if not enabled, really disable the seconday IDE controller */ /* XXX: if not enabled, really disable the seconday IDE controller */
pci_conf[0x51] = 0x80; /* enable IDE1 */ pci_conf[0x51] |= 0x08; /* enable IDE1 */
} }
pci_register_io_region((PCIDevice *)d, 0, 0x8, pci_register_io_region((PCIDevice *)d, 0, 0x8,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册