linux/drivers/net/ethernet/broadcom/cnic_if.h

/* cnic_if.h: QLogic cnic core network driver.
 *
 * Copyright (c) 2006-2014 Broadcom Corporation
 * Copyright (c) 2014-2015 QLogic Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation.
 *
 */


#ifndef CNIC_IF_H
#define CNIC_IF_H

#include "bnx2x/bnx2x_mfw_req.h"

#define CNIC_MODULE_VERSION
#define CNIC_MODULE_RELDATE

#define CNIC_ULP_RDMA
#define CNIC_ULP_ISCSI
#define CNIC_ULP_FCOE
#define CNIC_ULP_L4
#define MAX_CNIC_ULP_TYPE_EXT
#define MAX_CNIC_ULP_TYPE

/* Use CPU native page size up to 16K for cnic ring sizes.  */
#if (PAGE_SHIFT > 14)
#define CNIC_PAGE_BITS
#else
#define CNIC_PAGE_BITS
#endif
#define CNIC_PAGE_SIZE
#define CNIC_PAGE_ALIGN(addr)
#define CNIC_PAGE_MASK

struct kwqe {};

struct kwqe_16 {};

struct kcqe {};

#define MAX_CNIC_CTL_DATA
#define MAX_DRV_CTL_DATA

#define CNIC_CTL_STOP_CMD
#define CNIC_CTL_START_CMD
#define CNIC_CTL_COMPLETION_CMD
#define CNIC_CTL_STOP_ISCSI_CMD
#define CNIC_CTL_FCOE_STATS_GET_CMD
#define CNIC_CTL_ISCSI_STATS_GET_CMD

#define DRV_CTL_IO_WR_CMD
#define DRV_CTL_IO_RD_CMD
#define DRV_CTL_CTX_WR_CMD
#define DRV_CTL_CTXTBL_WR_CMD
#define DRV_CTL_RET_L5_SPQ_CREDIT_CMD
#define DRV_CTL_START_L2_CMD
#define DRV_CTL_STOP_L2_CMD
#define DRV_CTL_RET_L2_SPQ_CREDIT_CMD
#define DRV_CTL_ISCSI_STOPPED_CMD
#define DRV_CTL_ULP_REGISTER_CMD
#define DRV_CTL_ULP_UNREGISTER_CMD

struct cnic_ctl_completion {};

struct cnic_ctl_info {};

struct drv_ctl_spq_credit {};

struct drv_ctl_io {};

struct drv_ctl_l2_ring {};

struct drv_ctl_register_data {};

struct drv_ctl_info {};

#define MAX_NPIV_ENTRIES
#define FC_NPIV_WWN_SIZE

struct cnic_fc_npiv_tbl {};

struct cnic_ops {};

#define MAX_CNIC_VEC

struct cnic_irq {};

struct cnic_eth_dev {};

struct cnic_sockaddr {};

struct cnic_sock {};

struct cnic_dev {};

#define CNIC_WR(dev, off, val)
#define CNIC_WR16(dev, off, val)
#define CNIC_WR8(dev, off, val)
#define CNIC_RD(dev, off)
#define CNIC_RD16(dev, off)

struct cnic_ulp_ops {};

int cnic_register_driver(int ulp_type, struct cnic_ulp_ops *ulp_ops);

int cnic_unregister_driver(int ulp_type);

#endif