linux/drivers/infiniband/hw/bnxt_re/qplib_tlv.h

/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */

#ifndef __QPLIB_TLV_H__
#define __QPLIB_TLV_H__

struct roce_tlv {};

#define CHUNK_SIZE
#define CHUNKS(x)

static inline  void __roce_1st_tlv_prep(struct roce_tlv *rtlv, u8 tot_chunks,
					u16 content_bytes, u8 flags)
{}

static inline void __roce_ext_tlv_prep(struct roce_tlv *rtlv, u16 tlv_type,
				       u16 content_bytes, u8 more, u8 flags)
{}

/*
 * TLV size in units of 16 byte chunks
 */
#define TLV_SIZE
/*
 * TLV length in bytes
 */
#define TLV_BYTES

#define HAS_TLV_HEADER(msg)
#define GET_TLV_DATA(tlv)

static inline u8 __get_cmdq_base_opcode(struct cmdq_base *req, u32 size)
{}

static inline void __set_cmdq_base_opcode(struct cmdq_base *req,
					  u32 size, u8 val)
{}

static inline __le16 __get_cmdq_base_cookie(struct cmdq_base *req, u32 size)
{}

static inline void __set_cmdq_base_cookie(struct cmdq_base *req,
					  u32 size, __le16 val)
{}

static inline __le64 __get_cmdq_base_resp_addr(struct cmdq_base *req, u32 size)
{}

static inline void __set_cmdq_base_resp_addr(struct cmdq_base *req,
					     u32 size, __le64 val)
{}

static inline u8 __get_cmdq_base_resp_size(struct cmdq_base *req, u32 size)
{}

static inline void __set_cmdq_base_resp_size(struct cmdq_base *req,
					     u32 size, u8 val)
{}

static inline u8 __get_cmdq_base_cmd_size(struct cmdq_base *req, u32 size)
{}

static inline void __set_cmdq_base_cmd_size(struct cmdq_base *req,
					    u32 size, u8 val)
{}

static inline __le16 __get_cmdq_base_flags(struct cmdq_base *req, u32 size)
{}

static inline void __set_cmdq_base_flags(struct cmdq_base *req,
					 u32 size, __le16 val)
{}

struct bnxt_qplib_tlv_modify_cc_req {};

struct bnxt_qplib_tlv_query_rcc_sb {};
#endif /* __QPLIB_TLV_H__ */