695
695
shpc_cap_update_dword(d);
698
static int shpc_save(QEMUFile *f, void *pv, size_t size, VMStateField *field,
700
701
PCIDevice *d = container_of(pv, PCIDevice, shpc);
701
702
qemu_put_buffer(f, d->shpc->config, SHPC_SIZEOF(d));
707
static int shpc_load(QEMUFile *f, void *pv, size_t size, VMStateField *field)
706
709
PCIDevice *d = container_of(pv, PCIDevice, shpc);
707
710
int ret = qemu_get_buffer(f, d->shpc->config, SHPC_SIZEOF(d));