Go to the documentation of this file.
30 #define FC_ENCAPS_MIN_FRAME_LEN 64
31 #define FC_ENCAPS_MAX_FRAME_LEN (FC_ENCAPS_MIN_FRAME_LEN + FC_MAX_PAYLOAD)
33 #define FC_ENCAPS_VER 1
56 #define FCIP_ENCAPS_HDR_LEN 0x20
61 #define FC_XY(x, y) ((((x) & 0xff) << 8) | ((y) & 0xff))
62 #define FC_XYXY(x, y) ((FCIP_XY(x, y) << 16) | FCIP_XY(x, y))
63 #define FC_XYNN(x, y) (FCIP_XYXY(x, y) ^ 0xffff)
65 #define FC_SOF_ENCODE(n) FC_XYNN(n, n)
66 #define FC_EOF_ENCODE(n) FC_XYNN(n, n)
93 #define FC_SOF_CLASS_MASK 0x06
109 static inline int fc_sof_needs_ack(
enum fc_sof sof)
111 return (~sof) & 0x02;
133 static inline int fc_sof_is_init(
enum fc_sof sof)