diff options
Diffstat (limited to 'drivers/staging/poch/poch.h')
-rw-r--r-- | drivers/staging/poch/poch.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/staging/poch/poch.h b/drivers/staging/poch/poch.h index 51a2d145798..8b08385861f 100644 --- a/drivers/staging/poch/poch.h +++ b/drivers/staging/poch/poch.h @@ -7,11 +7,8 @@ * include/linux for final version. * */ -struct poch_cbuf_header { - __s32 group_size_bytes; - __s32 group_count; - __s32 group_offsets[0]; -}; + +#include <linux/types.h> struct poch_counters { __u32 fifo_empty; @@ -19,6 +16,12 @@ struct poch_counters { __u32 pll_unlock; }; +struct poch_consume { + __u32 __user *offsets; + __u32 nfetch; + __u32 nflush; +}; + #define POCH_IOC_NUM '9' #define POCH_IOC_TRANSFER_START _IO(POCH_IOC_NUM, 0) @@ -27,3 +30,6 @@ struct poch_counters { struct poch_counters) #define POCH_IOC_SYNC_GROUP_FOR_USER _IO(POCH_IOC_NUM, 3) #define POCH_IOC_SYNC_GROUP_FOR_DEVICE _IO(POCH_IOC_NUM, 4) + +#define POCH_IOC_CONSUME _IOWR(POCH_IOC_NUM, 5, \ + struct poch_consume) |