From 6191a86bf2de5413cc9100e1450b541e5dfcb8f9 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 19 Nov 2015 03:19:51 +0100 Subject: Support setting payload size --- driver/pciDriver.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'driver/pciDriver.h') diff --git a/driver/pciDriver.h b/driver/pciDriver.h index d314952..2fda0ff 100644 --- a/driver/pciDriver.h +++ b/driver/pciDriver.h @@ -130,8 +130,9 @@ typedef struct { } pcilib_driver_version_t; typedef struct { - unsigned long iommu; - unsigned long dma_mask; + int iommu; /**< Specifies if IOMMU is enabled or disabled */ + int mps; /**< Maximum payload size */ + unsigned long dma_mask; /**< DMA mask */ } pcilib_device_state_t; typedef struct { @@ -235,7 +236,8 @@ typedef struct { #define PCIDRIVER_IOC_VERSION _IOR( PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 14, pcilib_driver_version_t * ) #define PCIDRIVER_IOC_DEVICE_STATE _IOR( PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 15, pcilib_device_state_t * ) #define PCIDRIVER_IOC_DMA_MASK _IO( PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 16) +#define PCIDRIVER_IOC_MPS _IO( PCIDRIVER_IOC_MAGIC, PCIDRIVER_IOC_BASE + 17) -#define PCIDRIVER_IOC_MAX 16 +#define PCIDRIVER_IOC_MAX 17 #endif -- cgit v1.2.3