aboutsummaryrefslogtreecommitdiff
path: root/hw/char/ipack.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-08-23 20:07:28 +0200
committerAndreas Färber <afaerber@suse.de>2013-08-30 20:14:38 +0200
commit77cbb28a5b90dbd183e1139734bcc2ac9ecbdd6a (patch)
tree4cafe128e6bdaec2e2f992782d73039f337c6b0e /hw/char/ipack.h
parentab809e84a722f8fa1bcdeac5e3ebae10d90fb788 (diff)
ipack: Pass size to ipack_bus_new_inplace()
To be passed to qbus_create_inplace(). Simplify DEVICE() cast to avoid parent field access. Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/char/ipack.h')
-rw-r--r--hw/char/ipack.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/char/ipack.h b/hw/char/ipack.h
index f2b7a12e05..f8dc0f242a 100644
--- a/hw/char/ipack.h
+++ b/hw/char/ipack.h
@@ -72,7 +72,8 @@ extern const VMStateDescription vmstate_ipack_device;
VMSTATE_STRUCT(_field, _state, 1, vmstate_ipack_device, IPackDevice)
IPackDevice *ipack_device_find(IPackBus *bus, int32_t slot);
-void ipack_bus_new_inplace(IPackBus *bus, DeviceState *parent,
+void ipack_bus_new_inplace(IPackBus *bus, size_t bus_size,
+ DeviceState *parent,
const char *name, uint8_t n_slots,
qemu_irq_handler handler);