qemu-e2k/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
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
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
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