2 * User-space DMA and UIO based Redrapids Pocket Change CardBus driver
4 * Copyright 2008 Vijay Kumar <vijaykumar@bravegnu.org>
6 * Part of userspace API. Should be moved to a header file in
7 * include/linux for final version.
10 struct poch_cbuf_header
{
11 __s32 group_size_bytes
;
13 __s32 group_offsets
[0];
16 struct poch_counters
{
22 #define POCH_IOC_NUM '9'
24 #define POCH_IOC_TRANSFER_START _IO(POCH_IOC_NUM, 0)
25 #define POCH_IOC_TRANSFER_STOP _IO(POCH_IOC_NUM, 1)
26 #define POCH_IOC_GET_COUNTERS _IOR(POCH_IOC_NUM, 2, \
28 #define POCH_IOC_SYNC_GROUP_FOR_USER _IO(POCH_IOC_NUM, 3)
29 #define POCH_IOC_SYNC_GROUP_FOR_DEVICE _IO(POCH_IOC_NUM, 4)