summaryrefslogtreecommitdiffstats
path: root/hw/qdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index eb4ac2f..210062a 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -24,6 +24,7 @@ struct DeviceState
int num_gpio_in;
qemu_irq *gpio_in;
ChildBusList *child_bus;
+ NICInfo *nd;
};
/*** Board API. This should go away once we have a machine config file. ***/
@@ -34,6 +35,7 @@ void qdev_init(DeviceState *dev);
/* Set properties between creation and init. */
void qdev_set_prop_int(DeviceState *dev, const char *name, int value);
void qdev_set_prop_ptr(DeviceState *dev, const char *name, void *value);
+void qdev_set_netdev(DeviceState *dev, NICInfo *nd);
qemu_irq qdev_get_irq_sink(DeviceState *dev, int n);
qemu_irq qdev_get_gpio_in(DeviceState *dev, int n);
OpenPOWER on IntegriCloud