From 0487eea48ecc6e525d6e626d94da54e203089a95 Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Fri, 6 Nov 2015 14:09:00 -0500 Subject: ahci: split realize and init Do the init level tasks asap and the realize later (mainly when num_ports is available). This allows sub-class realize routines to work with the device post-init. Signed-off-by: Peter Crosthwaite Reviewed-by: John Snow Message-id: 1a7c7b2b32e5ccf49373a5065da5ece89730d3ac.1445917756.git.crosthwaite.peter@gmail.com Signed-off-by: John Snow --- hw/ide/ahci.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/ide/ahci.h') diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h index c9b3805415..4ccaf5d819 100644 --- a/hw/ide/ahci.h +++ b/hw/ide/ahci.h @@ -366,7 +366,8 @@ typedef struct SDBFIS { uint32_t payload; } QEMU_PACKED SDBFIS; -void ahci_init(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports); +void ahci_realize(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports); +void ahci_init(AHCIState *s, DeviceState *qdev); void ahci_uninit(AHCIState *s); void ahci_reset(AHCIState *s); -- cgit v1.2.3