Revision 9d07d757 hw/qdev.h
b/hw/qdev.h | ||
---|---|---|
24 | 24 |
int num_gpio_in; |
25 | 25 |
qemu_irq *gpio_in; |
26 | 26 |
ChildBusList *child_bus; |
27 |
NICInfo *nd; |
|
27 | 28 |
}; |
28 | 29 |
|
29 | 30 |
/*** Board API. This should go away once we have a machine config file. ***/ |
... | ... | |
34 | 35 |
/* Set properties between creation and init. */ |
35 | 36 |
void qdev_set_prop_int(DeviceState *dev, const char *name, int value); |
36 | 37 |
void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value); |
38 |
void qdev_set_netdev(DeviceState *dev, NICInfo *nd); |
|
37 | 39 |
|
38 | 40 |
qemu_irq qdev_get_irq_sink(DeviceState *dev, int n); |
39 | 41 |
qemu_irq qdev_get_gpio_in(DeviceState *dev, int n); |
Also available in: Unified diff