qed.h (348bfec21f52030b5f8df9d9dacf85b6253418d3) | qed.h (fc831825f99eb3a2f1bf3fe7307b392513b642a5) |
---|---|
1/* QLogic qed NIC Driver 2 * Copyright (c) 2015 QLogic Corporation 3 * 4 * This software is available under the terms of the GNU General Public License 5 * (GPL) Version 2, available from the file COPYING in the main directory of 6 * this source tree. 7 */ 8 --- 21 unchanged lines hidden (view full) --- 30#define DRV_MODULE_VERSION "8.10.9.20" 31 32#define MAX_HWFNS_PER_DEVICE (4) 33#define NAME_SIZE 16 34#define VER_SIZE 16 35 36#define QED_WFQ_UNIT 100 37 | 1/* QLogic qed NIC Driver 2 * Copyright (c) 2015 QLogic Corporation 3 * 4 * This software is available under the terms of the GNU General Public License 5 * (GPL) Version 2, available from the file COPYING in the main directory of 6 * this source tree. 7 */ 8 --- 21 unchanged lines hidden (view full) --- 30#define DRV_MODULE_VERSION "8.10.9.20" 31 32#define MAX_HWFNS_PER_DEVICE (4) 33#define NAME_SIZE 16 34#define VER_SIZE 16 35 36#define QED_WFQ_UNIT 100 37 |
38#define ISCSI_BDQ_ID(_port_id) (_port_id) |
|
38#define QED_WID_SIZE (1024) 39#define QED_PF_DEMS_SIZE (4) 40 41/* cau states */ 42enum qed_coalescing_mode { 43 QED_COAL_MODE_DISABLE, 44 QED_COAL_MODE_ENABLE 45}; --- 332 unchanged lines hidden (view full) --- 378 379 struct qed_sb_sp_info *p_sp_sb; 380 struct qed_sb_attn_info *p_sb_attn; 381 382 /* Protocol related */ 383 bool using_ll2; 384 struct qed_ll2_info *p_ll2_info; 385 struct qed_rdma_info *p_rdma_info; | 39#define QED_WID_SIZE (1024) 40#define QED_PF_DEMS_SIZE (4) 41 42/* cau states */ 43enum qed_coalescing_mode { 44 QED_COAL_MODE_DISABLE, 45 QED_COAL_MODE_ENABLE 46}; --- 332 unchanged lines hidden (view full) --- 379 380 struct qed_sb_sp_info *p_sp_sb; 381 struct qed_sb_attn_info *p_sb_attn; 382 383 /* Protocol related */ 384 bool using_ll2; 385 struct qed_ll2_info *p_ll2_info; 386 struct qed_rdma_info *p_rdma_info; |
387 struct qed_iscsi_info *p_iscsi_info; |
|
386 struct qed_pf_params pf_params; 387 388 bool b_rdma_enabled_in_prs; 389 u32 rdma_prs_search_reg; 390 391 /* Array of sb_info of all status blocks */ 392 struct qed_sb_info *sbs_info[MAX_SB_PER_PF_MIMD]; 393 u16 num_sbs; --- 182 unchanged lines hidden (view full) --- 576 struct qed_eth_stats *reset_stats; 577 struct qed_fw_data *fw_data; 578 579 u32 mcp_nvm_resp; 580 581 /* Linux specific here */ 582 struct qede_dev *edev; 583 struct pci_dev *pdev; | 388 struct qed_pf_params pf_params; 389 390 bool b_rdma_enabled_in_prs; 391 u32 rdma_prs_search_reg; 392 393 /* Array of sb_info of all status blocks */ 394 struct qed_sb_info *sbs_info[MAX_SB_PER_PF_MIMD]; 395 u16 num_sbs; --- 182 unchanged lines hidden (view full) --- 578 struct qed_eth_stats *reset_stats; 579 struct qed_fw_data *fw_data; 580 581 u32 mcp_nvm_resp; 582 583 /* Linux specific here */ 584 struct qede_dev *edev; 585 struct pci_dev *pdev; |
586 u32 flags; 587#define QED_FLAG_STORAGE_STARTED (BIT(0)) |
|
584 int msg_enable; 585 586 struct pci_params pci_params; 587 588 struct qed_int_params int_params; 589 590 u8 protocol; 591#define IS_QED_ETH_IF(cdev) ((cdev)->protocol == QED_PROTOCOL_ETH) 592 593 /* Callbacks to protocol driver */ 594 union { 595 struct qed_common_cb_ops *common; 596 struct qed_eth_cb_ops *eth; | 588 int msg_enable; 589 590 struct pci_params pci_params; 591 592 struct qed_int_params int_params; 593 594 u8 protocol; 595#define IS_QED_ETH_IF(cdev) ((cdev)->protocol == QED_PROTOCOL_ETH) 596 597 /* Callbacks to protocol driver */ 598 union { 599 struct qed_common_cb_ops *common; 600 struct qed_eth_cb_ops *eth; |
601 struct qed_iscsi_cb_ops *iscsi; |
|
597 } protocol_ops; 598 void *ops_cookie; 599 600 struct qed_dbg_params dbg_params; 601 602#ifdef CONFIG_QED_LL2 603 struct qed_cb_ll2_info *ll2; 604 u8 ll2_mac_address[ETH_ALEN]; 605#endif | 602 } protocol_ops; 603 void *ops_cookie; 604 605 struct qed_dbg_params dbg_params; 606 607#ifdef CONFIG_QED_LL2 608 struct qed_cb_ll2_info *ll2; 609 u8 ll2_mac_address[ETH_ALEN]; 610#endif |
606 | 611 DECLARE_HASHTABLE(connections, 10); |
607 const struct firmware *firmware; 608 609 u32 rdma_max_sge; 610 u32 rdma_max_inline; 611 u32 rdma_max_srq_sge; 612}; 613 614#define NUM_OF_VFS(dev) MAX_NUM_VFS_BB --- 66 unchanged lines hidden --- | 612 const struct firmware *firmware; 613 614 u32 rdma_max_sge; 615 u32 rdma_max_inline; 616 u32 rdma_max_srq_sge; 617}; 618 619#define NUM_OF_VFS(dev) MAX_NUM_VFS_BB --- 66 unchanged lines hidden --- |