13 #ifndef __PACKET_FCSB3_H_ 14 #define __PACKET_FCSB3_H_ 17 #define FC_SBCCS_IU_DATA 0x0 18 #define FC_SBCCS_IU_CMD_HDR 0x1 19 #define FC_SBCCS_IU_STATUS 0x2 20 #define FC_SBCCS_IU_CTL 0x3 21 #define FC_SBCCS_IU_CMD_DATA 0x4 22 #define FC_SBCCS_IU_CMD_LINK_CTL 0x5 25 #define FC_SBCCS_CTL_FN_CTL_END 0x0 26 #define FC_SBCCS_CTL_FN_CMD_RSP 0x10 27 #define FC_SBCCS_CTL_FN_STK_STS 0x20 28 #define FC_SBCCS_CTL_FN_CANCEL 0x30 29 #define FC_SBCCS_CTL_FN_SYS_RST 0x40 30 #define FC_SBCCS_CTL_FN_SEL_RST 0x50 31 #define FC_SBCCS_CTL_FN_REQ_STS 0x70 32 #define FC_SBCCS_CTL_FN_DEV_XCP 0x80 33 #define FC_SBCCS_CTL_FN_STS_ACC 0xA0 34 #define FC_SBCCS_CTL_FN_DEV_ACK 0xB0 35 #define FC_SBCCS_CTL_FN_PRG_PTH 0xC1 36 #define FC_SBCCS_CTL_FN_PRG_RSP 0xD0 39 #define FC_SBCCS_LINK_CTL_FN_ELP 0x41 40 #define FC_SBCCS_LINK_CTL_FN_RLP 0x49 41 #define FC_SBCCS_LINK_CTL_FN_TIN 0x09 42 #define FC_SBCCS_LINK_CTL_FN_LPE 0x51 43 #define FC_SBCCS_LINK_CTL_FN_LPR 0x59 44 #define FC_SBCCS_LINK_CTL_FN_TIR 0x01 45 #define FC_SBCCS_LINK_CTL_FN_LRJ 0x11 46 #define FC_SBCCS_LINK_CTL_FN_LBY 0x21 47 #define FC_SBCCS_LINK_CTL_FN_LACK 0x61 49 #define FC_SBCCS_SB3_HDR_SIZE 8 50 #define FC_SBCCS_IU_HDR_SIZE 8 51 #define FC_SBCCS_DIB_LRC_HDR_SIZE 16 54 static inline guint get_fc_sbccs_iu_type (
tvbuff_t *tvb, guint offset)
57 return (tvb_get_guint8 (tvb, offset+FC_SBCCS_SB3_HDR_SIZE) & 0x7);
Definition: tvbuff-int.h:35