diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-10-30 21:21:18 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:09 -0600 |
commit | a9f49946113262f9449890ed918ab99ef73dace8 (patch) | |
tree | 7c474a0a9bf245a4ba5fde38e4c9a3c94051cb5d /hw/hw.h | |
parent | 9cae69bd8d94ccb1e550d8d17a2142a4d36d8c49 (diff) | |
download | qemu-a9f49946113262f9449890ed918ab99ef73dace8.zip qemu-a9f49946113262f9449890ed918ab99ef73dace8.tar.gz qemu-a9f49946113262f9449890ed918ab99ef73dace8.tar.bz2 |
pci: pcie host and mmcfg support.
This patch adds common routines for pcie host bridge and pcie mmcfg.
This will be used by q35 based chipset emulation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/hw.h')
-rw-r--r-- | hw/hw.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -512,6 +512,17 @@ extern const VMStateDescription vmstate_pci_device; .offset = vmstate_offset_value(_state, _field, PCIDevice), \ } +extern const VMStateDescription vmstate_pcie_device; + +#define VMSTATE_PCIE_DEVICE(_field, _state) { \ + .name = (stringify(_field)), \ + .version_id = 2, \ + .size = sizeof(PCIDevice), \ + .vmsd = &vmstate_pcie_device, \ + .flags = VMS_STRUCT, \ + .offset = vmstate_offset_value(_state, _field, PCIDevice), \ +} + extern const VMStateDescription vmstate_i2c_slave; #define VMSTATE_I2C_SLAVE(_field, _state) { \ |