#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 …
#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)
{ … }
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"
#define MCC_Q_WRB_IDX_MASK …
#define MCC_Q_WRB_IDX_SHIFT …
#define MCC_Q_CMD_TAG_MASK …
#define PAGE_SHIFT_4K …
#define PAGE_SIZE_4K …
#define PAGES_4K_SPANNED(_address, size) …
#define AMAP_BIT_OFFSET(_struct, field) …
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