Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ni52.h File Reference

Go to the source code of this file.

Data Structures

struct  scp_struct
 
struct  iscp_struct
 
struct  scb_struct
 
struct  rfd_struct
 
struct  rbd_struct
 
struct  nop_cmd_struct
 
struct  iasetup_cmd_struct
 
struct  configure_cmd_struct
 
struct  mcsetup_cmd_struct
 
struct  dump_cmd_struct
 
struct  transmit_cmd_struct
 
struct  tdr_cmd_struct
 
struct  tbd_struct
 

Macros

#define NI52_RESET   0 /* writing to this address, resets the i82586 */
 
#define NI52_ATTENTION   1 /* channel attention, kick the 586 */
 
#define NI52_TENA   3 /* 2-5 possibly wrong, Xmit enable */
 
#define NI52_TDIS   2 /* Xmit disable */
 
#define NI52_INTENA   5 /* Interrupt enable */
 
#define NI52_INTDIS   4 /* Interrupt disable */
 
#define NI52_MAGIC1   6 /* dunno exact function */
 
#define NI52_MAGIC2   7 /* dunno exact function */
 
#define NI52_MAGICVAL1   0x00 /* magic-values for ni5210 card */
 
#define NI52_MAGICVAL2   0x55
 
#define SCP_DEFAULT_ADDRESS   0xfffff4
 
#define RUC_MASK   0x0070 /* mask for RU commands */
 
#define RUC_NOP   0x0000 /* NOP-command */
 
#define RUC_START   0x0010 /* start RU */
 
#define RUC_RESUME   0x0020 /* resume RU after suspend */
 
#define RUC_SUSPEND   0x0030 /* suspend RU */
 
#define RUC_ABORT   0x0040 /* abort receiver operation immediately */
 
#define CUC_MASK   0x07 /* mask for CU command */
 
#define CUC_NOP   0x00 /* NOP-command */
 
#define CUC_START   0x01 /* start execution of 1. cmd on the CBL */
 
#define CUC_RESUME   0x02 /* resume after suspend */
 
#define CUC_SUSPEND   0x03 /* Suspend CU */
 
#define CUC_ABORT   0x04 /* abort command operation immediately */
 
#define ACK_MASK   0xf0 /* mask for ACK command */
 
#define ACK_CX   0x80 /* acknowledges STAT_CX */
 
#define ACK_FR   0x40 /* ack. STAT_FR */
 
#define ACK_CNA   0x20 /* ack. STAT_CNA */
 
#define ACK_RNR   0x10 /* ack. STAT_RNR */
 
#define STAT_MASK   0xf0 /* mask for cause of interrupt */
 
#define STAT_CX   0x80 /* CU finished cmd with its I bit set */
 
#define STAT_FR   0x40 /* RU finished receiving a frame */
 
#define STAT_CNA   0x20 /* CU left active state */
 
#define STAT_RNR   0x10 /* RU left ready state */
 
#define CU_STATUS   0x7 /* CU status, 0=idle */
 
#define CU_SUSPEND   0x1 /* CU is suspended */
 
#define CU_ACTIVE   0x2 /* CU is active */
 
#define RU_STATUS   0x70 /* RU status, 0=idle */
 
#define RU_SUSPEND   0x10 /* RU suspended */
 
#define RU_NOSPACE   0x20 /* RU no resources */
 
#define RU_READY   0x40 /* RU is ready */
 
#define RFD_LAST   0x80 /* last: last rfd in the list */
 
#define RFD_SUSP   0x40 /* last: suspend RU after */
 
#define RFD_COMPL   0x80
 
#define RFD_OK   0x20
 
#define RFD_BUSY   0x40
 
#define RFD_ERR_LEN   0x10 /* Length error (if enabled length-checking */
 
#define RFD_ERR_CRC   0x08 /* CRC error */
 
#define RFD_ERR_ALGN   0x04 /* Alignment error */
 
#define RFD_ERR_RNR   0x02 /* status: receiver out of resources */
 
#define RFD_ERR_OVR   0x01 /* DMA Overrun! */
 
#define RFD_ERR_FTS   0x0080 /* Frame to short */
 
#define RFD_ERR_NEOP   0x0040 /* No EOP flag (for bitstuffing only) */
 
#define RFD_ERR_TRUN   0x0020 /* (82596 only/SF mode) indicates truncated frame */
 
#define RFD_MATCHADD   0x0002 /* status: Destinationaddress !matches IA (only 82596) */
 
#define RFD_COLLDET   0x0001 /* Detected collision during reception */
 
#define RBD_LAST   0x8000 /* last buffer */
 
#define RBD_USED   0x4000 /* this buffer has data */
 
#define RBD_MASK   0x3fff /* size-mask for length */
 
#define STAT_COMPL   0x8000 /* status: frame/command is complete */
 
#define STAT_BUSY   0x4000 /* status: frame/command is busy */
 
#define STAT_OK   0x2000 /* status: frame/command is ok */
 
#define CMD_NOP   0x0000 /* NOP */
 
#define CMD_IASETUP   0x0001 /* initial address setup command */
 
#define CMD_CONFIGURE   0x0002 /* configure command */
 
#define CMD_MCSETUP   0x0003 /* MC setup command */
 
#define CMD_XMIT   0x0004 /* transmit command */
 
#define CMD_TDR   0x0005 /* time domain reflectometer (TDR) command */
 
#define CMD_DUMP   0x0006 /* dump command */
 
#define CMD_DIAGNOSE   0x0007 /* diagnose command */
 
#define CMD_LAST   0x8000 /* indicates last command in the CBL */
 
#define CMD_SUSPEND   0x4000 /* suspend CU after this CB */
 
#define CMD_INT   0x2000 /* generate interrupt after execution */
 
#define TCMD_ERRMASK   0x0fa0
 
#define TCMD_MAXCOLLMASK   0x000f
 
#define TCMD_MAXCOLL   0x0020
 
#define TCMD_HEARTBEAT   0x0040
 
#define TCMD_DEFERRED   0x0080
 
#define TCMD_UNDERRUN   0x0100
 
#define TCMD_LOSTCTS   0x0200
 
#define TCMD_NOCARRIER   0x0400
 
#define TCMD_LATECOLL   0x0800
 
#define TDR_LNK_OK   0x8000 /* No link problem identified */
 
#define TDR_XCVR_PRB   0x4000 /* indicates a transceiver problem */
 
#define TDR_ET_OPN   0x2000 /* open, no correct termination */
 
#define TDR_ET_SRT   0x1000 /* TDR detected a short circuit */
 
#define TDR_TIMEMASK   0x07ff /* mask for the time field */
 
#define TBD_LAST   0x8000 /* EOF-Flag, indicates last buffer in list */
 

Macro Definition Documentation

#define ACK_CNA   0x20 /* ack. STAT_CNA */

Definition at line 96 of file ni52.h.

#define ACK_CX   0x80 /* acknowledges STAT_CX */

Definition at line 94 of file ni52.h.

#define ACK_FR   0x40 /* ack. STAT_FR */

Definition at line 95 of file ni52.h.

#define ACK_MASK   0xf0 /* mask for ACK command */

Definition at line 93 of file ni52.h.

#define ACK_RNR   0x10 /* ack. STAT_RNR */

Definition at line 97 of file ni52.h.

#define CMD_CONFIGURE   0x0002 /* configure command */

Definition at line 179 of file ni52.h.

#define CMD_DIAGNOSE   0x0007 /* diagnose command */

Definition at line 184 of file ni52.h.

#define CMD_DUMP   0x0006 /* dump command */

Definition at line 183 of file ni52.h.

#define CMD_IASETUP   0x0001 /* initial address setup command */

Definition at line 178 of file ni52.h.

#define CMD_INT   0x2000 /* generate interrupt after execution */

Definition at line 191 of file ni52.h.

#define CMD_LAST   0x8000 /* indicates last command in the CBL */

Definition at line 189 of file ni52.h.

#define CMD_MCSETUP   0x0003 /* MC setup command */

Definition at line 180 of file ni52.h.

#define CMD_NOP   0x0000 /* NOP */

Definition at line 177 of file ni52.h.

#define CMD_SUSPEND   0x4000 /* suspend CU after this CB */

Definition at line 190 of file ni52.h.

#define CMD_TDR   0x0005 /* time domain reflectometer (TDR) command */

Definition at line 182 of file ni52.h.

#define CMD_XMIT   0x0004 /* transmit command */

Definition at line 181 of file ni52.h.

#define CU_ACTIVE   0x2 /* CU is active */

Definition at line 110 of file ni52.h.

#define CU_STATUS   0x7 /* CU status, 0=idle */

Definition at line 108 of file ni52.h.

#define CU_SUSPEND   0x1 /* CU is suspended */

Definition at line 109 of file ni52.h.

#define CUC_ABORT   0x04 /* abort command operation immediately */

Definition at line 91 of file ni52.h.

#define CUC_MASK   0x07 /* mask for CU command */

Definition at line 86 of file ni52.h.

#define CUC_NOP   0x00 /* NOP-command */

Definition at line 87 of file ni52.h.

#define CUC_RESUME   0x02 /* resume after suspend */

Definition at line 89 of file ni52.h.

#define CUC_START   0x01 /* start execution of 1. cmd on the CBL */

Definition at line 88 of file ni52.h.

#define CUC_SUSPEND   0x03 /* Suspend CU */

Definition at line 90 of file ni52.h.

#define NI52_ATTENTION   1 /* channel attention, kick the 586 */

Definition at line 16 of file ni52.h.

#define NI52_INTDIS   4 /* Interrupt disable */

Definition at line 20 of file ni52.h.

#define NI52_INTENA   5 /* Interrupt enable */

Definition at line 19 of file ni52.h.

#define NI52_MAGIC1   6 /* dunno exact function */

Definition at line 21 of file ni52.h.

#define NI52_MAGIC2   7 /* dunno exact function */

Definition at line 22 of file ni52.h.

#define NI52_MAGICVAL1   0x00 /* magic-values for ni5210 card */

Definition at line 24 of file ni52.h.

#define NI52_MAGICVAL2   0x55

Definition at line 25 of file ni52.h.

#define NI52_RESET   0 /* writing to this address, resets the i82586 */

Definition at line 15 of file ni52.h.

#define NI52_TDIS   2 /* Xmit disable */

Definition at line 18 of file ni52.h.

#define NI52_TENA   3 /* 2-5 possibly wrong, Xmit enable */

Definition at line 17 of file ni52.h.

#define RBD_LAST   0x8000 /* last buffer */

Definition at line 163 of file ni52.h.

#define RBD_MASK   0x3fff /* size-mask for length */

Definition at line 165 of file ni52.h.

#define RBD_USED   0x4000 /* this buffer has data */

Definition at line 164 of file ni52.h.

#define RFD_BUSY   0x40

Definition at line 138 of file ni52.h.

#define RFD_COLLDET   0x0001 /* Detected collision during reception */

Definition at line 149 of file ni52.h.

#define RFD_COMPL   0x80

Definition at line 136 of file ni52.h.

#define RFD_ERR_ALGN   0x04 /* Alignment error */

Definition at line 141 of file ni52.h.

#define RFD_ERR_CRC   0x08 /* CRC error */

Definition at line 140 of file ni52.h.

#define RFD_ERR_FTS   0x0080 /* Frame to short */

Definition at line 145 of file ni52.h.

#define RFD_ERR_LEN   0x10 /* Length error (if enabled length-checking */

Definition at line 139 of file ni52.h.

#define RFD_ERR_NEOP   0x0040 /* No EOP flag (for bitstuffing only) */

Definition at line 146 of file ni52.h.

#define RFD_ERR_OVR   0x01 /* DMA Overrun! */

Definition at line 143 of file ni52.h.

#define RFD_ERR_RNR   0x02 /* status: receiver out of resources */

Definition at line 142 of file ni52.h.

#define RFD_ERR_TRUN   0x0020 /* (82596 only/SF mode) indicates truncated frame */

Definition at line 147 of file ni52.h.

#define RFD_LAST   0x80 /* last: last rfd in the list */

Definition at line 134 of file ni52.h.

#define RFD_MATCHADD   0x0002 /* status: Destinationaddress !matches IA (only 82596) */

Definition at line 148 of file ni52.h.

#define RFD_OK   0x20

Definition at line 137 of file ni52.h.

#define RFD_SUSP   0x40 /* last: suspend RU after */

Definition at line 135 of file ni52.h.

#define RU_NOSPACE   0x20 /* RU no resources */

Definition at line 114 of file ni52.h.

#define RU_READY   0x40 /* RU is ready */

Definition at line 115 of file ni52.h.

#define RU_STATUS   0x70 /* RU status, 0=idle */

Definition at line 112 of file ni52.h.

#define RU_SUSPEND   0x10 /* RU suspended */

Definition at line 113 of file ni52.h.

#define RUC_ABORT   0x0040 /* abort receiver operation immediately */

Definition at line 84 of file ni52.h.

#define RUC_MASK   0x0070 /* mask for RU commands */

Definition at line 79 of file ni52.h.

#define RUC_NOP   0x0000 /* NOP-command */

Definition at line 80 of file ni52.h.

#define RUC_RESUME   0x0020 /* resume RU after suspend */

Definition at line 82 of file ni52.h.

#define RUC_START   0x0010 /* start RU */

Definition at line 81 of file ni52.h.

#define RUC_SUSPEND   0x0030 /* suspend RU */

Definition at line 83 of file ni52.h.

#define SCP_DEFAULT_ADDRESS   0xfffff4

Definition at line 30 of file ni52.h.

#define STAT_BUSY   0x4000 /* status: frame/command is busy */

Definition at line 171 of file ni52.h.

#define STAT_CNA   0x20 /* CU left active state */

Definition at line 105 of file ni52.h.

#define STAT_COMPL   0x8000 /* status: frame/command is complete */

Definition at line 170 of file ni52.h.

#define STAT_CX   0x80 /* CU finished cmd with its I bit set */

Definition at line 103 of file ni52.h.

#define STAT_FR   0x40 /* RU finished receiving a frame */

Definition at line 104 of file ni52.h.

#define STAT_MASK   0xf0 /* mask for cause of interrupt */

Definition at line 102 of file ni52.h.

#define STAT_OK   0x2000 /* status: frame/command is ok */

Definition at line 172 of file ni52.h.

#define STAT_RNR   0x10 /* RU left ready state */

Definition at line 106 of file ni52.h.

#define TBD_LAST   0x8000 /* EOF-Flag, indicates last buffer in list */

Definition at line 306 of file ni52.h.

#define TCMD_DEFERRED   0x0080

Definition at line 276 of file ni52.h.

#define TCMD_ERRMASK   0x0fa0

Definition at line 272 of file ni52.h.

#define TCMD_HEARTBEAT   0x0040

Definition at line 275 of file ni52.h.

#define TCMD_LATECOLL   0x0800

Definition at line 280 of file ni52.h.

#define TCMD_LOSTCTS   0x0200

Definition at line 278 of file ni52.h.

#define TCMD_MAXCOLL   0x0020

Definition at line 274 of file ni52.h.

#define TCMD_MAXCOLLMASK   0x000f

Definition at line 273 of file ni52.h.

#define TCMD_NOCARRIER   0x0400

Definition at line 279 of file ni52.h.

#define TCMD_UNDERRUN   0x0100

Definition at line 277 of file ni52.h.

#define TDR_ET_OPN   0x2000 /* open, no correct termination */

Definition at line 292 of file ni52.h.

#define TDR_ET_SRT   0x1000 /* TDR detected a short circuit */

Definition at line 293 of file ni52.h.

#define TDR_LNK_OK   0x8000 /* No link problem identified */

Definition at line 290 of file ni52.h.

#define TDR_TIMEMASK   0x07ff /* mask for the time field */

Definition at line 294 of file ni52.h.

#define TDR_XCVR_PRB   0x4000 /* indicates a transceiver problem */

Definition at line 291 of file ni52.h.