bnx2fc.h (7b0cfee1a24efdfe0235bac62e53f686fe8a8e24) | bnx2fc.h (2e499d3cc13365a87815266dda59904dcb8c8d6c) |
---|---|
1#ifndef _BNX2FC_H_ 2#define _BNX2FC_H_ 3/* bnx2fc.h: Broadcom NetXtreme II Linux FCoE offload driver. 4 * 5 * Copyright (c) 2008 - 2011 Broadcom Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 45 unchanged lines hidden (view full) --- 54#include <scsi/fc/fc_fc2.h> 55#include <scsi/fc_frame.h> 56#include <scsi/fc/fc_fcoe.h> 57#include <scsi/fc/fc_fcp.h> 58 59#include "57xx_hsi_bnx2fc.h" 60#include "bnx2fc_debug.h" 61#include "../../net/ethernet/broadcom/cnic_if.h" | 1#ifndef _BNX2FC_H_ 2#define _BNX2FC_H_ 3/* bnx2fc.h: Broadcom NetXtreme II Linux FCoE offload driver. 4 * 5 * Copyright (c) 2008 - 2011 Broadcom Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 45 unchanged lines hidden (view full) --- 54#include <scsi/fc/fc_fc2.h> 55#include <scsi/fc_frame.h> 56#include <scsi/fc/fc_fcoe.h> 57#include <scsi/fc/fc_fcp.h> 58 59#include "57xx_hsi_bnx2fc.h" 60#include "bnx2fc_debug.h" 61#include "../../net/ethernet/broadcom/cnic_if.h" |
62#include "../../net/ethernet/broadcom/bnx2x/bnx2x_mfw_req.h" |
|
62#include "bnx2fc_constants.h" 63 64#define BNX2FC_NAME "bnx2fc" 65#define BNX2FC_VERSION "1.0.11" 66 67#define PFX "bnx2fc: " 68 69#define BNX2X_DOORBELL_PCI_BAR 2 --- 9 unchanged lines hidden (view full) --- 79#define BNX2FC_ELS_MAX_SQES (BNX2FC_TM_MAX_SQES - 1) 80 81#define BNX2FC_RQ_WQES_MAX 16 82#define BNX2FC_CQ_WQES_MAX (BNX2FC_SQ_WQES_MAX + BNX2FC_RQ_WQES_MAX) 83 84#define BNX2FC_NUM_MAX_SESS 1024 85#define BNX2FC_NUM_MAX_SESS_LOG (ilog2(BNX2FC_NUM_MAX_SESS)) 86 | 63#include "bnx2fc_constants.h" 64 65#define BNX2FC_NAME "bnx2fc" 66#define BNX2FC_VERSION "1.0.11" 67 68#define PFX "bnx2fc: " 69 70#define BNX2X_DOORBELL_PCI_BAR 2 --- 9 unchanged lines hidden (view full) --- 80#define BNX2FC_ELS_MAX_SQES (BNX2FC_TM_MAX_SQES - 1) 81 82#define BNX2FC_RQ_WQES_MAX 16 83#define BNX2FC_CQ_WQES_MAX (BNX2FC_SQ_WQES_MAX + BNX2FC_RQ_WQES_MAX) 84 85#define BNX2FC_NUM_MAX_SESS 1024 86#define BNX2FC_NUM_MAX_SESS_LOG (ilog2(BNX2FC_NUM_MAX_SESS)) 87 |
88#define BNX2FC_MAX_NPIV 256 89 |
|
87#define BNX2FC_MAX_OUTSTANDING_CMNDS 2048 88#define BNX2FC_CAN_QUEUE BNX2FC_MAX_OUTSTANDING_CMNDS 89#define BNX2FC_ELSTM_XIDS BNX2FC_CAN_QUEUE 90#define BNX2FC_MIN_PAYLOAD 256 91#define BNX2FC_MAX_PAYLOAD 2048 92#define BNX2FC_MFS \ 93 (BNX2FC_MAX_PAYLOAD + sizeof(struct fc_frame_header)) 94#define BNX2FC_MINI_JUMBO_MTU 2500 --- 106 unchanged lines hidden (view full) --- 201 202 /* Active list of offloaded sessions */ 203 struct bnx2fc_rport **tgt_ofld_list; 204 205 /* statistics */ 206 struct fcoe_statistics_params *stats_buffer; 207 dma_addr_t stats_buf_dma; 208 struct completion stat_req_done; | 90#define BNX2FC_MAX_OUTSTANDING_CMNDS 2048 91#define BNX2FC_CAN_QUEUE BNX2FC_MAX_OUTSTANDING_CMNDS 92#define BNX2FC_ELSTM_XIDS BNX2FC_CAN_QUEUE 93#define BNX2FC_MIN_PAYLOAD 256 94#define BNX2FC_MAX_PAYLOAD 2048 95#define BNX2FC_MFS \ 96 (BNX2FC_MAX_PAYLOAD + sizeof(struct fc_frame_header)) 97#define BNX2FC_MINI_JUMBO_MTU 2500 --- 106 unchanged lines hidden (view full) --- 204 205 /* Active list of offloaded sessions */ 206 struct bnx2fc_rport **tgt_ofld_list; 207 208 /* statistics */ 209 struct fcoe_statistics_params *stats_buffer; 210 dma_addr_t stats_buf_dma; 211 struct completion stat_req_done; |
212 struct fcoe_capabilities fcoe_cap; |
|
209 210 /*destroy handling */ 211 struct timer_list destroy_timer; 212 wait_queue_head_t destroy_wait; 213 214 /* linkdown handling */ 215 wait_queue_head_t shutdown_wait; 216 int wait_for_link_down; --- 341 unchanged lines hidden --- | 213 214 /*destroy handling */ 215 struct timer_list destroy_timer; 216 wait_queue_head_t destroy_wait; 217 218 /* linkdown handling */ 219 wait_queue_head_t shutdown_wait; 220 int wait_for_link_down; --- 341 unchanged lines hidden --- |