aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfad_drv.h')
-rw-r--r--drivers/scsi/bfa/bfad_drv.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfad_drv.h b/drivers/scsi/bfa/bfad_drv.h
index 172c81e25c1..9fa801a5025 100644
--- a/drivers/scsi/bfa/bfad_drv.h
+++ b/drivers/scsi/bfa/bfad_drv.h
@@ -62,7 +62,9 @@
62#define BFAD_HAL_START_DONE 0x00000010 62#define BFAD_HAL_START_DONE 0x00000010
63#define BFAD_PORT_ONLINE 0x00000020 63#define BFAD_PORT_ONLINE 0x00000020
64#define BFAD_RPORT_ONLINE 0x00000040 64#define BFAD_RPORT_ONLINE 0x00000040
65 65#define BFAD_FCS_INIT_DONE 0x00000080
66#define BFAD_HAL_INIT_FAIL 0x00000100
67#define BFAD_FC4_PROBE_DONE 0x00000200
66#define BFAD_PORT_DELETE 0x00000001 68#define BFAD_PORT_DELETE 0x00000001
67 69
68/* 70/*
@@ -168,6 +170,7 @@ struct bfad_s {
168 u32 inst_no; /* BFAD instance number */ 170 u32 inst_no; /* BFAD instance number */
169 u32 bfad_flags; 171 u32 bfad_flags;
170 spinlock_t bfad_lock; 172 spinlock_t bfad_lock;
173 struct task_struct *bfad_tsk;
171 struct bfad_cfg_param_s cfg_data; 174 struct bfad_cfg_param_s cfg_data;
172 struct bfad_msix_s msix_tab[MAX_MSIX_ENTRY]; 175 struct bfad_msix_s msix_tab[MAX_MSIX_ENTRY];
173 int nvec; 176 int nvec;
@@ -258,6 +261,7 @@ bfa_status_t bfad_vf_create(struct bfad_s *bfad, u16 vf_id,
258 struct bfa_port_cfg_s *port_cfg); 261 struct bfa_port_cfg_s *port_cfg);
259bfa_status_t bfad_cfg_pport(struct bfad_s *bfad, enum bfa_port_role role); 262bfa_status_t bfad_cfg_pport(struct bfad_s *bfad, enum bfa_port_role role);
260bfa_status_t bfad_drv_init(struct bfad_s *bfad); 263bfa_status_t bfad_drv_init(struct bfad_s *bfad);
264bfa_status_t bfad_start_ops(struct bfad_s *bfad);
261void bfad_drv_start(struct bfad_s *bfad); 265void bfad_drv_start(struct bfad_s *bfad);
262void bfad_uncfg_pport(struct bfad_s *bfad); 266void bfad_uncfg_pport(struct bfad_s *bfad);
263void bfad_drv_stop(struct bfad_s *bfad); 267void bfad_drv_stop(struct bfad_s *bfad);
@@ -280,6 +284,12 @@ void bfad_drv_log_level_set(struct bfad_s *bfad);
280bfa_status_t bfad_fc4_module_init(void); 284bfa_status_t bfad_fc4_module_init(void);
281void bfad_fc4_module_exit(void); 285void bfad_fc4_module_exit(void);
282 286
287bfa_status_t bfad_os_kthread_create(struct bfad_s *bfad);
288void bfad_os_kthread_stop(struct bfad_s *bfad);
289void bfad_os_kthread_wakeup(struct bfad_s *bfad);
290int bfad_os_kthread_should_stop(void);
291int bfad_worker (void *ptr);
292
283void bfad_pci_remove(struct pci_dev *pdev); 293void bfad_pci_remove(struct pci_dev *pdev);
284int bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid); 294int bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid);
285void bfad_os_rport_online_wait(struct bfad_s *bfad); 295void bfad_os_rport_online_wait(struct bfad_s *bfad);