Go to the documentation of this file.
39 #ifndef _CXGB_CPL5_CMD_H_
40 #define _CXGB_CPL5_CMD_H_
42 #include <asm/byteorder.h>
44 #if !defined(__LITTLE_ENDIAN_BITFIELD) && !defined(__BIG_ENDIAN_BITFIELD)
45 #error "Adjust your <asm/byteorder.h> defines"
110 #define NUM_CPL_CMDS 256
167 #define V_OPCODE(x) ((x) << S_OPCODE)
168 #define G_OPCODE(x) (((x) >> S_OPCODE) & 0xFF)
169 #define G_TID(x) ((x) & 0xFFFFFF)
172 #define MK_OPCODE_TID(opcode, tid) (V_OPCODE(opcode) | (tid))
174 #define OPCODE_TID(cmd) ((cmd)->ot.opcode_tid)
177 #define GET_TID(cmd) (G_TID(ntohl(OPCODE_TID(cmd))))
182 #if defined(__LITTLE_ENDIAN_BITFIELD)
438 #if defined(__LITTLE_ENDIAN_BITFIELD)
458 #if defined(__LITTLE_ENDIAN_BITFIELD)
475 #if defined(__LITTLE_ENDIAN_BITFIELD)
487 #if defined(__LITTLE_ENDIAN_BITFIELD)
534 #if defined(__LITTLE_ENDIAN_BITFIELD)
559 #if defined(__LITTLE_ENDIAN_BITFIELD)
572 #if defined(__LITTLE_ENDIAN_BITFIELD)
622 #if defined(__LITTLE_ENDIAN_BITFIELD)