Go to the documentation of this file.
41 #ifndef _PM8001_SAS_H_
42 #define _PM8001_SAS_H_
44 #include <linux/kernel.h>
45 #include <linux/module.h>
48 #include <linux/types.h>
49 #include <linux/ctype.h>
51 #include <linux/pci.h>
60 #define DRV_NAME "pm8001"
61 #define DRV_VERSION "0.1.36"
62 #define PM8001_FAIL_LOGGING 0x01
63 #define PM8001_INIT_LOGGING 0x02
64 #define PM8001_DISC_LOGGING 0x04
65 #define PM8001_IO_LOGGING 0x08
66 #define PM8001_EH_LOGGING 0x10
67 #define PM8001_IOCTL_LOGGING 0x20
68 #define PM8001_MSG_LOGGING 0x40
69 #define pm8001_printk(format, arg...) printk(KERN_INFO "%s %d:" format,\
70 __func__, __LINE__, ## arg)
71 #define PM8001_CHECK_LOGGING(HBA, LEVEL, CMD) \
73 if (unlikely(HBA->logging_level & LEVEL)) \
79 #define PM8001_EH_DBG(HBA, CMD) \
80 PM8001_CHECK_LOGGING(HBA, PM8001_EH_LOGGING, CMD)
82 #define PM8001_INIT_DBG(HBA, CMD) \
83 PM8001_CHECK_LOGGING(HBA, PM8001_INIT_LOGGING, CMD)
85 #define PM8001_DISC_DBG(HBA, CMD) \
86 PM8001_CHECK_LOGGING(HBA, PM8001_DISC_LOGGING, CMD)
88 #define PM8001_IO_DBG(HBA, CMD) \
89 PM8001_CHECK_LOGGING(HBA, PM8001_IO_LOGGING, CMD)
91 #define PM8001_FAIL_DBG(HBA, CMD) \
92 PM8001_CHECK_LOGGING(HBA, PM8001_FAIL_LOGGING, CMD)
94 #define PM8001_IOCTL_DBG(HBA, CMD) \
95 PM8001_CHECK_LOGGING(HBA, PM8001_IOCTL_LOGGING, CMD)
97 #define PM8001_MSG_DBG(HBA, CMD) \
98 PM8001_CHECK_LOGGING(HBA, PM8001_MSG_LOGGING, CMD)
101 #define PM8001_USE_TASKLET
102 #define PM8001_USE_MSIX
103 #define PM8001_READ_VPD
106 #define DEV_IS_EXPANDER(type) ((type == EDGE_DEV) || (type == FANOUT_DEV))
108 #define PM8001_NAME_LENGTH 32
179 #define PM8001_CHIP_DISP (pm8001_ha->chip->dispatch)
377 #ifdef PM8001_USE_MSIX
381 #ifdef PM8001_USE_TASKLET
412 #define FLASH_UPDATE_COMPLETE_PENDING_REBOOT 0x00
413 #define FLASH_UPDATE_IN_PROGRESS 0x01
414 #define FLASH_UPDATE_HDR_ERR 0x02
415 #define FLASH_UPDATE_OFFSET_ERR 0x03
416 #define FLASH_UPDATE_CRC_ERR 0x04
417 #define FLASH_UPDATE_LENGTH_ERR 0x05
418 #define FLASH_UPDATE_HW_ERR 0x06
419 #define FLASH_UPDATE_DNLD_NOT_SUPPORTED 0x10
420 #define FLASH_UPDATE_DISABLED 0x11