Go to the documentation of this file.
27 #ifndef _AIC94XX_SAS_H_
28 #define _AIC94XX_SAS_H_
37 #define ASD_MAX_DDBS 128
41 #define DDB_TP_CONN_TYPE 0x81
50 #define DDB_TYPE_UNUSED 0xFF
51 #define DDB_TYPE_TARGET 0xFE
52 #define DDB_TYPE_INITIATOR 0xFD
53 #define DDB_TYPE_PM_PORT 0xFC
65 #define CONCURRENT_CONN_SUPP 0x04
66 #define OPEN_REQUIRED 0x01
90 #define ITNL_TIMEOUT_CONST 0x7D0
115 #define SATA_MULTIPORT 0x80
116 #define SUPPORTS_AFFIL 0x40
117 #define STP_AFFIL_POL 0x20
121 #define STP_CL_POL_NO_TX 0x00
122 #define STP_CL_POL_BTW_CMDS 0x01
208 #define PM_PORT_MASK 0xF0
209 #define PM_PORT_SET 0x02
267 #define ASD_SG_EL_DS_MASK 0x30
268 #define ASD_SG_EL_DS_OCM 0x10
269 #define ASD_SG_EL_DS_HM 0x00
270 #define ASD_SG_EL_LIST_MASK 0xC0
271 #define ASD_SG_EL_LIST_EOL 0x40
272 #define ASD_SG_EL_LIST_EOS 0x80
292 #define INITIATE_SSP_TASK 0x00
293 #define INITIATE_LONG_SSP_TASK 0x01
294 #define INITIATE_BIDIR_SSP_TASK 0x02
295 #define SCB_ABORT_TASK 0x03
296 #define INITIATE_SSP_TMF 0x04
297 #define SSP_TARG_GET_DATA 0x05
298 #define SSP_TARG_GET_DATA_GOOD 0x06
299 #define SSP_TARG_SEND_RESP 0x07
300 #define QUERY_SSP_TASK 0x08
301 #define INITIATE_ATA_TASK 0x09
302 #define INITIATE_ATAPI_TASK 0x0a
303 #define CONTROL_ATA_DEV 0x0b
304 #define INITIATE_SMP_TASK 0x0c
305 #define SMP_TARG_SEND_RESP 0x0f
309 #define SSP_TARG_SEND_DATA 0x40
310 #define SSP_TARG_SEND_DATA_GOOD 0x41
314 #define CONTROL_PHY 0x80
315 #define SEND_PRIMITIVE 0x81
316 #define INITIATE_LINK_ADM_TASK 0x82
320 #define EMPTY_SCB 0xc0
321 #define INITIATE_SEQ_ADM_TASK 0xc1
322 #define EST_ICL_TARG_WINDOW 0xc2
323 #define COPY_MEM 0xc3
324 #define CLEAR_NEXUS 0xc4
325 #define INITIATE_DDB_ADM_TASK 0xc6
326 #define ESTABLISH_NEXUS_ESCB 0xd0
347 #define EFB_MASK 0x80
348 #define TASK_PRIO_MASK 0x78
349 #define TASK_ATTR_MASK 0x07
382 #define DATA_DIR_NONE 0x00
383 #define DATA_DIR_IN 0x01
384 #define DATA_DIR_OUT 0x02
385 #define DATA_DIR_BYRECIPIENT 0x03
408 #define CSMI_TASK 0x40
409 #define DATA_XFER_MODE_DMA 0x10
410 #define ATA_Q_TYPE_MASK 0x08
411 #define ATA_Q_TYPE_UNTAGGED 0x00
412 #define ATA_Q_TYPE_NCQ 0x08
418 #define STP_AFFIL_POLICY 0x20
419 #define SET_AFFIL_POLICY 0x10
420 #define RET_PARTIAL_SGLIST 0x02
440 #define DISABLE_PHY 0x00
441 #define ENABLE_PHY 0x01
442 #define RELEASE_SPINUP_HOLD 0x02
443 #define ENABLE_PHY_NO_SAS_OOB 0x03
444 #define ENABLE_PHY_NO_SATA_OOB 0x04
445 #define PHY_NO_OP 0x05
446 #define EXECUTE_HARD_RESET 0x81
453 #define DEV_PRES_TIMER_OVERRIDE_ENABLE 0x01
454 #define DISABLE_PHY_IF_OOB_FAILS 0x02
477 #define ASD_EDBS_PER_SCB 7
479 #define ASD_EDB_SIZE (24+1024+4+16)
481 #define ELEMENT_NOT_VALID 0xC0
487 #define GET_LINK_ERROR_COUNT 0x00
488 #define RESET_LINK_ERROR_COUNT 0x01
489 #define ENABLE_NOTIFY_SPINUP_INTS 0x02
518 #define SUSPEND_DATA_TRANS 0x04
530 #define NEXUS_ADAPTER 0x00
531 #define NEXUS_PORT 0x01
532 #define NEXUS_I_T 0x02
533 #define NEXUS_I_T_L 0x03
534 #define NEXUS_TAG 0x04
535 #define NEXUS_TRANS_CX 0x05
536 #define NEXUS_SATA_TAG 0x06
537 #define NEXUS_T_L 0x07
539 #define NEXUS_T_TAG 0x09
543 #define SUSPEND_TX 0x80
544 #define RESUME_TX 0x40
569 #define OVERRIDE_ITNL_TIMER 8
586 #define XMTPSIZE_MASK 0xF0
587 #define XMTPSIZE_SINGLE 0x10
588 #define XMTPSIZE_REPEATED 0x20
589 #define XMTPSIZE_CONT 0x20
590 #define XMTPSIZE_TRIPLE 0x30
591 #define XMTPSIZE_REDUNDANT 0x60
592 #define XMTPSIZE_INF 0
594 #define XMTCONTEN 0x04
666 #define TC_NO_ERROR 0x00
667 #define TC_UNDERRUN 0x01
668 #define TC_OVERRUN 0x02
669 #define TF_OPEN_TO 0x03
670 #define TF_OPEN_REJECT 0x04
671 #define TI_BREAK 0x05
672 #define TI_PROTO_ERR 0x06
673 #define TC_SSP_RESP 0x07
674 #define TI_PHY_DOWN 0x08
675 #define TF_PHY_DOWN 0x09
676 #define TC_LINK_ADM_RESP 0x0a
678 #define TC_ATA_RESP 0x0c
679 #define TU_PHY_DOWN 0x0d
680 #define TU_BREAK 0x0e
681 #define TI_SATA_TO 0x0f
683 #define TC_CONTROL_PHY 0x11
684 #define TF_BREAK 0x12
685 #define TC_RESUME 0x13
686 #define TI_ACK_NAK_TO 0x14
687 #define TF_SMPRSP_TO 0x15
688 #define TF_SMP_XMIT_RCV_ERR 0x16
689 #define TC_PARTIAL_SG_LIST 0x17
690 #define TU_ACK_NAK_TO 0x18
691 #define TU_SATA_TO 0x19
692 #define TF_NAK_RECV 0x1a
693 #define TA_I_T_NEXUS_LOSS 0x1b
694 #define TC_ATA_R_ERR_RECV 0x1c
695 #define TF_TMF_NO_CTX 0x1d
696 #define TA_ON_REQ 0x1e
697 #define TF_TMF_NO_TAG 0x1f
698 #define TF_TMF_TAG_FREE 0x20
699 #define TF_TMF_TASK_DONE 0x21
700 #define TF_TMF_NO_CONN_HANDLE 0x22
701 #define TC_TASK_CLEARED 0x23
702 #define TI_SYNCS_RECV 0x24
703 #define TU_SYNCS_RECV 0x25
704 #define TF_IRTT_TO 0x26
705 #define TF_NO_SMP_CONN 0x27
706 #define TF_IU_SHORT 0x28
707 #define TF_DATA_OFFS_ERR 0x29
708 #define TF_INV_CONN_HANDLE 0x2a
709 #define TF_REQUESTED_N_PENDING 0x2b
715 #define ESCB_RECVD 0xC0
726 #define DL_TOGGLE_MASK 0x01
743 #define ASD_SCB_SIZE sizeof(struct scb)
744 #define ASD_DDB_SIZE sizeof(struct asd_ddb_ssp_smp_target_port)
749 #define ASD_NOTIFY_ENABLE_SPINUP 0x10
754 #define ASD_NOTIFY_TIMEOUT 2500
759 #define ASD_NOTIFY_DOWN_COUNT 0
762 #define ASD_DEV_PRESENT_TIMEOUT 0x2710
764 #define ASD_SATA_INTERLOCK_TIMEOUT 0
770 #define ASD_STP_SHUTDOWN_TIMEOUT 0x0
773 #define ASD_SRST_ASSERT_TIMEOUT 0x05
776 #define ASD_RCV_FIS_TIMEOUT 0x01D905C0
778 #define ASD_ONE_MILLISEC_TIMEOUT 0x03e8
781 #define ASD_TEN_MILLISEC_TIMEOUT 0x2710
782 #define ASD_COMINIT_TIMEOUT ASD_TEN_MILLISEC_TIMEOUT
785 #define ASD_SMP_RCV_TIMEOUT 0x000F4240