ia64/linux-2.6.18-xen.hg

changeset 544:cf3f9f1c7edb

Sync with Xen pciif.h public header.
Signed-off-by: Shan Haitao <Haitao.shan@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 13 09:22:10 2008 +0100 (2008-05-13)
parents 05b7df5cc607
children 29b8c3f36603
files include/xen/interface/io/pciif.h
line diff
     1.1 --- a/include/xen/interface/io/pciif.h	Mon May 12 10:05:27 2008 +0100
     1.2 +++ b/include/xen/interface/io/pciif.h	Tue May 13 09:22:10 2008 +0100
     1.3 @@ -34,6 +34,10 @@
     1.4  /* xen_pci_op commands */
     1.5  #define XEN_PCI_OP_conf_read    (0)
     1.6  #define XEN_PCI_OP_conf_write   (1)
     1.7 +#define XEN_PCI_OP_enable_msi   (2)
     1.8 +#define XEN_PCI_OP_disable_msi  (3)
     1.9 +#define XEN_PCI_OP_enable_msix  (4)
    1.10 +#define XEN_PCI_OP_disable_msix (5)
    1.11  
    1.12  /* xen_pci_op error numbers */
    1.13  #define XEN_PCI_ERR_success          (0)
    1.14 @@ -44,6 +48,12 @@
    1.15  /* XEN_PCI_ERR_op_failed - backend failed to complete the operation */
    1.16  #define XEN_PCI_ERR_op_failed       (-5)
    1.17  
    1.18 +/*
    1.19 + * it should be PAGE_SIZE-sizeof(struct xen_pci_op))/sizeof(struct msix_entry))
    1.20 + * Should not exceed 128
    1.21 + */
    1.22 +#define SH_INFO_MAX_VEC     128
    1.23 +
    1.24  struct xen_pci_op {
    1.25      /* IN: what action to perform: XEN_PCI_OP_* */
    1.26      uint32_t cmd;
    1.27 @@ -62,6 +72,10 @@ struct xen_pci_op {
    1.28  
    1.29      /* IN/OUT: Contains the result after a READ or the value to WRITE */
    1.30      uint32_t value;
    1.31 +    /* IN: Contains extra infor for this operation */
    1.32 +    uint32_t info;
    1.33 +    /*IN:  param for msi-x */
    1.34 +    struct msix_entry msix_entries[SH_INFO_MAX_VEC];
    1.35  };
    1.36  
    1.37  struct xen_pci_sharedinfo {