~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to hw/pci/shpc.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
695
695
    shpc_cap_update_dword(d);
696
696
}
697
697
 
698
 
static void shpc_save(QEMUFile *f, void *pv, size_t size)
 
698
static int shpc_save(QEMUFile *f, void *pv, size_t size, VMStateField *field,
 
699
                     QJSON *vmdesc)
699
700
{
700
701
    PCIDevice *d = container_of(pv, PCIDevice, shpc);
701
702
    qemu_put_buffer(f, d->shpc->config, SHPC_SIZEOF(d));
 
703
 
 
704
    return 0;
702
705
}
703
706
 
704
 
static int shpc_load(QEMUFile *f, void *pv, size_t size)
 
707
static int shpc_load(QEMUFile *f, void *pv, size_t size, VMStateField *field)
705
708
{
706
709
    PCIDevice *d = container_of(pv, PCIDevice, shpc);
707
710
    int ret = qemu_get_buffer(f, d->shpc->config, SHPC_SIZEOF(d));