summaryrefslogtreecommitdiffstats
path: root/hw/pci.h
diff options
context:
space:
mode:
authorIsaku Yamahata2010-06-23 09:15:28 +0200
committerBlue Swirl2010-07-11 19:00:57 +0200
commite327e323f103f7354a0385b835255e86b16ae669 (patch)
tree9ff56a6144150a5b6185a48cb72dd40b4d1aeb41 /hw/pci.h
parentpci: don't overwrite multi functio bit in pci header type. (diff)
downloadqemu-e327e323f103f7354a0385b835255e86b16ae669.tar.gz
qemu-e327e323f103f7354a0385b835255e86b16ae669.tar.xz
qemu-e327e323f103f7354a0385b835255e86b16ae669.zip
pci: remove PCIDeviceInfo::header_type
replace PCIDeviceInfo::header_type with is_bridge as suggested by Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r--hw/pci.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 68d5c4ee25..5fda430a97 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -325,8 +325,12 @@ typedef struct {
PCIConfigReadFunc *config_read;
PCIConfigWriteFunc *config_write;
- /* pci config header type */
- uint8_t header_type;
+ /*
+ * pci-to-pci bridge or normal device.
+ * This doesn't mean pci host switch.
+ * When card bus bridge is supported, this would be enhanced.
+ */
+ int is_bridge;
/* pcie stuff */
int is_express; /* is this device pci express? */