Linux Kernel
3.7.1
|
#include "machine.h"
Go to the source code of this file.
Macros | |
#define | U14API(retType) retType |
#define | U14LONG long |
#define | U14ERR_NOERROR 0 |
Error codes: We need them here as user space can see them. | |
#define | U14ERR_STD 4 |
Device error codes, but these don't need to be extended - a succession is assumed. | |
#define | U14ERR_U1401 5 |
#define | U14ERR_PLUS 6 |
#define | U14ERR_POWER 7 |
#define | U14ERR_U14012 8 |
#define | U14ERR_POWER2 9 |
#define | U14ERR_U14013 10 |
#define | U14ERR_POWER3 11 |
#define | U14ERR(n) (n+U14ERRBASE) |
NBNB Error numbers need shifting as some linux error codes start at 512. | |
#define | U14ERR_OFF U14ERR(0) /* 1401 there but switched off */ |
#define | U14ERR_NC U14ERR(-1) /* 1401 not connected */ |
#define | U14ERR_ILL U14ERR(-2) /* if present it is ill */ |
#define | U14ERR_NOIF U14ERR(-3) /* I/F card missing */ |
#define | U14ERR_TIME U14ERR(-4) /* 1401 failed to come ready */ |
#define | U14ERR_BADSW U14ERR(-5) /* I/F card bad switches */ |
#define | U14ERR_PTIME U14ERR(-6) /* 1401plus failed to come ready */ |
#define | U14ERR_NOINT U14ERR(-7) /* couldn't grab the int vector */ |
#define | U14ERR_INUSE U14ERR(-8) /* 1401 is already in use */ |
#define | U14ERR_NODMA U14ERR(-9) /* couldn't get DMA channel */ |
#define | U14ERR_BADHAND U14ERR(-10) /* handle provided was bad */ |
#define | U14ERR_BAD1401NUM U14ERR(-11) /* 1401 number provided was bad */ |
#define | U14ERR_NO_SUCH_FN U14ERR(-20) /* no such function */ |
#define | U14ERR_NO_SUCH_SUBFN U14ERR(-21) /* no such sub function */ |
#define | U14ERR_NOOUT U14ERR(-22) /* no room in output buffer */ |
#define | U14ERR_NOIN U14ERR(-23) /* no input in buffer */ |
#define | U14ERR_STRLEN U14ERR(-24) /* string longer than buffer */ |
#define | U14ERR_ERR_STRLEN U14ERR(-24) /* string longer than buffer */ |
#define | U14ERR_LOCKFAIL U14ERR(-25) /* failed to lock memory */ |
#define | U14ERR_UNLOCKFAIL U14ERR(-26) /* failed to unlock memory */ |
#define | U14ERR_ALREADYSET U14ERR(-27) /* area already set up */ |
#define | U14ERR_NOTSET U14ERR(-28) /* area not set up */ |
#define | U14ERR_BADAREA U14ERR(-29) /* illegal area number */ |
#define | U14ERR_FAIL U14ERR(-30) /* we failed for some other reason*/ |
#define | U14ERR_NOFILE U14ERR(-40) /* command file not found */ |
#define | U14ERR_READERR U14ERR(-41) /* error reading command file */ |
#define | U14ERR_UNKNOWN U14ERR(-42) /* unknown command */ |
#define | U14ERR_HOSTSPACE U14ERR(-43) /* not enough host space to load */ |
#define | U14ERR_LOCKERR U14ERR(-44) /* could not lock resource/command*/ |
#define | U14ERR_CLOADERR U14ERR(-45) /* CLOAD command failed */ |
#define | U14ERR_TOXXXERR U14ERR(-60) /* tohost/1401 failed */ |
#define | U14ERR_NO386ENH U14ERR(-80) /* not 386 enhanced mode */ |
#define | U14ERR_NO1401DRIV U14ERR(-81) /* no device driver */ |
#define | U14ERR_DRIVTOOOLD U14ERR(-82) /* device driver too old */ |
#define | U14ERR_TIMEOUT U14ERR(-90) /* timeout occurred */ |
#define | U14ERR_BUFF_SMALL U14ERR(-100) /* buffer for getstring too small */ |
#define | U14ERR_CBALREADY U14ERR(-101) /* there is already a callback */ |
#define | U14ERR_BADDEREG U14ERR(-102) /* bad parameter to deregcallback */ |
#define | U14ERR_NOMEMORY U14ERR(-103) /* no memory for allocation */ |
#define | U14ERR_DRIVCOMMS U14ERR(-110) /* failed talking to driver */ |
#define | U14ERR_OUTOFMEMORY U14ERR(-111) /* needed memory and couldnt get it*/ |
#define | U14TYPE1401 0 /* standard 1401 */ |
1401 type codes. | |
#define | U14TYPEPLUS 1 /* 1401 plus */ |
#define | U14TYPEU1401 2 /* u1401 */ |
#define | U14TYPEPOWER 3 /* power1401 */ |
#define | U14TYPEU14012 4 /* u1401 mk II */ |
#define | U14TYPEPOWER2 5 /* power1401 mk II */ |
#define | U14TYPEU14013 6 /* u1401-3 */ |
#define | U14TYPEPOWER3 7 /* power1401-3 */ |
#define | U14TYPEUNKNOWN -1 /* dont know */ |
#define | U14TF_USEDMA 1 /* Transfer flag for use DMA */ |
Transfer flags to allow driver capabilities to be interrogated. | |
#define | U14TF_MULTIA 2 /* Transfer flag for multi areas */ |
#define | U14TF_FIFO 4 /* for FIFO interface card */ |
#define | U14TF_USB2 8 /* for USB2 interface and 1401 */ |
#define | U14TF_NOTIFY 16 /* for event notifications */ |
#define | U14TF_SHORT 32 /* for PCI can short cycle */ |
#define | U14TF_PCI2 64 /* for new PCI card 1401-70 */ |
#define | U14TF_CIRCTH 128 /* Circular-mode to host */ |
#define | U14TF_DIAG 256 /* Diagnostics/debug functions */ |
#define | U14TF_CIRC14 512 /* Circular-mode to 1401 */ |
#define | ESZBYTES 0 /* BYTE element size value */ |
Definitions of element sizes for DMA transfers - to allow byte-swapping. | |
#define | ESZWORDS 1 /* WORD element size value */ |
#define | ESZLONGS 2 /* long element size value */ |
#define | ESZUNKNOWN 0 /* unknown element size value */ |
#define | BYTE_SIZE 1 /* 8-bit access */ |
These define required access types for the debug/diagnostics function. | |
#define | WORD_SIZE 2 /* 16-bit access */ |
#define | LONG_SIZE 3 /* 32-bit access */ |
#define | GET_TX_MAXENTRIES 257 /* (max length / page size + 1) */ |
Stuff used by U14_GetTransfer. | |
Functions | |
U14API (int) U14WhenToTimeOut(short hand) | |
U14API (short) U14PassedTime(int iTime) | |
U14API (DWORD) U14Ld(short hand | |
U14API (void) U14SetTimeout(short hand | |
Variables | |
char * | pBuf |
char WORD | wMax |
const char * | pString |
char * | pBuffer |
char WORD | wMaxLen |
char | cChar |
char * | pcChar |
const char * | command |
const char * | vl |
const char const char * | str |
WORD | wArea |
WORD void * | pvBuff |
WORD void DWORD | dwLength |
WORD void DWORD short | eSz |
WORD BOOL | bEvent |
WORD BOOL BOOL | bToHost |
WORD BOOL BOOL DWORD | dwStart |
WORD int | msTimeOut |
TGET_TX_BLOCK * | pTransBlock |
char * | pAddrHost |
char DWORD | dwSize |
char DWORD DWORD | dw1401 |
WORD DWORD * | pdwOffs |
WORD DWORD | dwOffs |
U14LONG * | palNums |
U14LONG short | sMaxLongs |
U14LONG * | palBuff |
int | lTimeout |
DWORD * | pMemorySize |
DWORD | dwAddr |
DWORD int | nSize |
DWORD int int | nRepeats |
DWORD DWORD | dwValue |
DWORD DWORD | dwDef |
DWORD DWORD DWORD | dwEnable |
U14LONG * | plValue |
U14LONG * | pData |
char * | pStr |
DWORD | dwMaxKb |
#define U14ERR_NOERROR 0 |
#define U14ERR_OFF U14ERR(0) /* 1401 there but switched off */ |
#define U14ERR_PTIME U14ERR(-6) /* 1401plus failed to come ready */ |
#define U14ERR_STD 4 |
#define U14ERR_TOXXXERR U14ERR(-60) /* tohost/1401 failed */ |
#define U14TYPE1401 0 /* standard 1401 */ |
U14API | ( | DWORD | ) |