xref: /linux/drivers/scsi/bfa/bfad_drv.h (revision 31e1d5695724829759c4b5d63cd643c9f01769cc)
17725ccfdSJing Huang /*
2889d0d42SAnil Gurumurthy  * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
3889d0d42SAnil Gurumurthy  * Copyright (c) 2014- QLogic Corporation.
47725ccfdSJing Huang  * All rights reserved
5889d0d42SAnil Gurumurthy  * www.qlogic.com
67725ccfdSJing Huang  *
7*31e1d569SAnil Gurumurthy  * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
87725ccfdSJing Huang  *
97725ccfdSJing Huang  * This program is free software; you can redistribute it and/or modify it
107725ccfdSJing Huang  * under the terms of the GNU General Public License (GPL) Version 2 as
117725ccfdSJing Huang  * published by the Free Software Foundation
127725ccfdSJing Huang  *
137725ccfdSJing Huang  * This program is distributed in the hope that it will be useful, but
147725ccfdSJing Huang  * WITHOUT ANY WARRANTY; without even the implied warranty of
157725ccfdSJing Huang  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
167725ccfdSJing Huang  * General Public License for more details.
177725ccfdSJing Huang  */
187725ccfdSJing Huang 
19acdc79a6SJing Huang /*
207725ccfdSJing Huang  * Contains base driver definitions.
217725ccfdSJing Huang  */
227725ccfdSJing Huang 
23acdc79a6SJing Huang /*
247725ccfdSJing Huang  *  bfa_drv.h Linux driver data structures.
257725ccfdSJing Huang  */
267725ccfdSJing Huang 
277725ccfdSJing Huang #ifndef __BFAD_DRV_H__
287725ccfdSJing Huang #define __BFAD_DRV_H__
297725ccfdSJing Huang 
30f16a1750SMaggie Zhang #include <linux/types.h>
31f16a1750SMaggie Zhang #include <linux/pci.h>
32f16a1750SMaggie Zhang #include <linux/dma-mapping.h>
33f16a1750SMaggie Zhang #include <linux/idr.h>
34f16a1750SMaggie Zhang #include <linux/interrupt.h>
35f16a1750SMaggie Zhang #include <linux/cdev.h>
36f16a1750SMaggie Zhang #include <linux/fs.h>
37f16a1750SMaggie Zhang #include <linux/delay.h>
38f16a1750SMaggie Zhang #include <linux/vmalloc.h>
39f16a1750SMaggie Zhang #include <linux/workqueue.h>
40f16a1750SMaggie Zhang #include <linux/bitops.h>
41881c1b3cSKrishna Gudipati #include <linux/aer.h>
42f16a1750SMaggie Zhang #include <scsi/scsi.h>
43f16a1750SMaggie Zhang #include <scsi/scsi_host.h>
44f16a1750SMaggie Zhang #include <scsi/scsi_tcq.h>
45f16a1750SMaggie Zhang #include <scsi/scsi_transport_fc.h>
46f16a1750SMaggie Zhang #include <scsi/scsi_transport.h>
47b85daafeSKrishna Gudipati #include <scsi/scsi_bsg_fc.h>
485b7db7afSKrishna Gudipati #include <scsi/scsi_devinfo.h>
497725ccfdSJing Huang 
50a36c61f9SKrishna Gudipati #include "bfa_modules.h"
51a36c61f9SKrishna Gudipati #include "bfa_fcs.h"
52a36c61f9SKrishna Gudipati #include "bfa_defs_fcs.h"
537725ccfdSJing Huang 
54a36c61f9SKrishna Gudipati #include "bfa_plog.h"
55a36c61f9SKrishna Gudipati #include "bfa_cs.h"
567725ccfdSJing Huang 
577725ccfdSJing Huang #define BFAD_DRIVER_NAME	"bfa"
587725ccfdSJing Huang #ifdef BFA_DRIVER_VERSION
597725ccfdSJing Huang #define BFAD_DRIVER_VERSION    BFA_DRIVER_VERSION
607725ccfdSJing Huang #else
612da11ad2SVijaya Mohan Guvva #define BFAD_DRIVER_VERSION    "3.2.23.0"
627725ccfdSJing Huang #endif
637725ccfdSJing Huang 
64a36c61f9SKrishna Gudipati #define BFAD_PROTO_NAME FCPI_NAME
657725ccfdSJing Huang #define BFAD_IRQ_FLAGS IRQF_SHARED
667725ccfdSJing Huang 
67a36c61f9SKrishna Gudipati #ifndef FC_PORTSPEED_8GBIT
68a36c61f9SKrishna Gudipati #define FC_PORTSPEED_8GBIT 0x10
69a36c61f9SKrishna Gudipati #endif
70a36c61f9SKrishna Gudipati 
717725ccfdSJing Huang /*
727725ccfdSJing Huang  * BFAD flags
737725ccfdSJing Huang  */
747725ccfdSJing Huang #define BFAD_MSIX_ON				0x00000001
757725ccfdSJing Huang #define BFAD_HAL_INIT_DONE			0x00000002
767725ccfdSJing Huang #define BFAD_DRV_INIT_DONE			0x00000004
777725ccfdSJing Huang #define BFAD_CFG_PPORT_DONE			0x00000008
787725ccfdSJing Huang #define BFAD_HAL_START_DONE			0x00000010
797725ccfdSJing Huang #define BFAD_PORT_ONLINE			0x00000020
807725ccfdSJing Huang #define BFAD_RPORT_ONLINE			0x00000040
81e6714324SKrishna Gudipati #define BFAD_FCS_INIT_DONE			0x00000080
82e6714324SKrishna Gudipati #define BFAD_HAL_INIT_FAIL			0x00000100
83e6714324SKrishna Gudipati #define BFAD_FC4_PROBE_DONE			0x00000200
847725ccfdSJing Huang #define BFAD_PORT_DELETE			0x00000001
8561e62e21SKrishna Gudipati #define BFAD_INTX_ON				0x00000400
86881c1b3cSKrishna Gudipati #define BFAD_EEH_BUSY				0x00000800
87881c1b3cSKrishna Gudipati #define BFAD_EEH_PCI_CHANNEL_IO_PERM_FAILURE	0x00001000
887725ccfdSJing Huang /*
897725ccfdSJing Huang  * BFAD related definition
907725ccfdSJing Huang  */
917725ccfdSJing Huang #define SCSI_SCAN_DELAY		HZ
927725ccfdSJing Huang #define BFAD_STOP_TIMEOUT	30
937725ccfdSJing Huang #define BFAD_SUSPEND_TIMEOUT	BFAD_STOP_TIMEOUT
947725ccfdSJing Huang 
957725ccfdSJing Huang /*
967725ccfdSJing Huang  * BFAD configuration parameter default values
977725ccfdSJing Huang  */
987725ccfdSJing Huang #define BFAD_LUN_QUEUE_DEPTH	32
997725ccfdSJing Huang #define BFAD_IO_MAX_SGE		SG_ALL
10061e62e21SKrishna Gudipati #define BFAD_MIN_SECTORS	128 /* 64k   */
10161e62e21SKrishna Gudipati #define BFAD_MAX_SECTORS	0xFFFF  /* 32 MB */
1027725ccfdSJing Huang 
1037725ccfdSJing Huang #define bfad_isr_t irq_handler_t
1047725ccfdSJing Huang 
1057725ccfdSJing Huang #define MAX_MSIX_ENTRY 22
1067725ccfdSJing Huang 
1077725ccfdSJing Huang struct bfad_msix_s {
1087725ccfdSJing Huang 	struct bfad_s *bfad;
1097725ccfdSJing Huang 	struct msix_entry msix;
110a36c61f9SKrishna Gudipati 	char name[32];
111a36c61f9SKrishna Gudipati };
112a36c61f9SKrishna Gudipati 
113a36c61f9SKrishna Gudipati /*
114a36c61f9SKrishna Gudipati  * Only append to the enums defined here to avoid any versioning
115a36c61f9SKrishna Gudipati  * needed between trace utility and driver version
116a36c61f9SKrishna Gudipati  */
117a36c61f9SKrishna Gudipati enum {
118a36c61f9SKrishna Gudipati 	BFA_TRC_LDRV_BFAD		= 1,
119a36c61f9SKrishna Gudipati 	BFA_TRC_LDRV_IM			= 2,
120b85daafeSKrishna Gudipati 	BFA_TRC_LDRV_BSG		= 3,
1217725ccfdSJing Huang };
1227725ccfdSJing Huang 
1237725ccfdSJing Huang enum bfad_port_pvb_type {
1247725ccfdSJing Huang 	BFAD_PORT_PHYS_BASE = 0,
1257725ccfdSJing Huang 	BFAD_PORT_PHYS_VPORT = 1,
1267725ccfdSJing Huang 	BFAD_PORT_VF_BASE = 2,
1277725ccfdSJing Huang 	BFAD_PORT_VF_VPORT = 3,
1287725ccfdSJing Huang };
1297725ccfdSJing Huang 
1307725ccfdSJing Huang /*
1317725ccfdSJing Huang  * PORT data structure
1327725ccfdSJing Huang  */
1337725ccfdSJing Huang struct bfad_port_s {
1347725ccfdSJing Huang 	struct list_head list_entry;
1357725ccfdSJing Huang 	struct bfad_s	*bfad;
136a36c61f9SKrishna Gudipati 	struct bfa_fcs_lport_s *fcs_port;
1377725ccfdSJing Huang 	u32	roles;
1387725ccfdSJing Huang 	s32		flags;
1397725ccfdSJing Huang 	u32	supported_fc4s;
1407725ccfdSJing Huang 	enum bfad_port_pvb_type pvb_type;
1417725ccfdSJing Huang 	struct bfad_im_port_s *im_port;	/* IM specific data */
142ab2a9ba1SJing Huang 	/* port debugfs specific data */
143ab2a9ba1SJing Huang 	struct dentry *port_debugfs_root;
1447725ccfdSJing Huang };
1457725ccfdSJing Huang 
1467725ccfdSJing Huang /*
1477725ccfdSJing Huang  * VPORT data structure
1487725ccfdSJing Huang  */
1497725ccfdSJing Huang struct bfad_vport_s {
1507725ccfdSJing Huang 	struct bfad_port_s     drv_port;
1517725ccfdSJing Huang 	struct bfa_fcs_vport_s fcs_vport;
1527725ccfdSJing Huang 	struct completion *comp_del;
153d9883548SJing Huang 	struct list_head list_entry;
1547725ccfdSJing Huang };
1557725ccfdSJing Huang 
1567725ccfdSJing Huang /*
1577725ccfdSJing Huang  * VF data structure
1587725ccfdSJing Huang  */
1597725ccfdSJing Huang struct bfad_vf_s {
1607725ccfdSJing Huang 	bfa_fcs_vf_t    fcs_vf;
1617725ccfdSJing Huang 	struct bfad_port_s    base_port;	/* base port for vf */
1627725ccfdSJing Huang 	struct bfad_s   *bfad;
1637725ccfdSJing Huang };
1647725ccfdSJing Huang 
1657725ccfdSJing Huang struct bfad_cfg_param_s {
1667725ccfdSJing Huang 	u32	rport_del_timeout;
1677725ccfdSJing Huang 	u32	ioc_queue_depth;
1687725ccfdSJing Huang 	u32	lun_queue_depth;
1697725ccfdSJing Huang 	u32	io_max_sge;
1707725ccfdSJing Huang 	u32	binding_method;
1717725ccfdSJing Huang };
1727725ccfdSJing Huang 
173a36c61f9SKrishna Gudipati union bfad_tmp_buf {
174a36c61f9SKrishna Gudipati 	/* From struct bfa_adapter_attr_s */
175a36c61f9SKrishna Gudipati 	char		manufacturer[BFA_ADAPTER_MFG_NAME_LEN];
176a36c61f9SKrishna Gudipati 	char		serial_num[BFA_ADAPTER_SERIAL_NUM_LEN];
177a36c61f9SKrishna Gudipati 	char		model[BFA_ADAPTER_MODEL_NAME_LEN];
178a36c61f9SKrishna Gudipati 	char		fw_ver[BFA_VERSION_LEN];
179a36c61f9SKrishna Gudipati 	char		optrom_ver[BFA_VERSION_LEN];
180a36c61f9SKrishna Gudipati 
181a36c61f9SKrishna Gudipati 	/* From struct bfa_ioc_pci_attr_s */
182a36c61f9SKrishna Gudipati 	u8		chip_rev[BFA_IOC_CHIP_REV_LEN];  /*  chip revision */
183a36c61f9SKrishna Gudipati 
184a36c61f9SKrishna Gudipati 	wwn_t		wwn[BFA_FCS_MAX_LPORTS];
185a36c61f9SKrishna Gudipati };
186a36c61f9SKrishna Gudipati 
1877725ccfdSJing Huang /*
1887725ccfdSJing Huang  * BFAD (PCI function) data structure
1897725ccfdSJing Huang  */
1907725ccfdSJing Huang struct bfad_s {
191a36c61f9SKrishna Gudipati 	bfa_sm_t	sm;	/* state machine */
1927725ccfdSJing Huang 	struct list_head list_entry;
1937725ccfdSJing Huang 	struct bfa_s	bfa;
1947725ccfdSJing Huang 	struct bfa_fcs_s bfa_fcs;
1957725ccfdSJing Huang 	struct pci_dev *pcidev;
1967725ccfdSJing Huang 	const char *pci_name;
1977725ccfdSJing Huang 	struct bfa_pcidev_s hal_pcidev;
1987725ccfdSJing Huang 	struct bfa_ioc_pci_attr_s pci_attr;
1997725ccfdSJing Huang 	void __iomem   *pci_bar0_kva;
20011189208SKrishna Gudipati 	void __iomem   *pci_bar2_kva;
2017725ccfdSJing Huang 	struct completion comp;
2027725ccfdSJing Huang 	struct completion suspend;
20360138066SKrishna Gudipati 	struct completion enable_comp;
2047725ccfdSJing Huang 	struct completion disable_comp;
2057725ccfdSJing Huang 	bfa_boolean_t   disable_active;
2067725ccfdSJing Huang 	struct bfad_port_s     pport;	/* physical port of the BFAD */
2077725ccfdSJing Huang 	struct bfa_meminfo_s meminfo;
2087725ccfdSJing Huang 	struct bfa_iocfc_cfg_s   ioc_cfg;
2097725ccfdSJing Huang 	u32	inst_no;	/* BFAD instance number */
2107725ccfdSJing Huang 	u32	bfad_flags;
2117725ccfdSJing Huang 	spinlock_t      bfad_lock;
212e6714324SKrishna Gudipati 	struct task_struct *bfad_tsk;
2137725ccfdSJing Huang 	struct bfad_cfg_param_s cfg_data;
2147725ccfdSJing Huang 	struct bfad_msix_s msix_tab[MAX_MSIX_ENTRY];
2157725ccfdSJing Huang 	int		nvec;
2167725ccfdSJing Huang 	char	adapter_name[BFA_ADAPTER_SYM_NAME_LEN];
2177725ccfdSJing Huang 	char	port_name[BFA_ADAPTER_SYM_NAME_LEN];
2187725ccfdSJing Huang 	struct timer_list hal_tmo;
2197725ccfdSJing Huang 	unsigned long   hs_start;
2207725ccfdSJing Huang 	struct bfad_im_s *im;		/* IM specific data */
2217725ccfdSJing Huang 	struct bfa_trc_mod_s  *trcmod;
2227725ccfdSJing Huang 	struct bfa_plog_s      plog_buf;
2237725ccfdSJing Huang 	int		ref_count;
224a36c61f9SKrishna Gudipati 	union bfad_tmp_buf tmp_buf;
2257725ccfdSJing Huang 	struct fc_host_statistics link_stats;
226a36c61f9SKrishna Gudipati 	struct list_head pbc_vport_list;
227ab2a9ba1SJing Huang 	/* debugfs specific data */
228ab2a9ba1SJing Huang 	char *regdata;
229ab2a9ba1SJing Huang 	u32 reglen;
230ab2a9ba1SJing Huang 	struct dentry *bfad_dentry_files[5];
2317826f304SKrishna Gudipati 	struct list_head	free_aen_q;
2327826f304SKrishna Gudipati 	struct list_head	active_aen_q;
2337826f304SKrishna Gudipati 	struct bfa_aen_entry_s	aen_list[BFA_AEN_MAX_ENTRY];
2347826f304SKrishna Gudipati 	spinlock_t		bfad_aen_spinlock;
2355b7db7afSKrishna Gudipati 	struct list_head	vport_list;
236d9883548SJing Huang };
237d9883548SJing Huang 
238a36c61f9SKrishna Gudipati /* BFAD state machine events */
239a36c61f9SKrishna Gudipati enum bfad_sm_event {
240a36c61f9SKrishna Gudipati 	BFAD_E_CREATE			= 1,
241a36c61f9SKrishna Gudipati 	BFAD_E_KTHREAD_CREATE_FAILED	= 2,
242a36c61f9SKrishna Gudipati 	BFAD_E_INIT			= 3,
243a36c61f9SKrishna Gudipati 	BFAD_E_INIT_SUCCESS		= 4,
244da3e0beeSVijaya Mohan Guvva 	BFAD_E_HAL_INIT_FAILED		= 5,
245da3e0beeSVijaya Mohan Guvva 	BFAD_E_INIT_FAILED		= 6,
246a36c61f9SKrishna Gudipati 	BFAD_E_FCS_EXIT_COMP		= 7,
247a36c61f9SKrishna Gudipati 	BFAD_E_EXIT_COMP		= 8,
248a36c61f9SKrishna Gudipati 	BFAD_E_STOP			= 9
2497725ccfdSJing Huang };
2507725ccfdSJing Huang 
2517725ccfdSJing Huang /*
2527725ccfdSJing Huang  * RPORT data structure
2537725ccfdSJing Huang  */
2547725ccfdSJing Huang struct bfad_rport_s {
2557725ccfdSJing Huang 	struct bfa_fcs_rport_s fcs_rport;
2567725ccfdSJing Huang };
2577725ccfdSJing Huang 
2587725ccfdSJing Huang struct bfad_buf_info {
2597725ccfdSJing Huang 	void		*virt;
2607725ccfdSJing Huang 	dma_addr_t      phys;
2617725ccfdSJing Huang 	u32	size;
2627725ccfdSJing Huang };
2637725ccfdSJing Huang 
2647725ccfdSJing Huang struct bfad_fcxp {
2657725ccfdSJing Huang 	struct bfad_port_s    *port;
2667725ccfdSJing Huang 	struct bfa_rport_s *bfa_rport;
2677725ccfdSJing Huang 	bfa_status_t    req_status;
2687725ccfdSJing Huang 	u16	tag;
2697725ccfdSJing Huang 	u16	rsp_len;
2707725ccfdSJing Huang 	u16	rsp_maxlen;
2717725ccfdSJing Huang 	u8		use_ireqbuf;
2727725ccfdSJing Huang 	u8		use_irspbuf;
2737725ccfdSJing Huang 	u32	num_req_sgles;
2747725ccfdSJing Huang 	u32	num_rsp_sgles;
2757725ccfdSJing Huang 	struct fchs_s	fchs;
2767725ccfdSJing Huang 	void		*reqbuf_info;
2777725ccfdSJing Huang 	void		*rspbuf_info;
2787725ccfdSJing Huang 	struct bfa_sge_s  *req_sge;
2797725ccfdSJing Huang 	struct bfa_sge_s  *rsp_sge;
2807725ccfdSJing Huang 	fcxp_send_cb_t  send_cbfn;
2817725ccfdSJing Huang 	void		*send_cbarg;
2827725ccfdSJing Huang 	void		*bfa_fcxp;
2837725ccfdSJing Huang 	struct completion comp;
2847725ccfdSJing Huang };
2857725ccfdSJing Huang 
2867725ccfdSJing Huang struct bfad_hal_comp {
2877725ccfdSJing Huang 	bfa_status_t    status;
2887725ccfdSJing Huang 	struct completion comp;
2897725ccfdSJing Huang };
2907725ccfdSJing Huang 
291f16a1750SMaggie Zhang #define BFA_LOG(level, bfad, mask, fmt, arg...)				\
292a36c61f9SKrishna Gudipati do {									\
293f16a1750SMaggie Zhang 	if (((mask) == 4) || (level[1] <= '4'))				\
294f16a1750SMaggie Zhang 		dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg);	\
295a36c61f9SKrishna Gudipati } while (0)
296a36c61f9SKrishna Gudipati 
2977725ccfdSJing Huang bfa_status_t	bfad_vport_create(struct bfad_s *bfad, u16 vf_id,
298a36c61f9SKrishna Gudipati 				  struct bfa_lport_cfg_s *port_cfg,
299a36c61f9SKrishna Gudipati 				  struct device *dev);
3007725ccfdSJing Huang bfa_status_t	bfad_vf_create(struct bfad_s *bfad, u16 vf_id,
301a36c61f9SKrishna Gudipati 			       struct bfa_lport_cfg_s *port_cfg);
302a36c61f9SKrishna Gudipati bfa_status_t	bfad_cfg_pport(struct bfad_s *bfad, enum bfa_lport_role role);
3037725ccfdSJing Huang bfa_status_t	bfad_drv_init(struct bfad_s *bfad);
304e6714324SKrishna Gudipati bfa_status_t	bfad_start_ops(struct bfad_s *bfad);
3057725ccfdSJing Huang void		bfad_drv_start(struct bfad_s *bfad);
3067725ccfdSJing Huang void		bfad_uncfg_pport(struct bfad_s *bfad);
307a36c61f9SKrishna Gudipati void		bfad_stop(struct bfad_s *bfad);
308a36c61f9SKrishna Gudipati void		bfad_fcs_stop(struct bfad_s *bfad);
3097725ccfdSJing Huang void		bfad_remove_intr(struct bfad_s *bfad);
3107725ccfdSJing Huang void		bfad_hal_mem_release(struct bfad_s *bfad);
3117725ccfdSJing Huang void		bfad_hcb_comp(void *arg, bfa_status_t status);
3127725ccfdSJing Huang 
3137725ccfdSJing Huang int		bfad_setup_intr(struct bfad_s *bfad);
3147725ccfdSJing Huang void		bfad_remove_intr(struct bfad_s *bfad);
3157725ccfdSJing Huang void		bfad_update_hal_cfg(struct bfa_iocfc_cfg_s *bfa_cfg);
3167725ccfdSJing Huang bfa_status_t	bfad_hal_mem_alloc(struct bfad_s *bfad);
3177725ccfdSJing Huang void		bfad_bfa_tmo(unsigned long data);
3187725ccfdSJing Huang void		bfad_init_timer(struct bfad_s *bfad);
3197725ccfdSJing Huang int		bfad_pci_init(struct pci_dev *pdev, struct bfad_s *bfad);
3207725ccfdSJing Huang void		bfad_pci_uninit(struct pci_dev *pdev, struct bfad_s *bfad);
3217725ccfdSJing Huang void		bfad_drv_uninit(struct bfad_s *bfad);
322e6714324SKrishna Gudipati int		bfad_worker(void *ptr);
323ab2a9ba1SJing Huang void		bfad_debugfs_init(struct bfad_port_s *port);
324ab2a9ba1SJing Huang void		bfad_debugfs_exit(struct bfad_port_s *port);
325e6714324SKrishna Gudipati 
3267725ccfdSJing Huang void bfad_pci_remove(struct pci_dev *pdev);
3277725ccfdSJing Huang int bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid);
328f16a1750SMaggie Zhang void bfad_rport_online_wait(struct bfad_s *bfad);
329f16a1750SMaggie Zhang int bfad_get_linkup_delay(struct bfad_s *bfad);
3307725ccfdSJing Huang int bfad_install_msix_handler(struct bfad_s *bfad);
3317725ccfdSJing Huang 
3327725ccfdSJing Huang extern struct idr bfad_im_port_index;
333a36c61f9SKrishna Gudipati extern struct pci_device_id bfad_id_table[];
3347725ccfdSJing Huang extern struct list_head bfad_list;
335a36c61f9SKrishna Gudipati extern char	*os_name;
336a36c61f9SKrishna Gudipati extern char	*os_patch;
337a36c61f9SKrishna Gudipati extern char	*host_name;
338a36c61f9SKrishna Gudipati extern int	num_rports;
339a36c61f9SKrishna Gudipati extern int	num_ios;
340a36c61f9SKrishna Gudipati extern int	num_tms;
341a36c61f9SKrishna Gudipati extern int	num_fcxps;
342a36c61f9SKrishna Gudipati extern int	num_ufbufs;
343a36c61f9SKrishna Gudipati extern int	reqq_size;
344a36c61f9SKrishna Gudipati extern int	rspq_size;
345a36c61f9SKrishna Gudipati extern int	num_sgpgs;
346a36c61f9SKrishna Gudipati extern int      rport_del_timeout;
3477725ccfdSJing Huang extern int      bfa_lun_queue_depth;
348a36c61f9SKrishna Gudipati extern int      bfa_io_max_sge;
34988166242SJing Huang extern int      bfa_log_level;
350a36c61f9SKrishna Gudipati extern int      ioc_auto_recover;
3517725ccfdSJing Huang extern int      bfa_linkup_delay;
352a36c61f9SKrishna Gudipati extern int      msix_disable_cb;
353a36c61f9SKrishna Gudipati extern int      msix_disable_ct;
354a36c61f9SKrishna Gudipati extern int      fdmi_enable;
355a36c61f9SKrishna Gudipati extern int      supported_fc4s;
356a36c61f9SKrishna Gudipati extern int	pcie_max_read_reqsz;
35761e62e21SKrishna Gudipati extern int	max_xfer_size;
358ab2a9ba1SJing Huang extern int bfa_debugfs_enable;
35942b426ecSJing Huang extern struct mutex bfad_mutex;
3607725ccfdSJing Huang 
3617725ccfdSJing Huang #endif /* __BFAD_DRV_H__ */
362