Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sun3_82586.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 IEOB_NORSET   0x80 /* don't reset the board */
 
#define IEOB_ONAIR   0x40 /* put us on the air */
 
#define IEOB_ATTEN   0x20 /* attention! */
 
#define IEOB_IENAB   0x10 /* interrupt enable */
 
#define IEOB_XXXXX   0x08 /* free bit */
 
#define IEOB_XCVRL2   0x04 /* level 2 transceiver? */
 
#define IEOB_BUSERR   0x02 /* bus error */
 
#define IEOB_INT   0x01 /* interrupt */
 
#define IE_OBIO   0xc0000
 
#define IE_IRQ   3
 
#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 104 of file sun3_82586.h.

#define ACK_CX   0x80 /* acknowledges STAT_CX */

Definition at line 102 of file sun3_82586.h.

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

Definition at line 103 of file sun3_82586.h.

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

Definition at line 101 of file sun3_82586.h.

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

Definition at line 105 of file sun3_82586.h.

#define CMD_CONFIGURE   0x0002 /* configure command */

Definition at line 187 of file sun3_82586.h.

#define CMD_DIAGNOSE   0x0007 /* diagnose command */

Definition at line 192 of file sun3_82586.h.

#define CMD_DUMP   0x0006 /* dump command */

Definition at line 191 of file sun3_82586.h.

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

Definition at line 186 of file sun3_82586.h.

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

Definition at line 199 of file sun3_82586.h.

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

Definition at line 197 of file sun3_82586.h.

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

Definition at line 188 of file sun3_82586.h.

#define CMD_NOP   0x0000 /* NOP */

Definition at line 185 of file sun3_82586.h.

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

Definition at line 198 of file sun3_82586.h.

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

Definition at line 190 of file sun3_82586.h.

#define CMD_XMIT   0x0004 /* transmit command */

Definition at line 189 of file sun3_82586.h.

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

Definition at line 118 of file sun3_82586.h.

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

Definition at line 116 of file sun3_82586.h.

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

Definition at line 117 of file sun3_82586.h.

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

Definition at line 99 of file sun3_82586.h.

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

Definition at line 94 of file sun3_82586.h.

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

Definition at line 95 of file sun3_82586.h.

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

Definition at line 97 of file sun3_82586.h.

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

Definition at line 96 of file sun3_82586.h.

#define CUC_SUSPEND   0x03 /* Suspend CU */

Definition at line 98 of file sun3_82586.h.

#define IE_IRQ   3

Definition at line 33 of file sun3_82586.h.

#define IE_OBIO   0xc0000

Definition at line 32 of file sun3_82586.h.

#define IEOB_ATTEN   0x20 /* attention! */

Definition at line 24 of file sun3_82586.h.

#define IEOB_BUSERR   0x02 /* bus error */

Definition at line 28 of file sun3_82586.h.

#define IEOB_IENAB   0x10 /* interrupt enable */

Definition at line 25 of file sun3_82586.h.

#define IEOB_INT   0x01 /* interrupt */

Definition at line 29 of file sun3_82586.h.

#define IEOB_NORSET   0x80 /* don't reset the board */

Definition at line 22 of file sun3_82586.h.

#define IEOB_ONAIR   0x40 /* put us on the air */

Definition at line 23 of file sun3_82586.h.

#define IEOB_XCVRL2   0x04 /* level 2 transceiver? */

Definition at line 27 of file sun3_82586.h.

#define IEOB_XXXXX   0x08 /* free bit */

Definition at line 26 of file sun3_82586.h.

#define RBD_LAST   0x8000 /* last buffer */

Definition at line 171 of file sun3_82586.h.

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

Definition at line 173 of file sun3_82586.h.

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

Definition at line 172 of file sun3_82586.h.

#define RFD_BUSY   0x40

Definition at line 146 of file sun3_82586.h.

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

Definition at line 157 of file sun3_82586.h.

#define RFD_COMPL   0x80

Definition at line 144 of file sun3_82586.h.

#define RFD_ERR_ALGN   0x04 /* Alignment error */

Definition at line 149 of file sun3_82586.h.

#define RFD_ERR_CRC   0x08 /* CRC error */

Definition at line 148 of file sun3_82586.h.

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

Definition at line 153 of file sun3_82586.h.

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

Definition at line 147 of file sun3_82586.h.

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

Definition at line 154 of file sun3_82586.h.

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

Definition at line 151 of file sun3_82586.h.

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

Definition at line 150 of file sun3_82586.h.

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

Definition at line 155 of file sun3_82586.h.

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

Definition at line 142 of file sun3_82586.h.

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

Definition at line 156 of file sun3_82586.h.

#define RFD_OK   0x20

Definition at line 145 of file sun3_82586.h.

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

Definition at line 143 of file sun3_82586.h.

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

Definition at line 122 of file sun3_82586.h.

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

Definition at line 123 of file sun3_82586.h.

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

Definition at line 120 of file sun3_82586.h.

#define RU_SUSPEND   0x10 /* RU suspended */

Definition at line 121 of file sun3_82586.h.

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

Definition at line 92 of file sun3_82586.h.

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

Definition at line 87 of file sun3_82586.h.

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

Definition at line 88 of file sun3_82586.h.

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

Definition at line 90 of file sun3_82586.h.

#define RUC_START   0x0010 /* start RU */

Definition at line 89 of file sun3_82586.h.

#define RUC_SUSPEND   0x0030 /* suspend RU */

Definition at line 91 of file sun3_82586.h.

#define SCP_DEFAULT_ADDRESS   0xfffff4

Definition at line 38 of file sun3_82586.h.

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

Definition at line 179 of file sun3_82586.h.

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

Definition at line 113 of file sun3_82586.h.

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

Definition at line 178 of file sun3_82586.h.

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

Definition at line 111 of file sun3_82586.h.

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

Definition at line 112 of file sun3_82586.h.

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

Definition at line 110 of file sun3_82586.h.

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

Definition at line 180 of file sun3_82586.h.

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

Definition at line 114 of file sun3_82586.h.

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

Definition at line 314 of file sun3_82586.h.

#define TCMD_DEFERRED   0x0080

Definition at line 284 of file sun3_82586.h.

#define TCMD_ERRMASK   0x0fa0

Definition at line 280 of file sun3_82586.h.

#define TCMD_HEARTBEAT   0x0040

Definition at line 283 of file sun3_82586.h.

#define TCMD_LATECOLL   0x0800

Definition at line 288 of file sun3_82586.h.

#define TCMD_LOSTCTS   0x0200

Definition at line 286 of file sun3_82586.h.

#define TCMD_MAXCOLL   0x0020

Definition at line 282 of file sun3_82586.h.

#define TCMD_MAXCOLLMASK   0x000f

Definition at line 281 of file sun3_82586.h.

#define TCMD_NOCARRIER   0x0400

Definition at line 287 of file sun3_82586.h.

#define TCMD_UNDERRUN   0x0100

Definition at line 285 of file sun3_82586.h.

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

Definition at line 300 of file sun3_82586.h.

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

Definition at line 301 of file sun3_82586.h.

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

Definition at line 298 of file sun3_82586.h.

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

Definition at line 302 of file sun3_82586.h.

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

Definition at line 299 of file sun3_82586.h.