Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ced_ioc.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kref.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/mutex.h>
#include <linux/page-flags.h>
#include <linux/pagemap.h>
#include <linux/jiffies.h>
#include "usb1401.h"

Go to the source code of this file.

Functions

void FlushOutBuff (DEVICE_EXTENSION *pdx)
 
void FlushInBuff (DEVICE_EXTENSION *pdx)
 
int SendString (DEVICE_EXTENSION *pdx, const char __user *pData, unsigned int n)
 
int SendChar (DEVICE_EXTENSION *pdx, char c)
 
int Get1401State (DEVICE_EXTENSION *pdx, __u32 *state, __u32 *error)
 
int ReadWrite_Cancel (DEVICE_EXTENSION *pdx)
 
bool Is1401 (DEVICE_EXTENSION *pdx)
 
bool QuickCheck (DEVICE_EXTENSION *pdx, bool bTestBuff, bool bCanReset)
 
int Reset1401 (DEVICE_EXTENSION *pdx)
 
int GetChar (DEVICE_EXTENSION *pdx)
 
int GetString (DEVICE_EXTENSION *pdx, char __user *pUser, int n)
 
int Stat1401 (DEVICE_EXTENSION *pdx)
 
int LineCount (DEVICE_EXTENSION *pdx)
 
int GetOutBufSpace (DEVICE_EXTENSION *pdx)
 
int ClearArea (DEVICE_EXTENSION *pdx, int nArea)
 
int SetTransfer (DEVICE_EXTENSION *pdx, TRANSFERDESC __user *pTD)
 
int UnsetTransfer (DEVICE_EXTENSION *pdx, int nArea)
 
int SetEvent (DEVICE_EXTENSION *pdx, TRANSFEREVENT __user *pTE)
 
int WaitEvent (DEVICE_EXTENSION *pdx, int nArea, int msTimeOut)
 
int TestEvent (DEVICE_EXTENSION *pdx, int nArea)
 
int GetTransfer (DEVICE_EXTENSION *pdx, TGET_TX_BLOCK __user *pTX)
 
int KillIO1401 (DEVICE_EXTENSION *pdx)
 
int BlkTransState (DEVICE_EXTENSION *pdx)
 
int StateOf1401 (DEVICE_EXTENSION *pdx)
 
int StartSelfTest (DEVICE_EXTENSION *pdx)
 
int CheckSelfTest (DEVICE_EXTENSION *pdx, TGET_SELFTEST __user *pGST)
 
int TypeOf1401 (DEVICE_EXTENSION *pdx)
 
int TransferFlags (DEVICE_EXTENSION *pdx)
 
int DbgPeek (DEVICE_EXTENSION *pdx, TDBGBLOCK __user *pDB)
 
int DbgPoke (DEVICE_EXTENSION *pdx, TDBGBLOCK __user *pDB)
 
int DbgRampData (DEVICE_EXTENSION *pdx, TDBGBLOCK __user *pDB)
 
int DbgRampAddr (DEVICE_EXTENSION *pdx, TDBGBLOCK __user *pDB)
 
int DbgGetData (DEVICE_EXTENSION *pdx, TDBGBLOCK __user *pDB)
 
int DbgStopLoop (DEVICE_EXTENSION *pdx)
 
int SetCircular (DEVICE_EXTENSION *pdx, TRANSFERDESC __user *pTD)
 
int GetCircBlock (DEVICE_EXTENSION *pdx, TCIRCBLOCK __user *pCB)
 
int FreeCircBlock (DEVICE_EXTENSION *pdx, TCIRCBLOCK __user *pCB)
 

Function Documentation

int BlkTransState ( DEVICE_EXTENSION pdx)

Definition at line 953 of file ced_ioc.c.

int CheckSelfTest ( DEVICE_EXTENSION pdx,
TGET_SELFTEST __user pGST 
)

Definition at line 1011 of file ced_ioc.c.

int ClearArea ( DEVICE_EXTENSION pdx,
int  nArea 
)

Definition at line 600 of file ced_ioc.c.

int DbgGetData ( DEVICE_EXTENSION pdx,
TDBGBLOCK __user pDB 
)

Definition at line 1278 of file ced_ioc.c.

int DbgPeek ( DEVICE_EXTENSION pdx,
TDBGBLOCK __user pDB 
)

Definition at line 1158 of file ced_ioc.c.

int DbgPoke ( DEVICE_EXTENSION pdx,
TDBGBLOCK __user pDB 
)

Definition at line 1187 of file ced_ioc.c.

int DbgRampAddr ( DEVICE_EXTENSION pdx,
TDBGBLOCK __user pDB 
)

Definition at line 1248 of file ced_ioc.c.

int DbgRampData ( DEVICE_EXTENSION pdx,
TDBGBLOCK __user pDB 
)

Definition at line 1216 of file ced_ioc.c.

int DbgStopLoop ( DEVICE_EXTENSION pdx)

Definition at line 1311 of file ced_ioc.c.

void FlushInBuff ( DEVICE_EXTENSION pdx)

Definition at line 60 of file ced_ioc.c.

void FlushOutBuff ( DEVICE_EXTENSION pdx)

Definition at line 40 of file ced_ioc.c.

int FreeCircBlock ( DEVICE_EXTENSION pdx,
TCIRCBLOCK __user pCB 
)

Definition at line 1414 of file ced_ioc.c.

int Get1401State ( DEVICE_EXTENSION pdx,
__u32 state,
__u32 error 
)

Definition at line 174 of file ced_ioc.c.

int GetChar ( DEVICE_EXTENSION pdx)

Definition at line 429 of file ced_ioc.c.

int GetCircBlock ( DEVICE_EXTENSION pdx,
TCIRCBLOCK __user pCB 
)

Definition at line 1362 of file ced_ioc.c.

int GetOutBufSpace ( DEVICE_EXTENSION pdx)

Definition at line 582 of file ced_ioc.c.

int GetString ( DEVICE_EXTENSION pdx,
char __user pUser,
int  n 
)

Definition at line 467 of file ced_ioc.c.

int GetTransfer ( DEVICE_EXTENSION pdx,
TGET_TX_BLOCK __user pTX 
)

Definition at line 905 of file ced_ioc.c.

bool Is1401 ( DEVICE_EXTENSION pdx)

Definition at line 306 of file ced_ioc.c.

int KillIO1401 ( DEVICE_EXTENSION pdx)

Definition at line 938 of file ced_ioc.c.

int LineCount ( DEVICE_EXTENSION pdx)

Definition at line 548 of file ced_ioc.c.

bool QuickCheck ( DEVICE_EXTENSION pdx,
bool  bTestBuff,
bool  bCanReset 
)

Definition at line 366 of file ced_ioc.c.

int ReadWrite_Cancel ( DEVICE_EXTENSION pdx)

Definition at line 222 of file ced_ioc.c.

int Reset1401 ( DEVICE_EXTENSION pdx)

Definition at line 415 of file ced_ioc.c.

int SendChar ( DEVICE_EXTENSION pdx,
char  c 
)

Definition at line 137 of file ced_ioc.c.

int SendString ( DEVICE_EXTENSION pdx,
const char __user pData,
unsigned int  n 
)

Definition at line 107 of file ced_ioc.c.

int SetCircular ( DEVICE_EXTENSION pdx,
TRANSFERDESC __user pTD 
)

Definition at line 1332 of file ced_ioc.c.

int SetEvent ( DEVICE_EXTENSION pdx,
TRANSFEREVENT __user pTE 
)

Definition at line 801 of file ced_ioc.c.

int SetTransfer ( DEVICE_EXTENSION pdx,
TRANSFERDESC __user pTD 
)

Definition at line 758 of file ced_ioc.c.

int StartSelfTest ( DEVICE_EXTENSION pdx)

Definition at line 985 of file ced_ioc.c.

int Stat1401 ( DEVICE_EXTENSION pdx)

Definition at line 530 of file ced_ioc.c.

int StateOf1401 ( DEVICE_EXTENSION pdx)

Definition at line 965 of file ced_ioc.c.

int TestEvent ( DEVICE_EXTENSION pdx,
int  nArea 
)

Definition at line 884 of file ced_ioc.c.

int TransferFlags ( DEVICE_EXTENSION pdx)

Definition at line 1122 of file ced_ioc.c.

int TypeOf1401 ( DEVICE_EXTENSION pdx)

Definition at line 1089 of file ced_ioc.c.

int UnsetTransfer ( DEVICE_EXTENSION pdx,
int  nArea 
)

Definition at line 784 of file ced_ioc.c.

int WaitEvent ( DEVICE_EXTENSION pdx,
int  nArea,
int  msTimeOut 
)

Definition at line 837 of file ced_ioc.c.