diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-08 13:05:12 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-08 13:05:12 +0000 |
commit | 77f0435ece5fbf4da304e0f9822e4a3fab8d6fa5 (patch) | |
tree | e285c1cad659036d0109de10ff69e9079eff0163 /hw/ppc_newworld.c | |
parent | 3a616592a18931f814c00f773194ef5819919895 (diff) |
Use CMD646 IDE for now
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6555 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ppc_newworld.c')
-rw-r--r-- | hw/ppc_newworld.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index 022f761c4e..32b0d400ba 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_newworld.c @@ -100,7 +100,6 @@ static void ppc_core99_init (ram_addr_t ram_size, int vga_ram_size, int vga_bios_size, bios_size; qemu_irq *dummy_irq; int pic_mem_index, dbdma_mem_index, cuda_mem_index, escc_mem_index; - int ide_mem_index[2]; int ppc_boot_device; int index; BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; @@ -296,12 +295,8 @@ static void ppc_core99_init (ram_addr_t ram_size, int vga_ram_size, hd[i] = NULL; } dbdma = DBDMA_init(&dbdma_mem_index); -#if 1 - ide_mem_index[0] = pmac_ide_init(&hd[0], pic[0x13], dbdma, 0x14, pic[0x01]); - ide_mem_index[1] = pmac_ide_init(&hd[2], pic[0x14], dbdma, 0x16, pic[0x02]); -#else - pci_cmd646_ide_init(pci_bus, &hd[0], 0); -#endif + pci_cmd646_ide_init(pci_bus, hd, 0); + /* cuda also initialize ADB */ cuda_init(&cuda_mem_index, pic[0x19]); @@ -310,7 +305,7 @@ static void ppc_core99_init (ram_addr_t ram_size, int vga_ram_size, macio_init(pci_bus, PCI_DEVICE_ID_APPLE_UNI_N_KEYL, 0, pic_mem_index, - dbdma_mem_index, cuda_mem_index, NULL, 2, ide_mem_index, + dbdma_mem_index, cuda_mem_index, NULL, 0, NULL, escc_mem_index); if (usb_enabled) { |