mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
pci: conventional-pci-device and pci-express-device interfaces
Those two interfaces will be used to indicate which device types support Conventional PCI or PCI Express buses. Management software will be able to use the qom-list-types QMP command to query that information. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
a6c242aaf5
commit
619f02aefc
2 changed files with 18 additions and 0 deletions
|
@ -198,6 +198,12 @@ enum {
|
|||
#define PCI_DEVICE_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(PCIDeviceClass, (obj), TYPE_PCI_DEVICE)
|
||||
|
||||
/* Implemented by devices that can be plugged on PCI Express buses */
|
||||
#define INTERFACE_PCIE_DEVICE "pci-express-device"
|
||||
|
||||
/* Implemented by devices that can be plugged on Conventional PCI buses */
|
||||
#define INTERFACE_CONVENTIONAL_PCI_DEVICE "conventional-pci-device"
|
||||
|
||||
typedef struct PCIINTxRoute {
|
||||
enum {
|
||||
PCI_INTX_ENABLED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue