summaryrefslogtreecommitdiff
path: root/hw/pci.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2010-10-19 18:06:34 +0900
committerMichael S. Tsirkin <mst@redhat.com>2010-10-19 14:09:44 +0200
commit0428527c621c3edfd258b4d34fc178ef5df41071 (patch)
treef4ba3a5be62623d418e3f47c36bc8ef669c12cec /hw/pci.h
parent08f3dcf13f49dea3106b09c69bef9543e56fa629 (diff)
downloadqemu-0428527c621c3edfd258b4d34fc178ef5df41071.tar.gz
qemu-0428527c621c3edfd258b4d34fc178ef5df41071.tar.bz2
qemu-0428527c621c3edfd258b4d34fc178ef5df41071.zip
pcie: helper functions for pcie capability and extended capability
This patch implements helper functions for pci express capability and pci express extended capability allocation. NOTE: presence detection depends on pci_qdev_init() change. 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 9e2f27d372..d6c522b8dd 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -9,6 +9,8 @@
/* PCI includes legacy ISA access. */
#include "isa.h"
+#include "pcie.h"
+
/* PCI bus */
#define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07))
@@ -175,6 +177,9 @@ struct PCIDevice {
/* Offset of MSI capability in config space */
uint8_t msi_cap;
+ /* PCI Express */
+ PCIExpressDevice exp;
+
/* Location of option rom */
char *romfile;
ram_addr_t rom_offset;