diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-21 11:10:41 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-07-21 11:10:41 +0000 |
commit | 5a053d1f2e75e6a87c483bb3ff5cc6cdf29e1569 (patch) | |
tree | cad650a6d28eea6c89d6d7062e1fe16e4824ff02 /hw/qdev.h | |
parent | 636aa70ade7e9b96eb9382ba3a503043e83d876b (diff) |
qdev: add 64 bit type
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -58,6 +58,7 @@ enum PropertyType { PROP_TYPE_UNSPEC = 0, PROP_TYPE_UINT16, PROP_TYPE_UINT32, + PROP_TYPE_UINT64, PROP_TYPE_TADDR, PROP_TYPE_MACADDR, PROP_TYPE_PTR, @@ -145,7 +146,9 @@ void do_info_qtree(Monitor *mon); extern PropertyInfo qdev_prop_uint16; extern PropertyInfo qdev_prop_uint32; +extern PropertyInfo qdev_prop_uint64; extern PropertyInfo qdev_prop_hex32; +extern PropertyInfo qdev_prop_hex64; extern PropertyInfo qdev_prop_ptr; extern PropertyInfo qdev_prop_macaddr; @@ -155,6 +158,7 @@ int qdev_prop_parse(DeviceState *dev, const char *name, const char *value); void qdev_prop_set(DeviceState *dev, const char *name, void *src, enum PropertyType type); void qdev_prop_set_uint16(DeviceState *dev, const char *name, uint16_t value); void qdev_prop_set_uint32(DeviceState *dev, const char *name, uint32_t value); +void qdev_prop_set_uint64(DeviceState *dev, const char *name, uint64_t value); /* FIXME: Remove opaque pointer properties. */ void qdev_prop_set_ptr(DeviceState *dev, const char *name, void *value); void qdev_prop_set_defaults(DeviceState *dev, Property *props); |