qemu/hw/ppc
John Snow d8f94e1bb2 ide: Update ide_drive_get to be HBA agnostic
Instead of duplicating the logic for the if_ide
(bus,unit) mappings, rely on the blockdev layer
for managing those mappings for us, and use the
drive_get_by_index call instead.

This allows ide_drive_get to work for AHCI HBAs
as well, and can be used in the Q35 initialization.

Lastly, change the nature of the argument to
ide_drive_get so that represents the number of
total drives we can support, and not the total
number of buses. This will prevent array overflows
if the units-per-default-bus property ever needs
to be adjusted for compatibility reasons.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1412187569-23452-5-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-10-03 10:30:33 +01:00
..
e500-ccsr.h
e500.c ppc: convert g_new(qemu_irq usages to g_new0 2014-08-15 18:54:50 +04:00
e500.h
e500plat.c
mac_newworld.c ide: Update ide_drive_get to be HBA agnostic 2014-10-03 10:30:33 +01:00
mac_oldworld.c ide: Update ide_drive_get to be HBA agnostic 2014-10-03 10:30:33 +01:00
mac.h PPC: Cuda: Use cuda timer to expose tbfreq to guest 2014-09-08 12:50:52 +02:00
Makefile.objs
mpc8544_guts.c
mpc8544ds.c
ppc4xx_devs.c SCSI changes that enable sending vendor-specific commands via virtio-scsi. 2014-08-19 13:00:57 +01:00
ppc4xx_pci.c
ppc405_boards.c memory: add parameter errp to memory_region_init_ram 2014-09-09 13:41:43 +02:00
ppc405_uc.c memory: add parameter errp to memory_region_init_ram 2014-09-09 13:41:43 +02:00
ppc405.h
ppc440_bamboo.c
ppc_booke.c
ppc.c
ppce500_spin.c
prep.c ide: Update ide_drive_get to be HBA agnostic 2014-10-03 10:30:33 +01:00
spapr_events.c
spapr_hcall.c hw/ppc/spapr_hcall.c: Fix typo in function names 2014-09-08 12:50:47 +02:00
spapr_iommu.c iommu: add is_write as a parameter to the translate function of MemoryRegionIOMMUOps 2014-08-28 23:10:22 +02:00
spapr_pci_vfio.c
spapr_pci.c spapr_pci: map the MSI window in each PHB 2014-09-08 12:50:53 +02:00
spapr_rtas.c ppc: spapr-rtas - implement os-term rtas call 2014-09-08 12:50:45 +02:00
spapr_vio.c
spapr.c Fix typos and misspellings in comments 2014-09-20 17:55:53 +04:00
virtex_ml507.c ppc: memory: Replace memory_region_init_ram with memory_region_allocate_system_memory 2014-07-15 16:11:58 +02:00