mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qdev scsi bus infrastructure
Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
6b1b92d35b
commit
6f68ecb2c1
2 changed files with 23 additions and 0 deletions
|
@ -44,6 +44,8 @@ void *qdev_get_child_bus(DeviceState *dev, const char *name);
|
|||
/*** Device API. ***/
|
||||
|
||||
typedef void (*qdev_initfn)(DeviceState *dev, void *opaque);
|
||||
typedef void (*SCSIAttachFn)(DeviceState *host, BlockDriverState *bdrv,
|
||||
int unit);
|
||||
|
||||
DeviceType *qdev_register(const char *name, int size, qdev_initfn init,
|
||||
void *opaque);
|
||||
|
@ -54,6 +56,8 @@ void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler handler, int n);
|
|||
void qdev_init_gpio_out(DeviceState *dev, qemu_irq *pins, int n);
|
||||
void qdev_attach_child_bus(DeviceState *dev, const char *name, void *bus);
|
||||
|
||||
void scsi_bus_new(DeviceState *host, SCSIAttachFn attach);
|
||||
|
||||
CharDriverState *qdev_init_chardev(DeviceState *dev);
|
||||
|
||||
void *qdev_get_bus(DeviceState *dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue