mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qdev: kill off DeviceInfo
It is no longer used in the tree since everything is done natively through QEMU Object Model. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
39bffca203
commit
d307af795d
15 changed files with 15 additions and 114 deletions
33
hw/qdev.h
33
hw/qdev.h
|
@ -14,8 +14,6 @@ typedef struct PropertyInfo PropertyInfo;
|
|||
|
||||
typedef struct CompatProperty CompatProperty;
|
||||
|
||||
typedef struct DeviceInfo DeviceInfo;
|
||||
|
||||
typedef struct BusState BusState;
|
||||
|
||||
typedef struct BusInfo BusInfo;
|
||||
|
@ -72,7 +70,7 @@ typedef struct DeviceProperty
|
|||
#define DEVICE_CLASS(klass) OBJECT_CLASS_CHECK(DeviceClass, (klass), TYPE_DEVICE)
|
||||
#define DEVICE_GET_CLASS(obj) OBJECT_GET_CLASS(DeviceClass, (obj), TYPE_DEVICE)
|
||||
|
||||
typedef int (*qdev_initfn)(DeviceState *dev, DeviceInfo *info);
|
||||
typedef int (*qdev_initfn)(DeviceState *dev);
|
||||
typedef int (*qdev_event)(DeviceState *dev);
|
||||
typedef void (*qdev_resetfn)(DeviceState *dev);
|
||||
|
||||
|
@ -233,35 +231,6 @@ BusState *qdev_get_child_bus(DeviceState *dev, const char *name);
|
|||
|
||||
/*** Device API. ***/
|
||||
|
||||
struct DeviceInfo {
|
||||
const char *name;
|
||||
const char *fw_name;
|
||||
const char *alias;
|
||||
const char *desc;
|
||||
size_t size;
|
||||
Property *props;
|
||||
int no_user;
|
||||
|
||||
/* callbacks */
|
||||
qdev_resetfn reset;
|
||||
|
||||
/* device state */
|
||||
const VMStateDescription *vmsd;
|
||||
|
||||
/**
|
||||
* See #TypeInfo::class_init()
|
||||
*/
|
||||
void (*class_init)(ObjectClass *klass, void *data);
|
||||
|
||||
/* Private to qdev / bus. */
|
||||
qdev_initfn init;
|
||||
qdev_event unplug;
|
||||
qdev_event exit;
|
||||
BusInfo *bus_info;
|
||||
};
|
||||
|
||||
void qdev_register_subclass(DeviceInfo *info, const char *parent);
|
||||
|
||||
/* Register device properties. */
|
||||
/* GPIO inputs also double as IRQ sinks. */
|
||||
void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler handler, int n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue