summaryrefslogtreecommitdiffstats
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorPaul Brook2009-05-14 23:35:07 +0200
committerPaul Brook2009-05-14 23:35:07 +0200
commit9d07d7579bcaf01e05c511c63d091ed2ac310091 (patch)
tree20ed00454b9ddabf62cc673b14d1234cbc078287 /hw/qdev.h
parentLSI SCSI qdev conversion (diff)
downloadqemu-9d07d7579bcaf01e05c511c63d091ed2ac310091.tar.gz
qemu-9d07d7579bcaf01e05c511c63d091ed2ac310091.tar.xz
qemu-9d07d7579bcaf01e05c511c63d091ed2ac310091.zip
PCI network qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
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 eb4ac2f6f9..210062a0af 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);