pcie.c (9e3903136d9acde2fb2dd9e967ba928050a6cb4a) pcie.c (981c3dcd948907f1127bc1d85b6e455dce687096)
1/*
2 * pcie.c
3 *
4 * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp>
5 * VA Linux Systems Japan K.K.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

455 pcie_cap_slot_event(hotplug_pdev,
456 PCI_EXP_HP_EV_PDC | PCI_EXP_HP_EV_ABP);
457 }
458}
459
460void pcie_cap_slot_unplug_cb(HotplugHandler *hotplug_dev, DeviceState *dev,
461 Error **errp)
462{
1/*
2 * pcie.c
3 *
4 * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp>
5 * VA Linux Systems Japan K.K.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

455 pcie_cap_slot_event(hotplug_pdev,
456 PCI_EXP_HP_EV_PDC | PCI_EXP_HP_EV_ABP);
457 }
458}
459
460void pcie_cap_slot_unplug_cb(HotplugHandler *hotplug_dev, DeviceState *dev,
461 Error **errp)
462{
463 object_property_set_bool(OBJECT(dev), false, "realized", &error_abort);
463 qdev_unrealize(dev);
464}
465
466static void pcie_unplug_device(PCIBus *bus, PCIDevice *dev, void *opaque)
467{
468 HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(DEVICE(dev));
469
470 if (dev->partially_hotplugged) {
471 dev->qdev.pending_deleted_event = false;

--- 547 unchanged lines hidden ---
464}
465
466static void pcie_unplug_device(PCIBus *bus, PCIDevice *dev, void *opaque)
467{
468 HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(DEVICE(dev));
469
470 if (dev->partially_hotplugged) {
471 dev->qdev.pending_deleted_event = false;

--- 547 unchanged lines hidden ---