Lines Matching refs:SWAP

99 #define IE_RU_COMMAND	SWAP(0x0070)	/* mask for RU command */
100 #define IE_RU_NOP SWAP(0) /* for completeness */
101 #define IE_RU_START SWAP(0x0010) /* start receive unit command */
102 #define IE_RU_ENABLE SWAP(0x0020) /* enable receiver command */
103 #define IE_RU_DISABLE SWAP(0x0030) /* disable receiver command */
104 #define IE_RU_ABORT SWAP(0x0040) /* abort current receive operation */
106 #define IE_CU_COMMAND SWAP(0x0700) /* mask for CU command */
107 #define IE_CU_NOP SWAP(0) /* included for completeness */
108 #define IE_CU_START SWAP(0x0100) /* do-command command */
109 #define IE_CU_RESUME SWAP(0x0200) /* resume a suspended cmd list */
110 #define IE_CU_STOP SWAP(0x0300) /* SUSPEND was already taken */
111 #define IE_CU_ABORT SWAP(0x0400) /* abort current command */
113 #define IE_ACK_COMMAND SWAP(0xf000) /* mask for ACK command */
114 #define IE_ACK_CX SWAP(0x8000) /* ack IE_ST_DONE */
115 #define IE_ACK_FR SWAP(0x4000) /* ack IE_ST_RECV */
116 #define IE_ACK_CNA SWAP(0x2000) /* ack IE_ST_ALLDONE */
117 #define IE_ACK_RNR SWAP(0x1000) /* ack IE_ST_RNR */
123 #define IE_ST_WHENCE SWAP(0xf000) /* mask for cause of interrupt */
124 #define IE_ST_DONE SWAP(0x8000) /* command with I bit completed */
125 #define IE_ST_RECV SWAP(0x4000) /* frame received */
126 #define IE_ST_ALLDONE SWAP(0x2000) /* all commands completed */
127 #define IE_ST_RNR SWAP(0x1000) /* receive not ready */
129 #define IE_CU_STATUS SWAP(0x700) /* mask for command unit status */
130 #define IE_CU_ACTIVE SWAP(0x200) /* command unit is active */
131 #define IE_CU_SUSPEND SWAP(0x100) /* command unit is suspended */
133 #define IE_RU_STATUS SWAP(0x70) /* mask for receiver unit status */
134 #define IE_RU_SUSPEND SWAP(0x10) /* receiver is suspended */
135 #define IE_RU_NOSPACE SWAP(0x20) /* receiver has no resources */
136 #define IE_RU_READY SWAP(0x40) /* reveiver is ready */
152 #define IE_FD_LAST SWAP(0x8000) /* last rfd in list */
153 #define IE_FD_SUSP SWAP(0x4000) /* suspend RU after receipt */
155 #define IE_FD_COMPLETE SWAP(0x8000) /* frame is complete */
156 #define IE_FD_BUSY SWAP(0x4000) /* frame is busy */
157 #define IE_FD_OK SWAP(0x2000) /* frame is bad */
158 #define IE_FD_RNR SWAP(0x0200) /* receiver out of resources here */
171 #define IE_RBD_LAST SWAP(0x8000) /* last buffer */
172 #define IE_RBD_USED SWAP(0x4000) /* this buffer has data */
182 #define IE_STAT_COMPL SWAP(0x8000) /* command is completed */
183 #define IE_STAT_BUSY SWAP(0x4000) /* command is running now */
184 #define IE_STAT_OK SWAP(0x2000) /* command completed successfully */
185 #define IE_STAT_ABORT SWAP(0x1000) /* command was aborted */
187 #define IE_CMD_NOP SWAP(0x0000) /* NOP */
188 #define IE_CMD_IASETUP SWAP(0x0001) /* initial address setup */
189 #define IE_CMD_CONFIG SWAP(0x0002) /* configure command */
190 #define IE_CMD_MCAST SWAP(0x0003) /* multicast setup command */
191 #define IE_CMD_XMIT SWAP(0x0004) /* transmit command */
192 #define IE_CMD_TDR SWAP(0x0005) /* time-domain reflectometer command */
193 #define IE_CMD_DUMP SWAP(0x0006) /* dump command */
194 #define IE_CMD_DIAGNOSE SWAP(0x0007) /* diagnostics command */
196 #define IE_CMD_LAST SWAP(0x8000) /* this is the last command in the list */
197 #define IE_CMD_SUSPEND SWAP(0x4000) /* suspend CU after this command */
198 #define IE_CMD_INTR SWAP(0x2000) /* post an interrupt after completion */
213 #define IE_XS_MAXCOLL SWAP(0x000f) /* number of collisions during transmit */
214 #define IE_XS_EXCMAX SWAP(0x0020) /* exceeded maximum number of collisions */
215 #define IE_XS_SQE SWAP(0x0040) /* SQE positive */
216 #define IE_XS_DEFERRED SWAP(0x0080) /* transmission deferred */
217 #define IE_XS_UNDERRUN SWAP(0x0100) /* DMA underrun */
218 #define IE_XS_LOSTCTS SWAP(0x0200) /* Lost CTS */
219 #define IE_XS_NOCARRIER SWAP(0x0400) /* No Carrier */
220 #define IE_XS_LATECOLL SWAP(0x0800) /* Late collision */
232 #define IE_XMIT_LAST SWAP(0x8000) /* this TBD is the last one */
262 #define IE_TDR_SUCCESS SWAP(0x8000) /* TDR succeeded without error */
263 #define IE_TDR_XCVR SWAP(0x4000) /* detected a transceiver problem */
264 #define IE_TDR_OPEN SWAP(0x2000) /* detected an open */
265 #define IE_TDR_SHORT SWAP(0x1000) /* TDR detected a short */
266 #define IE_TDR_TIME SWAP(0x07ff) /* mask for reflection time */