linux/drivers/scsi/be2iscsi/be.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright 2017 Broadcom. All Rights Reserved.
 * The term "Broadcom" refers to Broadcom Limited and/or its subsidiaries.
 *
 * Contact Information:
 * [email protected]
 */

#ifndef BEISCSI_H
#define BEISCSI_H

#include <linux/pci.h>
#include <linux/if_vlan.h>
#include <linux/irq_poll.h>
#define FW_VER_LEN
#define MCC_Q_LEN
#define MCC_CQ_LEN
#define MAX_MCC_CMD
/* BladeEngine Generation numbers */
#define BE_GEN2
#define BE_GEN3
#define BE_GEN4
struct be_dma_mem {};

struct be_queue_info {};

static inline u32 MODULO(u16 val, u16 limit)
{}

static inline void index_inc(u16 *index, u16 limit)
{}

static inline void *queue_head_node(struct be_queue_info *q)
{}

static inline void *queue_get_wrb(struct be_queue_info *q, unsigned int wrb_num)
{}

static inline void *queue_tail_node(struct be_queue_info *q)
{}

static inline void queue_head_inc(struct be_queue_info *q)
{}

static inline void queue_tail_inc(struct be_queue_info *q)
{}

/*ISCSI */

struct be_aic_obj {};

struct be_eq_obj {};

struct be_mcc_obj {};

struct beiscsi_mcc_tag_state {};

struct be_ctrl_info {};

#include "be_cmds.h"

/* WRB index mask for MCC_Q_LEN queue entries */
#define MCC_Q_WRB_IDX_MASK
#define MCC_Q_WRB_IDX_SHIFT
/* TAG is from 1...MAX_MCC_CMD, MASK includes MAX_MCC_CMD */
#define MCC_Q_CMD_TAG_MASK

#define PAGE_SHIFT_4K
#define PAGE_SIZE_4K

/* Returns number of pages spanned by the data starting at the given addr */
#define PAGES_4K_SPANNED(_address, size)

/* Returns bit offset within a DWORD of a bitfield */
#define AMAP_BIT_OFFSET(_struct, field)

/* Returns the bit mask of the field that is NOT shifted into location. */
static inline u32 amap_mask(u32 bitsize)
{}

static inline void amap_set(void *ptr, u32 dw_offset, u32 mask,
					u32 offset, u32 value)
{}

#define AMAP_SET_BITS(_struct, field, ptr, val)

static inline u32 amap_get(void *ptr, u32 dw_offset, u32 mask, u32 offset)
{}

#define AMAP_GET_BITS(_struct, field, ptr)

#define be_dws_cpu_to_le(wrb, len)
#define be_dws_le_to_cpu(wrb, len)
static inline void swap_dws(void *wrb, int len)
{}
#endif /* BEISCSI_H */