summary refs log tree commit diff stats
path: root/hw/pci.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-06-23 16:15:28 +0900
committerBlue Swirl <blauwirbel@gmail.com>2010-07-11 20:00:57 +0300
commite327e323f103f7354a0385b835255e86b16ae669 (patch)
tree9ff56a6144150a5b6185a48cb72dd40b4d1aeb41 /hw/pci.h
parentb80d4a9887fa4b6cc63f8c3a13ab2a45054d3e5c (diff)
downloadfocaccia-qemu-e327e323f103f7354a0385b835255e86b16ae669.tar.gz
focaccia-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? */