Skip to content
  • Markus Armbruster's avatar
    edf5ca5d
    include/hw/pci: Split pci_device.h off pci.h · edf5ca5d
    Markus Armbruster authored
    
    
    PCIDeviceClass and PCIDevice are defined in pci.h.  Many users of the
    header don't actually need them.  Similar structs live in their own
    headers: PCIBusClass and PCIBus in pci_bus.h, PCIBridge in
    pci_bridge.h, PCIHostBridgeClass and PCIHostState in pci_host.h,
    PCIExpressHost in pcie_host.h, and PCIERootPortClass, PCIEPort, and
    PCIESlot in pcie_port.h.
    
    Move PCIDeviceClass and PCIDeviceClass to new pci_device.h, along with
    the code that needs them.  Adjust include directives.
    
    This also enables the next commit.
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-Id: <20221222100330.380143-6-armbru@redhat.com>
    Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    edf5ca5d
    include/hw/pci: Split pci_device.h off pci.h
    Markus Armbruster authored
    
    
    PCIDeviceClass and PCIDevice are defined in pci.h.  Many users of the
    header don't actually need them.  Similar structs live in their own
    headers: PCIBusClass and PCIBus in pci_bus.h, PCIBridge in
    pci_bridge.h, PCIHostBridgeClass and PCIHostState in pci_host.h,
    PCIExpressHost in pcie_host.h, and PCIERootPortClass, PCIEPort, and
    PCIESlot in pcie_port.h.
    
    Move PCIDeviceClass and PCIDeviceClass to new pci_device.h, along with
    the code that needs them.  Adjust include directives.
    
    This also enables the next commit.
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-Id: <20221222100330.380143-6-armbru@redhat.com>
    Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Loading