[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Add missing MSI related part in public pciif.h
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1210666888 -3600 # Node ID 2ab64478bd81d808b453e0f7d9f85b1515dc7acf # Parent d5f24c99189bc891636fe98b005aa8d96242f63e Add missing MSI related part in public pciif.h Signed-off-by: Shan Haitao <Haitao.shan@xxxxxxxxx> --- xen/include/public/io/pciif.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+) diff -r d5f24c99189b -r 2ab64478bd81 xen/include/public/io/pciif.h --- a/xen/include/public/io/pciif.h Tue May 13 09:20:23 2008 +0100 +++ b/xen/include/public/io/pciif.h Tue May 13 09:21:28 2008 +0100 @@ -34,6 +34,10 @@ /* xen_pci_op commands */ #define XEN_PCI_OP_conf_read (0) #define XEN_PCI_OP_conf_write (1) +#define XEN_PCI_OP_enable_msi (2) +#define XEN_PCI_OP_disable_msi (3) +#define XEN_PCI_OP_enable_msix (4) +#define XEN_PCI_OP_disable_msix (5) /* xen_pci_op error numbers */ #define XEN_PCI_ERR_success (0) @@ -43,6 +47,12 @@ #define XEN_PCI_ERR_not_implemented (-4) /* XEN_PCI_ERR_op_failed - backend failed to complete the operation */ #define XEN_PCI_ERR_op_failed (-5) + +/* + * it should be PAGE_SIZE-sizeof(struct xen_pci_op))/sizeof(struct msix_entry)) + * Should not exceed 128 + */ +#define SH_INFO_MAX_VEC 128 struct xen_pci_op { /* IN: what action to perform: XEN_PCI_OP_* */ @@ -62,6 +72,10 @@ struct xen_pci_op { /* IN/OUT: Contains the result after a READ or the value to WRITE */ uint32_t value; + /* IN: Contains extra infor for this operation */ + uint32_t info; + /*IN: param for msi-x */ + struct msix_entry msix_entries[SH_INFO_MAX_VEC]; }; struct xen_pci_sharedinfo { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |