/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/pciDriver.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-11-19 02:19:51 UTC
  • Revision ID: csa@suren.me-20151119021951-00bae7ma1vqy561h
Support setting payload size

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
} pcilib_driver_version_t;
131
131
 
132
132
typedef struct {
133
 
    unsigned long iommu;
134
 
    unsigned long dma_mask;
 
133
    int iommu;                                          /**< Specifies if IOMMU is enabled or disabled */
 
134
    int mps;                                            /**< Maximum payload size */
 
135
    unsigned long dma_mask;                             /**< DMA mask */
135
136
} pcilib_device_state_t;
136
137
 
137
138
typedef struct {
235
236
#define PCIDRIVER_IOC_VERSION           _IOR(  PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 14, pcilib_driver_version_t * )
236
237
#define PCIDRIVER_IOC_DEVICE_STATE      _IOR(  PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 15, pcilib_device_state_t * )
237
238
#define PCIDRIVER_IOC_DMA_MASK          _IO(   PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 16)
 
239
#define PCIDRIVER_IOC_MPS               _IO(   PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 17)
238
240
 
239
 
#define PCIDRIVER_IOC_MAX 16
 
241
#define PCIDRIVER_IOC_MAX 17
240
242
 
241
243
#endif