summary refs log tree commit diff stats
path: root/include/hw/pci
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2025-02-25 14:52:28 -0700
committerCédric Le Goater <clg@redhat.com>2025-03-06 06:47:33 +0100
commit8b8d08cf293b930d0f55b2d5385d8dd27e0c6b41 (patch)
tree1bb1fc4a037d4951f1b7c52c306fbc9e55c170e2 /include/hw/pci
parent05c6a8eff6298675080aa2692ee05a310b3483b4 (diff)
downloadfocaccia-qemu-8b8d08cf293b930d0f55b2d5385d8dd27e0c6b41.tar.gz
focaccia-qemu-8b8d08cf293b930d0f55b2d5385d8dd27e0c6b41.zip
pcie, virtio: Remove redundant pm_cap
The pm_cap on the PCIExpressDevice object can be distilled down
to the new instance on the PCIDevice object.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250225215237.3314011-5-alex.williamson@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include/hw/pci')
-rw-r--r--include/hw/pci/pcie.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/pci/pcie.h b/include/hw/pci/pcie.h
index b8d59732bc..70a5de09de 100644
--- a/include/hw/pci/pcie.h
+++ b/include/hw/pci/pcie.h
@@ -58,8 +58,6 @@ typedef enum {
 struct PCIExpressDevice {
     /* Offset of express capability in config space */
     uint8_t exp_cap;
-    /* Offset of Power Management capability in config space */
-    uint8_t pm_cap;
 
     /* SLOT */
     bool hpev_notified; /* Logical AND of conditions for hot plug event.