summaryrefslogtreecommitdiffstats
path: root/include/hw/pci/pcie.h
diff options
context:
space:
mode:
authorMarcel Apfelbaum2014-06-23 16:32:48 +0200
committerMichael S. Tsirkin2014-06-23 16:48:42 +0200
commitf23b6bdc3c30c77ba0dffaa6de5e398dc3c49c51 (patch)
treed60338e3cc88b6d1cee7a8a6778a9757657dfd6a /include/hw/pci/pcie.h
parenthw/pcie: correct debug message (diff)
downloadqemu-f23b6bdc3c30c77ba0dffaa6de5e398dc3c49c51.tar.gz
qemu-f23b6bdc3c30c77ba0dffaa6de5e398dc3c49c51.tar.xz
qemu-f23b6bdc3c30c77ba0dffaa6de5e398dc3c49c51.zip
hw/pcie: implement power controller functionality
It is needed by hot-unplug in order to get an indication from the OS when the device can be physically detached. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/pci/pcie.h')
-rw-r--r--include/hw/pci/pcie.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci/pcie.h b/include/hw/pci/pcie.h
index b0bf7e3ce1..7fe81f31ef 100644
--- a/include/hw/pci/pcie.h
+++ b/include/hw/pci/pcie.h
@@ -76,6 +76,8 @@ struct PCIExpressDevice {
PCIEAERLog aer_log;
};
+#define COMPAT_PROP_PCP "power_controller_present"
+
/* PCI express capability helper functions */
int pcie_cap_init(PCIDevice *dev, uint8_t offset, uint8_t type, uint8_t port);
int pcie_endpoint_cap_init(PCIDevice *dev, uint8_t offset);