4 #include "qemu-common.h"
9 /* Capability offset in device's config space */
12 /* # of hot-pluggable slots */
15 /* SHPC WRS: working register set */
18 /* Used to enable checks on load. Note that writable bits are
19 * never checked even if set in cmask. */
22 /* Used to implement R/W bytes */
25 /* Used to implement RW1C(Write 1 to Clear) bytes */
28 /* MMIO for the SHPC BAR */
31 /* Bus controlled by this SHPC */
34 /* MSI already requested for this event */
38 void shpc_reset(PCIDevice
*d
);
39 int shpc_bar_size(PCIDevice
*dev
);
40 int shpc_init(PCIDevice
*dev
, PCIBus
*sec_bus
, MemoryRegion
*bar
, unsigned off
);
41 void shpc_cleanup(PCIDevice
*dev
, MemoryRegion
*bar
);
42 void shpc_cap_write_config(PCIDevice
*d
, uint32_t addr
, uint32_t val
, int len
);
44 extern VMStateInfo shpc_vmstate_info
;
45 #define SHPC_VMSTATE(_field, _type) \
46 VMSTATE_BUFFER_UNSAFE_INFO(_field, _type, 0, shpc_vmstate_info, 0)