#include "use1401.h"
#include "ced_ioctl.h"
Go to the source code of this file.
|
int | Allowi (DEVICE_EXTENSION *pdx, bool bInCallback) |
| Definitions of routimes used between compilation object files.
|
|
int | SendChars (DEVICE_EXTENSION *pdx) |
|
void | ced_draw_down (DEVICE_EXTENSION *pdx) |
|
int | ReadWriteMem (DEVICE_EXTENSION *pdx, bool Read, unsigned short wIdent, unsigned int dwOffs, unsigned int dwLen) |
|
int | ClearArea (DEVICE_EXTENSION *pdx, int nArea) |
|
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 | SetTransfer (DEVICE_EXTENSION *pdx, TRANSFERDESC __user *pTD) |
|
int | UnsetTransfer (DEVICE_EXTENSION *pdx, int nArea) |
|
int | SetEvent (DEVICE_EXTENSION *pdx, TRANSFEREVENT __user *pTE) |
|
int | Stat1401 (DEVICE_EXTENSION *pdx) |
|
int | LineCount (DEVICE_EXTENSION *pdx) |
|
int | GetOutBufSpace (DEVICE_EXTENSION *pdx) |
|
int | GetTransfer (DEVICE_EXTENSION *pdx, TGET_TX_BLOCK __user *pGTB) |
|
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) |
|
int | WaitEvent (DEVICE_EXTENSION *pdx, int nArea, int msTimeOut) |
|
int | TestEvent (DEVICE_EXTENSION *pdx, int nArea) |
|
#define CLEAR_FEATURE 0x01 |
#define CR_CHAR 0x0D /* The carriage return character */ |
#define CR_CHAR_80 0x8d /* and with bit 7 set */ |
#define DB_CHARS 0x5D /* Send chars via EP0 control write */ |
#define DB_DATA 0x5C /* Get 4-byte data read by PEEK */ |
#define DB_FREE 0x51 /* Free is a NOP for the USB */ |
#define DB_GRAB 0x50 /* Grab is a NOP for USB */ |
Definitions of the various debug command codes understood by the 1401. These are used in various vendor-specific commands to achieve the desired effect
Definition at line 76 of file usb1401.h.
#define DB_PEEK 0x56 /* Peek address, save result */ |
#define DB_POKE 0x57 /* Poke address with data (double) */ |
#define DB_RAMPA 0x59 /* Ramp address bus */ |
#define DB_RAMPD 0x58 /* Ramp data at debug address */ |
#define DB_REPEATS 0x5A /* Set repeats for operations (double) */ |
#define DB_SELFTEST 0x53 /* Start self test */ |
#define DB_SETADD 0x52 /* Set debug address (double) */ |
#define DB_SETDEF 0x55 /* Set default mask (double) */ |
#define DB_SETMASK 0x54 /* Set enable mask (double) */ |
#define DB_WIDTH 0x5B /* Set width for operations (byte) */ |
Some useful defines of constants. DONT FORGET to change the version in the resources whenever you change it here!.
Definition at line 46 of file usb1401.h.
#define GET_INTERFACE 0x0a |
Definition of values in usbRequest, again used to sort out setup.
Definition at line 62 of file usb1401.h.
Definitions of values in usbReqtype. Used in sorting out setup actions.
Definition at line 54 of file usb1401.h.
#define SET_INTERFACE 0x0b |
#define STAGED_SZ 0x10000 |
Definitions of the various block transfer command codes.
Definition at line 50 of file usb1401.h.
Device type codes, but these don't need to be extended - a succession is assumed These are set for usb from the bcdDevice field (suitably mangled). Future devices will be added in order of device creation to the list, so the names here are just to help use remember which device is which. The U14ERR_... values follow the same pattern for modern devices.
Definition at line 34 of file usb1401.h.
A structure holding information about a block of memory for use in circular transfers.
Structure to hold all of our device specific stuff. We are making this as similar as we can to the Windows driver to help in our understanding of what is going on.
The DMADESC structure is used to hold information on the transfer in progress. It is set up by ReadDMAInfo, using information sent by the 1401 in an escape sequence.
A structure holding all of the information about a transfer area - an area of memory set up for use either as a source or destination in DMA transfers.
Definitions of routimes used between compilation object files.
Definition at line 1201 of file usb1401.c.