aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/pci.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-01-09 15:59:59 +0100
committerJan Beulich <jbeulich@suse.com>2012-01-09 15:59:59 +0100
commitdb62a1c49262ef14ce5d039345666aea6139c430 (patch)
tree272f4d540e9e4010c1bb292433b6c3a04e9b1186 /xen/include/xen/pci.h
parent51bfd20efaf85ec408998ba06b17d5e73d12537e (diff)
downloadxen-db62a1c49262ef14ce5d039345666aea6139c430.tar.gz
xen-db62a1c49262ef14ce5d039345666aea6139c430.tar.bz2
xen-db62a1c49262ef14ce5d039345666aea6139c430.zip
PCI: properly abstract out per-architecture extensions to struct pci_dev
x86's used_vectors member was both misplaced (in struct pci_dev_info, which acts as a hypercall input data passing container only) and improperly abstracted (requiring a CONFIG_X86 conditional in a generic header). The adjustment requires hiding several more lines in IA64's pci.h, but as a benefit this allows removing one of the "null" headers. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r--xen/include/xen/pci.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h
index b57bb90f96..0e0d1042e1 100644
--- a/xen/include/xen/pci.h
+++ b/xen/include/xen/pci.h
@@ -12,6 +12,7 @@
#include <xen/list.h>
#include <xen/spinlock.h>
#include <xen/irq.h>
+#include <asm/pci.h>
/*
* The PCI interface treats multi-function devices as independent
@@ -39,9 +40,6 @@ struct pci_dev_info {
u8 bus;
u8 devfn;
} physfn;
-#ifdef CONFIG_X86
- vmask_t used_vectors;
-#endif
};
struct pci_dev {
@@ -62,6 +60,7 @@ struct pci_dev {
const u8 bus;
const u8 devfn;
struct pci_dev_info info;
+ struct arch_pci_dev arch;
u64 vf_rlen[6];
};