diff options
Diffstat (limited to 'drivers/scsi/bfa/bfad_drv.h')
-rw-r--r-- | drivers/scsi/bfa/bfad_drv.h | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/drivers/scsi/bfa/bfad_drv.h b/drivers/scsi/bfa/bfad_drv.h index d5ce2349ac59..7f9ea90254cd 100644 --- a/drivers/scsi/bfa/bfad_drv.h +++ b/drivers/scsi/bfa/bfad_drv.h | |||
@@ -26,7 +26,23 @@ | |||
26 | #ifndef __BFAD_DRV_H__ | 26 | #ifndef __BFAD_DRV_H__ |
27 | #define __BFAD_DRV_H__ | 27 | #define __BFAD_DRV_H__ |
28 | 28 | ||
29 | #include "bfa_os_inc.h" | 29 | #include <linux/types.h> |
30 | #include <linux/version.h> | ||
31 | #include <linux/pci.h> | ||
32 | #include <linux/dma-mapping.h> | ||
33 | #include <linux/idr.h> | ||
34 | #include <linux/interrupt.h> | ||
35 | #include <linux/cdev.h> | ||
36 | #include <linux/fs.h> | ||
37 | #include <linux/delay.h> | ||
38 | #include <linux/vmalloc.h> | ||
39 | #include <linux/workqueue.h> | ||
40 | #include <linux/bitops.h> | ||
41 | #include <scsi/scsi.h> | ||
42 | #include <scsi/scsi_host.h> | ||
43 | #include <scsi/scsi_tcq.h> | ||
44 | #include <scsi/scsi_transport_fc.h> | ||
45 | #include <scsi/scsi_transport.h> | ||
30 | 46 | ||
31 | #include "bfa_modules.h" | 47 | #include "bfa_modules.h" |
32 | #include "bfa_fcs.h" | 48 | #include "bfa_fcs.h" |
@@ -39,7 +55,7 @@ | |||
39 | #ifdef BFA_DRIVER_VERSION | 55 | #ifdef BFA_DRIVER_VERSION |
40 | #define BFAD_DRIVER_VERSION BFA_DRIVER_VERSION | 56 | #define BFAD_DRIVER_VERSION BFA_DRIVER_VERSION |
41 | #else | 57 | #else |
42 | #define BFAD_DRIVER_VERSION "2.3.2.0" | 58 | #define BFAD_DRIVER_VERSION "2.3.2.3" |
43 | #endif | 59 | #endif |
44 | 60 | ||
45 | #define BFAD_PROTO_NAME FCPI_NAME | 61 | #define BFAD_PROTO_NAME FCPI_NAME |
@@ -263,28 +279,21 @@ struct bfad_hal_comp { | |||
263 | */ | 279 | */ |
264 | #define nextLowerInt(x) \ | 280 | #define nextLowerInt(x) \ |
265 | do { \ | 281 | do { \ |
266 | int i; \ | 282 | int __i; \ |
267 | (*x)--; \ | 283 | (*x)--; \ |
268 | for (i = 1; i < (sizeof(int)*8); i <<= 1) \ | 284 | for (__i = 1; __i < (sizeof(int)*8); __i <<= 1) \ |
269 | (*x) = (*x) | (*x) >> i; \ | 285 | (*x) = (*x) | (*x) >> __i; \ |
270 | (*x)++; \ | 286 | (*x)++; \ |
271 | (*x) = (*x) >> 1; \ | 287 | (*x) = (*x) >> 1; \ |
272 | } while (0) | 288 | } while (0) |
273 | 289 | ||
274 | 290 | ||
275 | #define list_remove_head(list, entry, type, member) \ | 291 | #define BFA_LOG(level, bfad, mask, fmt, arg...) \ |
276 | do { \ | 292 | do { \ |
277 | entry = NULL; \ | 293 | if (((mask) == 4) || (level[1] <= '4')) \ |
278 | if (!list_empty(list)) { \ | 294 | dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \ |
279 | entry = list_entry((list)->next, type, member); \ | ||
280 | list_del_init(&entry->member); \ | ||
281 | } \ | ||
282 | } while (0) | 295 | } while (0) |
283 | 296 | ||
284 | #define list_get_first(list, type, member) \ | ||
285 | ((list_empty(list)) ? NULL : \ | ||
286 | list_entry((list)->next, type, member)) | ||
287 | |||
288 | bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id, | 297 | bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id, |
289 | struct bfa_lport_cfg_s *port_cfg, | 298 | struct bfa_lport_cfg_s *port_cfg, |
290 | struct device *dev); | 299 | struct device *dev); |
@@ -316,8 +325,8 @@ void bfad_debugfs_exit(struct bfad_port_s *port); | |||
316 | 325 | ||
317 | void bfad_pci_remove(struct pci_dev *pdev); | 326 | void bfad_pci_remove(struct pci_dev *pdev); |
318 | int bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid); | 327 | int bfad_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid); |
319 | void bfad_os_rport_online_wait(struct bfad_s *bfad); | 328 | void bfad_rport_online_wait(struct bfad_s *bfad); |
320 | int bfad_os_get_linkup_delay(struct bfad_s *bfad); | 329 | int bfad_get_linkup_delay(struct bfad_s *bfad); |
321 | int bfad_install_msix_handler(struct bfad_s *bfad); | 330 | int bfad_install_msix_handler(struct bfad_s *bfad); |
322 | 331 | ||
323 | extern struct idr bfad_im_port_index; | 332 | extern struct idr bfad_im_port_index; |