diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-05-25 10:57:58 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2011-06-12 10:33:32 +0300 |
commit | 113f89df42479924380cad562ab86fd2c8e2d11b (patch) | |
tree | 7b5be659c76078f169f096036193ef2b1a9eb982 /hw/pci.h | |
parent | 2173a75fb714193c4df9d5ddf9d015786566b19a (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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |