linux/drivers/scsi/fnic/wq_enet_desc.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright 2008 Cisco Systems, Inc.  All rights reserved.
 * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
 */
#ifndef _WQ_ENET_DESC_H_
#define _WQ_ENET_DESC_H_

/* Ethernet work queue descriptor: 16B */
struct wq_enet_desc {};

#define WQ_ENET_ADDR_BITS
#define WQ_ENET_LEN_BITS
#define WQ_ENET_LEN_MASK
#define WQ_ENET_MSS_BITS
#define WQ_ENET_MSS_MASK
#define WQ_ENET_MSS_SHIFT
#define WQ_ENET_LOOPBACK_SHIFT
#define WQ_ENET_HDRLEN_BITS
#define WQ_ENET_HDRLEN_MASK
#define WQ_ENET_FLAGS_OM_BITS
#define WQ_ENET_FLAGS_OM_MASK
#define WQ_ENET_FLAGS_EOP_SHIFT
#define WQ_ENET_FLAGS_CQ_ENTRY_SHIFT
#define WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT
#define WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT

#define WQ_ENET_OFFLOAD_MODE_CSUM
#define WQ_ENET_OFFLOAD_MODE_RESERVED
#define WQ_ENET_OFFLOAD_MODE_CSUM_L4
#define WQ_ENET_OFFLOAD_MODE_TSO

static inline void wq_enet_desc_enc(struct wq_enet_desc *desc,
	u64 address, u16 length, u16 mss, u16 header_length,
	u8 offload_mode, u8 eop, u8 cq_entry, u8 fcoe_encap,
	u8 vlan_tag_insert, u16 vlan_tag, u8 loopback)
{}

static inline void wq_enet_desc_dec(struct wq_enet_desc *desc,
	u64 *address, u16 *length, u16 *mss, u16 *header_length,
	u8 *offload_mode, u8 *eop, u8 *cq_entry, u8 *fcoe_encap,
	u8 *vlan_tag_insert, u16 *vlan_tag, u8 *loopback)
{}

#endif /* _WQ_ENET_DESC_H_ */