shpc.c (0db949f1810f4d497762d57d8db6f219c0607529) shpc.c (981c3dcd948907f1127bc1d85b6e455dce687096)
1#include "qemu/osdep.h"
2#include "qapi/error.h"
3#include "qemu/host-utils.h"
4#include "qemu/range.h"
5#include "qemu/error-report.h"
6#include "hw/pci/shpc.h"
7#include "migration/qemu-file-types.h"
8#include "hw/pci/pci.h"

--- 533 unchanged lines hidden (view full) ---

542 }
543 shpc_set_status(shpc, slot, 0, SHPC_SLOT_STATUS_66);
544 shpc_interrupt_update(pci_hotplug_dev);
545}
546
547void shpc_device_unplug_cb(HotplugHandler *hotplug_dev, DeviceState *dev,
548 Error **errp)
549{
1#include "qemu/osdep.h"
2#include "qapi/error.h"
3#include "qemu/host-utils.h"
4#include "qemu/range.h"
5#include "qemu/error-report.h"
6#include "hw/pci/shpc.h"
7#include "migration/qemu-file-types.h"
8#include "hw/pci/pci.h"

--- 533 unchanged lines hidden (view full) ---

542 }
543 shpc_set_status(shpc, slot, 0, SHPC_SLOT_STATUS_66);
544 shpc_interrupt_update(pci_hotplug_dev);
545}
546
547void shpc_device_unplug_cb(HotplugHandler *hotplug_dev, DeviceState *dev,
548 Error **errp)
549{
550 object_property_set_bool(OBJECT(dev), false, "realized", &error_abort);
550 qdev_unrealize(dev);
551}
552
553void shpc_device_unplug_request_cb(HotplugHandler *hotplug_dev,
554 DeviceState *dev, Error **errp)
555{
556 Error *local_err = NULL;
557 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev);
558 SHPCDevice *shpc = pci_hotplug_dev->shpc;

--- 170 unchanged lines hidden ---
551}
552
553void shpc_device_unplug_request_cb(HotplugHandler *hotplug_dev,
554 DeviceState *dev, Error **errp)
555{
556 Error *local_err = NULL;
557 PCIDevice *pci_hotplug_dev = PCI_DEVICE(hotplug_dev);
558 SHPCDevice *shpc = pci_hotplug_dev->shpc;

--- 170 unchanged lines hidden ---