Lines Matching +full:0 +full:x04080000

33 #define PMCRAID_FW_VERSION_1		0x002
38 /* Bit definitions as per firmware, bit position [0][1][2].....[31] */
44 #define PCI_VENDOR_ID_PMC 0x11F8
45 #define PCI_DEVICE_ID_PMC_MAXRAID 0x5220
92 #define PMCRAID_IOA_BUS_ID 0xfe
93 #define PMCRAID_IOA_TARGET_ID 0xff
94 #define PMCRAID_IOA_LUN_ID 0xff
95 #define PMCRAID_VSET_BUS_ID 0x1
96 #define PMCRAID_VSET_LUN_ID 0x0
97 #define PMCRAID_PHYS_BUS_ID 0x0
98 #define PMCRAID_VIRTUAL_ENCL_BUS_ID 0x8
99 #define PMCRAID_MAX_VSET_TARGETS 0x7F
112 #define PMCRAID_QUERY_RESOURCE_STATE 0xC2
113 #define PMCRAID_RESET_DEVICE 0xC3
115 #define ENABLE_RESET_MODIFIER 0x80
116 #define RESET_DEVICE_LUN 0x40
117 #define RESET_DEVICE_TARGET 0x20
118 #define RESET_DEVICE_BUS 0x10
120 #define PMCRAID_IDENTIFY_HRRQ 0xC4
121 #define PMCRAID_QUERY_IOA_CONFIG 0xC5
122 #define PMCRAID_QUERY_CMD_STATUS 0xCB
123 #define PMCRAID_ABORT_CMD 0xC7
128 #define PMCRAID_CANCEL_ALL_REQUESTS 0xCE
129 #define PMCRAID_SYNC_COMPLETE_AFTER_CANCEL PMC_BIT8(0)
132 #define PMCRAID_HOST_CONTROLLED_ASYNC 0xCF
133 #define PMCRAID_HCAM_CODE_CONFIG_CHANGE 0x01
134 #define PMCRAID_HCAM_CODE_LOG_DATA 0x02
137 #define PMCRAID_IOA_SHUTDOWN 0xF7
138 #define PMCRAID_SHUTDOWN_NORMAL 0x00
139 #define PMCRAID_SHUTDOWN_PREPARE_FOR_NORMAL 0x40
140 #define PMCRAID_SHUTDOWN_NONE 0x100
141 #define PMCRAID_SHUTDOWN_ABBREV 0x80
146 #define PMCRAID_SET_SUPPORTED_DEVICES 0xFB
147 #define ALL_DEVICES_SUPPORTED PMC_BIT8(0)
150 #define PMCRAID_WR_BUF_DOWNLOAD_AND_SAVE 0x05
153 #define PMCRAID_IOASC_SENSE_MASK 0xFFFFFF00
155 #define PMCRAID_IOASC_SENSE_CODE(ioasc) (((ioasc) & 0x00ff0000) >> 16)
156 #define PMCRAID_IOASC_SENSE_QUAL(ioasc) (((ioasc) & 0x0000ff00) >> 8)
157 #define PMCRAID_IOASC_SENSE_STATUS(ioasc) ((ioasc) & 0x000000ff)
159 #define PMCRAID_IOASC_GOOD_COMPLETION 0x00000000
160 #define PMCRAID_IOASC_GC_IOARCB_NOTFOUND 0x005A0000
161 #define PMCRAID_IOASC_NR_INIT_CMD_REQUIRED 0x02040200
162 #define PMCRAID_IOASC_NR_IOA_RESET_REQUIRED 0x02048000
163 #define PMCRAID_IOASC_NR_SYNC_REQUIRED 0x023F0000
164 #define PMCRAID_IOASC_ME_READ_ERROR_NO_REALLOC 0x03110C00
165 #define PMCRAID_IOASC_HW_CANNOT_COMMUNICATE 0x04050000
166 #define PMCRAID_IOASC_HW_DEVICE_TIMEOUT 0x04080100
167 #define PMCRAID_IOASC_HW_DEVICE_BUS_STATUS_ERROR 0x04448500
168 #define PMCRAID_IOASC_HW_IOA_RESET_REQUIRED 0x04448600
169 #define PMCRAID_IOASC_IR_INVALID_RESOURCE_HANDLE 0x05250000
170 #define PMCRAID_IOASC_AC_TERMINATED_BY_HOST 0x0B5A0000
171 #define PMCRAID_IOASC_UA_BUS_WAS_RESET 0x06290000
172 #define PMCRAID_IOASC_TIME_STAMP_OUT_OF_SYNC 0x06908B00
173 #define PMCRAID_IOASC_UA_BUS_WAS_RESET_BY_OTHER 0x06298000
176 #define PMCRAID_IOASC_IOA_WAS_RESET 0x10000001
177 #define PMCRAID_IOASC_PCI_ACCESS_ERROR 0x10000002
206 #define IOADL_FLAGS_CHAINED PMC_BIT8(0)
250 #define PMCRAID_IOA_RES_HANDLE 0xffffffff
251 #define PMCRAID_INVALID_RES_HANDLE 0
254 #define REQ_TYPE_SCSI 0x00
255 #define REQ_TYPE_IOACMD 0x01
256 #define REQ_TYPE_HCAM 0x02
259 #define TRANSFER_DIR_WRITE PMC_BIT8(0)
266 #define DELAY_AFTER_RESET PMC_BIT8(0)
267 #define TASK_TAG_SIMPLE 0x10
268 #define TASK_TAG_ORDERED 0x20
269 #define TASK_TAG_QUEUE_HEAD 0x30
272 #define HRRQ_TOGGLE_BIT 0x01
273 #define HRRQ_RESPONSE_BIT 0x02
304 #define PMCRAID_DRIVER_ILID 0xffffffff
327 #define RES_TYPE_AF_DASD 0x00
328 #define RES_TYPE_GSCSI 0x01
329 #define RES_TYPE_VSET 0x02
330 #define RES_TYPE_IOA_FP 0xFF
338 #define RES_TYPE_VENCLOSURE 0x8
341 #define MULTIPATH_RESOURCE PMC_BIT32(0)
344 #define IMPORT_MODE_MANUAL PMC_BIT8(0)
347 #define RES_HANDLE_IOA 0xFFFFFFFF
348 #define RES_HANDLE_NONE 0x00000000
351 #define RES_ADDRESS_IOAFP 0xFEFFFFFF
352 #define RES_ADDRESS_INVALID 0xFFFFFFFF
355 #define RES_BUS(res_addr) (le32_to_cpu(res_addr) & 0xFF)
356 #define RES_TARGET(res_addr) ((le32_to_cpu(res_addr) >> 16) & 0xFF)
357 #define RES_LUN(res_addr) 0x0
375 #define MICROCODE_UPDATE_REQUIRED PMC_BIT32(0)
406 #define PMCRAID_AEN_GROUP 0x3
428 #define HOSTRCB_TYPE_CCN 0xE1
429 #define HOSTRCB_TYPE_LDN 0xE2
432 #define NOTIFICATION_TYPE_ENTRY_CHANGED 0x0
433 #define NOTIFICATION_TYPE_ENTRY_NEW 0x1
434 #define NOTIFICATION_TYPE_ENTRY_DELETED 0x2
435 #define NOTIFICATION_TYPE_STATE_CHANGE 0x3
436 #define NOTIFICATION_TYPE_ENTRY_STATECHANGED 0x4
437 #define NOTIFICATION_TYPE_ERROR_LOG 0x10
438 #define NOTIFICATION_TYPE_INFORMATION_LOG 0x11
440 #define HOSTRCB_NOTIFICATIONS_LOST PMC_BIT8(0)
443 #define HOSTRCB_INTERNAL_OP_ERROR PMC_BIT8(0)
447 #define HOSTRCB_OVERLAY_ID_08 0x08
448 #define HOSTRCB_OVERLAY_ID_09 0x09
449 #define HOSTRCB_OVERLAY_ID_11 0x11
450 #define HOSTRCB_OVERLAY_ID_12 0x12
451 #define HOSTRCB_OVERLAY_ID_13 0x13
452 #define HOSTRCB_OVERLAY_ID_14 0x14
453 #define HOSTRCB_OVERLAY_ID_16 0x16
454 #define HOSTRCB_OVERLAY_ID_17 0x17
455 #define HOSTRCB_OVERLAY_ID_20 0x20
456 #define HOSTRCB_OVERLAY_ID_FF 0xFF
478 #define INTRS_TRANSITION_TO_OPERATIONAL PMC_BIT32(0)
488 #define INTRS_OPERATIONAL_STATUS PMC_BIT32(0)
502 #define GLOBAL_INTERRUPT_MASK 0x5ULL
549 #define PMCRAID_SCSI_SET_TIMESTAMP 0xA4
550 #define PMCRAID_SCSI_SERVICE_ACTION 0x0F
635 #define PMC_DEVICE_EVENT_RESET_START 0x11000000
636 #define PMC_DEVICE_EVENT_RESET_SUCCESS 0x11000001
637 #define PMC_DEVICE_EVENT_RESET_FAILED 0x11000002
638 #define PMC_DEVICE_EVENT_SHUTDOWN_START 0x11000003
639 #define PMC_DEVICE_EVENT_SHUTDOWN_SUCCESS 0x11000004
640 #define PMC_DEVICE_EVENT_SHUTDOWN_FAILED 0x11000005
770 #define IOA_STATE_OPERATIONAL 0x0
771 #define IOA_STATE_UNKNOWN 0x1
772 #define IOA_STATE_DEAD 0x2
773 #define IOA_STATE_IN_SOFT_RESET 0x3
774 #define IOA_STATE_IN_HARD_RESET 0x4
775 #define IOA_STATE_IN_RESET_ALERT 0x5
776 #define IOA_STATE_IN_BRINGDOWN 0x6
777 #define IOA_STATE_IN_BRINGUP 0x7
786 #define SHUTDOWN_NONE 0x0
787 #define SHUTDOWN_NORMAL 0x1
788 #define SHUTDOWN_ABBREV 0x2
806 #define RES_CHANGE_ADD 0x1 /* add this to mid-layer */
807 #define RES_CHANGE_DEL 0x2 /* remove this from mid-layer */
834 #define IOASC_LOG_LEVEL_NONE 0x0 /* no logging */
835 #define IOASC_LOG_LEVEL_MUST 0x1 /* must log: all high-severity errors */
836 #define IOASC_LOG_LEVEL_HARD 0x2 /* optional – low severity errors */
842 {0x01180600, IOASC_LOG_LEVEL_HARD,
844 {0x015D0000, IOASC_LOG_LEVEL_HARD,
846 {0x015D9200, IOASC_LOG_LEVEL_HARD,
848 {0x015D9200, IOASC_LOG_LEVEL_HARD,
850 {0x02048000, IOASC_LOG_LEVEL_HARD,
852 {0x02408500, IOASC_LOG_LEVEL_HARD,
854 {0x03110B00, IOASC_LOG_LEVEL_HARD,
856 {0x03110C00, IOASC_LOG_LEVEL_MUST,
858 {0x03310000, IOASC_LOG_LEVEL_HARD,
860 {0x04050000, IOASC_LOG_LEVEL_HARD,
862 {0x04080000, IOASC_LOG_LEVEL_MUST,
864 {0x04088000, IOASC_LOG_LEVEL_MUST,
866 {0x04118000, IOASC_LOG_LEVEL_HARD,
868 {0x04118100, IOASC_LOG_LEVEL_HARD,
870 {0x04118200, IOASC_LOG_LEVEL_HARD,
872 {0x04320000, IOASC_LOG_LEVEL_HARD,
874 {0x04330000, IOASC_LOG_LEVEL_HARD,
876 {0x04330000, IOASC_LOG_LEVEL_HARD,
878 {0x04418000, IOASC_LOG_LEVEL_MUST,
880 {0x04440000, IOASC_LOG_LEVEL_HARD,
882 {0x04448200, IOASC_LOG_LEVEL_MUST,
884 {0x04448300, IOASC_LOG_LEVEL_HARD,
886 {0x04448400, IOASC_LOG_LEVEL_HARD,
888 {0x04448600, IOASC_LOG_LEVEL_HARD,
890 {0x04449200, IOASC_LOG_LEVEL_HARD,
892 {0x0444A000, IOASC_LOG_LEVEL_HARD,
894 {0x0444A200, IOASC_LOG_LEVEL_HARD,
896 {0x0444A300, IOASC_LOG_LEVEL_HARD,
898 {0x044A0000, IOASC_LOG_LEVEL_HARD,
900 {0x04670400, IOASC_LOG_LEVEL_HARD,
902 {0x04678000, IOASC_LOG_LEVEL_HARD,
904 {0x04678100, IOASC_LOG_LEVEL_HARD,
906 {0x04678200, IOASC_LOG_LEVEL_HARD,
908 {0x04678300, IOASC_LOG_LEVEL_HARD,
910 {0x04679000, IOASC_LOG_LEVEL_HARD,
912 {0x064C8000, IOASC_LOG_LEVEL_HARD,
914 {0x06670100, IOASC_LOG_LEVEL_HARD,
916 {0x06670600, IOASC_LOG_LEVEL_HARD,
918 {0x06678000, IOASC_LOG_LEVEL_HARD,
920 {0x06678300, IOASC_LOG_LEVEL_HARD,
923 {0x06678400, IOASC_LOG_LEVEL_HARD,
926 {0x06678500, IOASC_LOG_LEVEL_HARD,
929 {0x06678600, IOASC_LOG_LEVEL_HARD,
931 {0x06679100, IOASC_LOG_LEVEL_HARD,
934 {0x06698200, IOASC_LOG_LEVEL_HARD,
936 {0x066B0200, IOASC_LOG_LEVEL_HARD,
938 {0x066B8200, IOASC_LOG_LEVEL_HARD,
940 {0x066B9200, IOASC_LOG_LEVEL_HARD,
942 {0x07270000, IOASC_LOG_LEVEL_HARD,
944 {0x07278000, IOASC_LOG_LEVEL_HARD,
946 {0x07278100, IOASC_LOG_LEVEL_HARD,
948 {0x07278400, IOASC_LOG_LEVEL_HARD,
950 {0x07278600, IOASC_LOG_LEVEL_HARD,
952 {0x07278700, IOASC_LOG_LEVEL_HARD,
954 {0x07278800, IOASC_LOG_LEVEL_HARD,
956 {0x07278900, IOASC_LOG_LEVEL_HARD,
958 {0x07278A00, IOASC_LOG_LEVEL_HARD,
960 {0x07278B00, IOASC_LOG_LEVEL_HARD,
962 {0x07278C00, IOASC_LOG_LEVEL_HARD,
964 {0x07278D00, IOASC_LOG_LEVEL_HARD,
966 {0x07279100, IOASC_LOG_LEVEL_HARD,
968 {0x07279200, IOASC_LOG_LEVEL_HARD,
970 {0x07279600, IOASC_LOG_LEVEL_HARD,
972 {0x07279700, IOASC_LOG_LEVEL_HARD,
974 {0x07279800, IOASC_LOG_LEVEL_HARD,
976 {0x07279900, IOASC_LOG_LEVEL_HARD,
978 {0x07279A00, IOASC_LOG_LEVEL_HARD,
991 #define SCSI_READ_CMD 0x1 /* any of SCSI READ commands */
992 #define SCSI_WRITE_CMD 0x2 /* any of SCSI WRITE commands */
994 ({ u8 op = opcode; u8 __type = 0;\
1005 (__type == SCSI_READ_CMD || __type == SCSI_WRITE_CMD) ? 1 : 0;\