aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2011-05-25 10:57:58 +0900
committerMichael S. Tsirkin <mst@redhat.com>2011-06-12 10:33:32 +0300
commit113f89df42479924380cad562ab86fd2c8e2d11b (patch)
tree7b5be659c76078f169f096036193ef2b1a9eb982 /hw/pci.h
parent2173a75fb714193c4df9d5ddf9d015786566b19a (diff)
pci: move ids of config space into PCIDeviceInfo
vender id/device id... in configuration space are read-only registers which are commonly defined for all pci devices. So move those initialization into common place. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/pci.h b/hw/pci.h
index c6a6eb67b6..ce214f4e5a 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -433,6 +433,13 @@ typedef struct {
PCIConfigReadFunc *config_read;
PCIConfigWriteFunc *config_write;
+ uint16_t vendor_id;
+ uint16_t device_id;
+ uint8_t revision;
+ uint16_t class_id;
+ uint16_t subsystem_vendor_id; /* only for header type = 0 */
+ uint16_t subsystem_id; /* only for header type = 0 */
+
/*
* pci-to-pci bridge or normal device.
* This doesn't mean pci host switch.