Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
ced_ioctl.h File Reference
#include <linux/ioctl.h>

Go to the source code of this file.

Data Structures

struct  TransferDesc
 
struct  TransferEvent
 
struct  TGetSelfTest
 
struct  TDbgBlock
 
struct  TCircBlock
 
struct  TCSBlock
 
struct  ced_ioc_string
 

Macros

#define MODE_CHAR   0
 
#define MODE_LINEAR   1
 
#define MAX_TRANSFER_SIZE   0x4000 /* Maximum data bytes per IRP */
 
#define MAX_AREA_LENGTH   0x100000 /* Maximum size of transfer area */
 
#define MAX_TRANSAREAS   8 /* definitions for dma set up */
 
#define CED_MAGIC_IOC   0xce
 
#define IOCTL_CED_SENDSTRING(n)   _IOC(_IOC_WRITE, CED_MAGIC_IOC, 2, n)
 
#define IOCTL_CED_RESET1401   _IO(CED_MAGIC_IOC, 3)
 
#define IOCTL_CED_GETCHAR   _IO(CED_MAGIC_IOC, 4)
 
#define IOCTL_CED_SENDCHAR   _IO(CED_MAGIC_IOC, 5)
 
#define IOCTL_CED_STAT1401   _IO(CED_MAGIC_IOC, 6)
 
#define IOCTL_CED_LINECOUNT   _IO(CED_MAGIC_IOC, 7)
 
#define IOCTL_CED_GETSTRING(nMax)   _IOC(_IOC_READ, CED_MAGIC_IOC, 8, nMax)
 
#define IOCTL_CED_SETTRANSFER   _IOW(CED_MAGIC_IOC, 11, TRANSFERDESC)
 
#define IOCTL_CED_UNSETTRANSFER   _IO(CED_MAGIC_IOC, 12)
 
#define IOCTL_CED_SETEVENT   _IOW(CED_MAGIC_IOC, 13, TRANSFEREVENT)
 
#define IOCTL_CED_GETOUTBUFSPACE   _IO(CED_MAGIC_IOC, 14)
 
#define IOCTL_CED_GETBASEADDRESS   _IO(CED_MAGIC_IOC, 15)
 
#define IOCTL_CED_GETDRIVERREVISION   _IO(CED_MAGIC_IOC, 16)
 
#define IOCTL_CED_GETTRANSFER   _IOR(CED_MAGIC_IOC, 17, TGET_TX_BLOCK)
 
#define IOCTL_CED_KILLIO1401   _IO(CED_MAGIC_IOC, 18)
 
#define IOCTL_CED_BLKTRANSSTATE   _IO(CED_MAGIC_IOC, 19)
 
#define IOCTL_CED_STATEOF1401   _IO(CED_MAGIC_IOC, 23)
 
#define IOCTL_CED_GRAB1401   _IO(CED_MAGIC_IOC, 25)
 
#define IOCTL_CED_FREE1401   _IO(CED_MAGIC_IOC, 26)
 
#define IOCTL_CED_STARTSELFTEST   _IO(CED_MAGIC_IOC, 31)
 
#define IOCTL_CED_CHECKSELFTEST   _IOR(CED_MAGIC_IOC, 32, TGET_SELFTEST)
 
#define IOCTL_CED_TYPEOF1401   _IO(CED_MAGIC_IOC, 33)
 
#define IOCTL_CED_TRANSFERFLAGS   _IO(CED_MAGIC_IOC, 34)
 
#define IOCTL_CED_DBGPEEK   _IOW(CED_MAGIC_IOC, 35, TDBGBLOCK)
 
#define IOCTL_CED_DBGPOKE   _IOW(CED_MAGIC_IOC, 36, TDBGBLOCK)
 
#define IOCTL_CED_DBGRAMPDATA   _IOW(CED_MAGIC_IOC, 37, TDBGBLOCK)
 
#define IOCTL_CED_DBGRAMPADDR   _IOW(CED_MAGIC_IOC, 38, TDBGBLOCK)
 
#define IOCTL_CED_DBGGETDATA   _IOR(CED_MAGIC_IOC, 39, TDBGBLOCK)
 
#define IOCTL_CED_DBGSTOPLOOP   _IO(CED_MAGIC_IOC, 40)
 
#define IOCTL_CED_FULLRESET   _IO(CED_MAGIC_IOC, 41)
 
#define IOCTL_CED_SETCIRCULAR   _IOW(CED_MAGIC_IOC, 42, TRANSFERDESC)
 
#define IOCTL_CED_GETCIRCBLOCK   _IOWR(CED_MAGIC_IOC, 43, TCIRCBLOCK)
 
#define IOCTL_CED_FREECIRCBLOCK   _IOWR(CED_MAGIC_IOC, 44, TCIRCBLOCK)
 
#define IOCTL_CED_WAITEVENT   _IO(CED_MAGIC_IOC, 45)
 
#define IOCTL_CED_TESTEVENT   _IO(CED_MAGIC_IOC, 46)
 

Typedefs

typedef unsigned short TBLOCKENTRY
 
typedef struct TransferDesc TRANSFERDESC
 
typedef TRANSFERDESCLPTRANSFERDESC
 
typedef struct TransferEvent TRANSFEREVENT
 
typedef struct TGetSelfTest TGET_SELFTEST
 
typedef struct TDbgBlock TDBGBLOCK
 
typedef struct TCircBlock TCIRCBLOCK
 
typedef struct TCSBlock TCSBLOCK
 
typedef struct ced_ioc_string CED_IOC_STRING
 

Functions

int CED_SendString (int fh, const char *szText, int n)
 
int CED_Reset1401 (int fh)
 
int CED_GetChar (int fh)
 
int CED_Stat1401 (int fh)
 
int CED_SendChar (int fh, char c)
 
int CED_LineCount (int fh)
 
int CED_GetString (int fh, char *szText, int nMax)
 
int CED_GetOutBufSpace (int fh)
 
int CED_GetBaseAddress (int fh)
 
int CED_GetDriverRevision (int fh)
 
int CED_SetTransfer (int fh, TRANSFERDESC *pTD)
 
int CED_UnsetTransfer (int fh, int nArea)
 
int CED_SetEvent (int fh, TRANSFEREVENT *pTE)
 
int CED_GetTransfer (int fh, TGET_TX_BLOCK *pTX)
 
int CED_KillIO1401 (int fh)
 
int CED_BlkTransState (int fh)
 
int CED_StateOf1401 (int fh)
 
int CED_Grab1401 (int fh)
 
int CED_Free1401 (int fh)
 
int CED_StartSelfTest (int fh)
 
int CED_CheckSelfTest (int fh, TGET_SELFTEST *pGST)
 
int CED_TypeOf1401 (int fh)
 
int CED_TransferFlags (int fh)
 
int CED_DbgPeek (int fh, TDBGBLOCK *pDB)
 
int CED_DbgPoke (int fh, TDBGBLOCK *pDB)
 
int CED_DbgRampData (int fh, TDBGBLOCK *pDB)
 
int CED_DbgRampAddr (int fh, TDBGBLOCK *pDB)
 
int CED_DbgGetData (int fh, TDBGBLOCK *pDB)
 
int CED_DbgStopLoop (int fh)
 
int CED_FullReset (int fh)
 
int CED_SetCircular (int fh, TRANSFERDESC *pTD)
 
int CED_GetCircBlock (int fh, TCIRCBLOCK *pCB)
 
int CED_FreeCircBlock (int fh, TCIRCBLOCK *pCB)
 
int CED_WaitEvent (int fh, int nArea, int msTimeOut)
 
int CED_TestEvent (int fh, int nArea)
 

Macro Definition Documentation

#define CED_MAGIC_IOC   0xce

Definition at line 86 of file ced_ioctl.h.

#define IOCTL_CED_BLKTRANSSTATE   _IO(CED_MAGIC_IOC, 19)

Definition at line 112 of file ced_ioctl.h.

#define IOCTL_CED_CHECKSELFTEST   _IOR(CED_MAGIC_IOC, 32, TGET_SELFTEST)

Definition at line 118 of file ced_ioctl.h.

#define IOCTL_CED_DBGGETDATA   _IOR(CED_MAGIC_IOC, 39, TDBGBLOCK)

Definition at line 126 of file ced_ioctl.h.

#define IOCTL_CED_DBGPEEK   _IOW(CED_MAGIC_IOC, 35, TDBGBLOCK)

Definition at line 122 of file ced_ioctl.h.

#define IOCTL_CED_DBGPOKE   _IOW(CED_MAGIC_IOC, 36, TDBGBLOCK)

Definition at line 123 of file ced_ioctl.h.

#define IOCTL_CED_DBGRAMPADDR   _IOW(CED_MAGIC_IOC, 38, TDBGBLOCK)

Definition at line 125 of file ced_ioctl.h.

#define IOCTL_CED_DBGRAMPDATA   _IOW(CED_MAGIC_IOC, 37, TDBGBLOCK)

Definition at line 124 of file ced_ioctl.h.

#define IOCTL_CED_DBGSTOPLOOP   _IO(CED_MAGIC_IOC, 40)

Definition at line 127 of file ced_ioctl.h.

#define IOCTL_CED_FREE1401   _IO(CED_MAGIC_IOC, 26)

Definition at line 116 of file ced_ioctl.h.

#define IOCTL_CED_FREECIRCBLOCK   _IOWR(CED_MAGIC_IOC, 44, TCIRCBLOCK)

Definition at line 131 of file ced_ioctl.h.

#define IOCTL_CED_FULLRESET   _IO(CED_MAGIC_IOC, 41)

Definition at line 128 of file ced_ioctl.h.

#define IOCTL_CED_GETBASEADDRESS   _IO(CED_MAGIC_IOC, 15)

Definition at line 107 of file ced_ioctl.h.

#define IOCTL_CED_GETCHAR   _IO(CED_MAGIC_IOC, 4)

Definition at line 97 of file ced_ioctl.h.

#define IOCTL_CED_GETCIRCBLOCK   _IOWR(CED_MAGIC_IOC, 43, TCIRCBLOCK)

Definition at line 130 of file ced_ioctl.h.

#define IOCTL_CED_GETDRIVERREVISION   _IO(CED_MAGIC_IOC, 16)

Definition at line 108 of file ced_ioctl.h.

#define IOCTL_CED_GETOUTBUFSPACE   _IO(CED_MAGIC_IOC, 14)

Definition at line 106 of file ced_ioctl.h.

#define IOCTL_CED_GETSTRING (   nMax)    _IOC(_IOC_READ, CED_MAGIC_IOC, 8, nMax)

Definition at line 101 of file ced_ioctl.h.

#define IOCTL_CED_GETTRANSFER   _IOR(CED_MAGIC_IOC, 17, TGET_TX_BLOCK)

Definition at line 110 of file ced_ioctl.h.

#define IOCTL_CED_GRAB1401   _IO(CED_MAGIC_IOC, 25)

Definition at line 115 of file ced_ioctl.h.

#define IOCTL_CED_KILLIO1401   _IO(CED_MAGIC_IOC, 18)

Definition at line 111 of file ced_ioctl.h.

#define IOCTL_CED_LINECOUNT   _IO(CED_MAGIC_IOC, 7)

Definition at line 100 of file ced_ioctl.h.

#define IOCTL_CED_RESET1401   _IO(CED_MAGIC_IOC, 3)

Definition at line 96 of file ced_ioctl.h.

#define IOCTL_CED_SENDCHAR   _IO(CED_MAGIC_IOC, 5)

Definition at line 98 of file ced_ioctl.h.

#define IOCTL_CED_SENDSTRING (   n)    _IOC(_IOC_WRITE, CED_MAGIC_IOC, 2, n)

Definition at line 94 of file ced_ioctl.h.

#define IOCTL_CED_SETCIRCULAR   _IOW(CED_MAGIC_IOC, 42, TRANSFERDESC)

Definition at line 129 of file ced_ioctl.h.

#define IOCTL_CED_SETEVENT   _IOW(CED_MAGIC_IOC, 13, TRANSFEREVENT)

Definition at line 105 of file ced_ioctl.h.

#define IOCTL_CED_SETTRANSFER   _IOW(CED_MAGIC_IOC, 11, TRANSFERDESC)

Definition at line 103 of file ced_ioctl.h.

#define IOCTL_CED_STARTSELFTEST   _IO(CED_MAGIC_IOC, 31)

Definition at line 117 of file ced_ioctl.h.

#define IOCTL_CED_STAT1401   _IO(CED_MAGIC_IOC, 6)

Definition at line 99 of file ced_ioctl.h.

#define IOCTL_CED_STATEOF1401   _IO(CED_MAGIC_IOC, 23)

Definition at line 114 of file ced_ioctl.h.

#define IOCTL_CED_TESTEVENT   _IO(CED_MAGIC_IOC, 46)

Definition at line 133 of file ced_ioctl.h.

#define IOCTL_CED_TRANSFERFLAGS   _IO(CED_MAGIC_IOC, 34)

Definition at line 120 of file ced_ioctl.h.

#define IOCTL_CED_TYPEOF1401   _IO(CED_MAGIC_IOC, 33)

Definition at line 119 of file ced_ioctl.h.

#define IOCTL_CED_UNSETTRANSFER   _IO(CED_MAGIC_IOC, 12)

Definition at line 104 of file ced_ioctl.h.

#define IOCTL_CED_WAITEVENT   _IO(CED_MAGIC_IOC, 45)

Definition at line 132 of file ced_ioctl.h.

#define MAX_AREA_LENGTH   0x100000 /* Maximum size of transfer area */

Definition at line 49 of file ced_ioctl.h.

#define MAX_TRANSAREAS   8 /* definitions for dma set up */

Definition at line 50 of file ced_ioctl.h.

#define MAX_TRANSFER_SIZE   0x4000 /* Maximum data bytes per IRP */

Definition at line 48 of file ced_ioctl.h.

#define MODE_CHAR   0

Definition at line 22 of file ced_ioctl.h.

#define MODE_LINEAR   1

Definition at line 23 of file ced_ioctl.h.

Typedef Documentation

Definition at line 38 of file ced_ioctl.h.

typedef unsigned short TBLOCKENTRY

Definition at line 29 of file ced_ioctl.h.

Function Documentation

int CED_BlkTransState ( int  fh)
inline

Definition at line 227 of file ced_ioctl.h.

int CED_CheckSelfTest ( int  fh,
TGET_SELFTEST pGST 
)
inline

Definition at line 252 of file ced_ioctl.h.

int CED_DbgGetData ( int  fh,
TDBGBLOCK pDB 
)
inline

Definition at line 287 of file ced_ioctl.h.

int CED_DbgPeek ( int  fh,
TDBGBLOCK pDB 
)
inline

Definition at line 267 of file ced_ioctl.h.

int CED_DbgPoke ( int  fh,
TDBGBLOCK pDB 
)
inline

Definition at line 272 of file ced_ioctl.h.

int CED_DbgRampAddr ( int  fh,
TDBGBLOCK pDB 
)
inline

Definition at line 282 of file ced_ioctl.h.

int CED_DbgRampData ( int  fh,
TDBGBLOCK pDB 
)
inline

Definition at line 277 of file ced_ioctl.h.

int CED_DbgStopLoop ( int  fh)
inline

Definition at line 292 of file ced_ioctl.h.

int CED_Free1401 ( int  fh)
inline

Definition at line 242 of file ced_ioctl.h.

int CED_FreeCircBlock ( int  fh,
TCIRCBLOCK pCB 
)
inline

Definition at line 312 of file ced_ioctl.h.

int CED_FullReset ( int  fh)
inline

Definition at line 297 of file ced_ioctl.h.

int CED_GetBaseAddress ( int  fh)
inline

Definition at line 190 of file ced_ioctl.h.

int CED_GetChar ( int  fh)
inline

Definition at line 151 of file ced_ioctl.h.

int CED_GetCircBlock ( int  fh,
TCIRCBLOCK pCB 
)
inline

Definition at line 307 of file ced_ioctl.h.

int CED_GetDriverRevision ( int  fh)
inline

Definition at line 196 of file ced_ioctl.h.

int CED_GetOutBufSpace ( int  fh)
inline

Definition at line 184 of file ced_ioctl.h.

int CED_GetString ( int  fh,
char szText,
int  nMax 
)
inline

Definition at line 178 of file ced_ioctl.h.

int CED_GetTransfer ( int  fh,
TGET_TX_BLOCK *  pTX 
)
inline

Definition at line 216 of file ced_ioctl.h.

int CED_Grab1401 ( int  fh)
inline

Definition at line 237 of file ced_ioctl.h.

int CED_KillIO1401 ( int  fh)
inline

Definition at line 221 of file ced_ioctl.h.

int CED_LineCount ( int  fh)
inline

Definition at line 167 of file ced_ioctl.h.

int CED_Reset1401 ( int  fh)
inline

Definition at line 145 of file ced_ioctl.h.

int CED_SendChar ( int  fh,
char  c 
)
inline

Definition at line 162 of file ced_ioctl.h.

int CED_SendString ( int  fh,
const char szText,
int  n 
)
inline

Definition at line 140 of file ced_ioctl.h.

int CED_SetCircular ( int  fh,
TRANSFERDESC pTD 
)
inline

Definition at line 302 of file ced_ioctl.h.

int CED_SetEvent ( int  fh,
TRANSFEREVENT pTE 
)
inline

Definition at line 211 of file ced_ioctl.h.

int CED_SetTransfer ( int  fh,
TRANSFERDESC pTD 
)
inline

Definition at line 201 of file ced_ioctl.h.

int CED_StartSelfTest ( int  fh)
inline

Definition at line 247 of file ced_ioctl.h.

int CED_Stat1401 ( int  fh)
inline

Definition at line 157 of file ced_ioctl.h.

int CED_StateOf1401 ( int  fh)
inline

Definition at line 232 of file ced_ioctl.h.

int CED_TestEvent ( int  fh,
int  nArea 
)
inline

Definition at line 322 of file ced_ioctl.h.

int CED_TransferFlags ( int  fh)
inline

Definition at line 262 of file ced_ioctl.h.

int CED_TypeOf1401 ( int  fh)
inline

Definition at line 257 of file ced_ioctl.h.

int CED_UnsetTransfer ( int  fh,
int  nArea 
)
inline

Definition at line 206 of file ced_ioctl.h.

int CED_WaitEvent ( int  fh,
int  nArea,
int  msTimeOut 
)
inline

Definition at line 317 of file ced_ioctl.h.