diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-02-01 15:21:23 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-02-01 15:21:23 -0600 |
commit | cfb41c82ab9c468e599d3603ffcebeb81b6577ca (patch) | |
tree | c29d87265f8330b05142e25b91d6c44cd161c70e /hw/hw.h | |
parent | e54b7f5256659dddaf6b5c021847859829d7ebd7 (diff) | |
parent | ea87e95f8fda609fa665c2abd33c30ae65e6fae2 (diff) |
Merge remote branch 'spice/usb.5' into staging
Diffstat (limited to 'hw/hw.h')
-rw-r--r-- | hw/hw.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -587,6 +587,16 @@ extern const VMStateDescription vmstate_i2c_slave; .offset = vmstate_offset_value(_state, _field, i2c_slave), \ } +extern const VMStateDescription vmstate_usb_device; + +#define VMSTATE_USB_DEVICE(_field, _state) { \ + .name = (stringify(_field)), \ + .size = sizeof(USBDevice), \ + .vmsd = &vmstate_usb_device, \ + .flags = VMS_STRUCT, \ + .offset = vmstate_offset_value(_state, _field, USBDevice), \ +} + #define vmstate_offset_macaddr(_state, _field) \ vmstate_offset_array(_state, _field.a, uint8_t, \ sizeof(typeof_field(_state, _field))) |