diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-13 10:19:38 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-01-09 12:10:28 +0200 |
commit | 5c03a2542fbe1a275fe3dd7ebd48a6a283b249ed (patch) | |
tree | 638a8e6460c4ff1a3224817189c8059425e260be /hw/pci_bridge_dev.c | |
parent | b8ef62a9b746f2d7078d97c7ee5d1c7a31b42d5d (diff) |
pci: use constants for devices under the 1B36 device ID, document them
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci_bridge_dev.c')
-rw-r--r-- | hw/pci_bridge_dev.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/pci_bridge_dev.c b/hw/pci_bridge_dev.c index 7818dcc350..2dd312db35 100644 --- a/hw/pci_bridge_dev.c +++ b/hw/pci_bridge_dev.c @@ -27,10 +27,6 @@ #include "exec/memory.h" #include "pci/pci_bus.h" -#define REDHAT_PCI_VENDOR_ID 0x1b36 -#define PCI_BRIDGE_DEV_VENDOR_ID REDHAT_PCI_VENDOR_ID -#define PCI_BRIDGE_DEV_DEVICE_ID 0x1 - struct PCIBridgeDev { PCIBridge bridge; MemoryRegion bar; @@ -146,8 +142,8 @@ static void pci_bridge_dev_class_init(ObjectClass *klass, void *data) k->init = pci_bridge_dev_initfn; k->exit = pci_bridge_dev_exitfn; k->config_write = pci_bridge_dev_write_config; - k->vendor_id = PCI_BRIDGE_DEV_VENDOR_ID; - k->device_id = PCI_BRIDGE_DEV_DEVICE_ID; + k->vendor_id = PCI_VENDOR_ID_REDHAT; + k->device_id = PCI_DEVICE_ID_REDHAT_BRIDGE; k->class_id = PCI_CLASS_BRIDGE_PCI; k->is_bridge = 1, dc->desc = "Standard PCI Bridge"; |