2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of version 2 of the GNU General Public License as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
23 * The full GNU General Public License is included in this distribution
24 * in the file called LICENSE.GPL.
28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
29 * All rights reserved.
31 * Redistribution and use in source and binary forms, with or without
32 * modification, are permitted provided that the following conditions
35 * * Redistributions of source code must retain the above copyright
36 * notice, this list of conditions and the following disclaimer.
37 * * Redistributions in binary form must reproduce the above copyright
38 * notice, this list of conditions and the following disclaimer in
39 * the documentation and/or other materials provided with the
42 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
43 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
44 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
45 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
46 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
47 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
48 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
49 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
50 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
51 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
52 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 #ifndef _SCU_TASK_CONTEXT_H_
57 #define _SCU_TASK_CONTEXT_H_
62 * @brief This file contains the structures and constants for the SCU hardware
70 #include <dev/isci/scil/sci_types.h>
73 * @enum SCU_SSP_TASK_TYPE
75 * @brief This enumberation defines the various SSP task types the SCU
76 * hardware will accept.
78 * The definition for the various task types the SCU hardware will accept can
79 * be found in the DS specification.
83 SCU_TASK_TYPE_IOREAD, ///< IO READ direction or no direction
84 SCU_TASK_TYPE_IOWRITE, ///< IO Write direction
85 SCU_TASK_TYPE_SMP_REQUEST, ///< SMP Request type
86 SCU_TASK_TYPE_RESPONSE, ///< Driver generated response frame (targt mode)
87 SCU_TASK_TYPE_RAW_FRAME, ///< Raw frame request type
88 SCU_TASK_TYPE_PRIMITIVE ///< Request for a primitive to be transmitted
92 * @enum SCU_SATA_TASK_TYPE
94 * @brief This enumeration defines the various SATA task types the SCU
95 * hardware will accept.
97 * The definition for the various task types the SCU hardware will accept can
98 * be found in the DS specification.
102 SCU_TASK_TYPE_DMA_IN, ///< Read request
103 SCU_TASK_TYPE_FPDMAQ_READ, ///< NCQ read request
104 SCU_TASK_TYPE_PACKET_DMA_IN, ///< Packet read request
105 SCU_TASK_TYPE_SATA_RAW_FRAME, ///< Raw frame request
110 SCU_TASK_TYPE_DMA_OUT, ///< Write request
111 SCU_TASK_TYPE_FPDMAQ_WRITE, ///< NCQ write Request
112 SCU_TASK_TYPE_PACKET_DMA_OUT ///< Packet write request
113 } SCU_SATA_TASK_TYPE;
117 * @name SCU_CONTEXT_TYPE
120 #define SCU_TASK_CONTEXT_TYPE 0
121 #define SCU_RNC_CONTEXT_TYPE 1
125 * @name SCU_TASK_CONTEXT_VALIDITY
128 #define SCU_TASK_CONTEXT_INVALID 0
129 #define SCU_TASK_CONTEXT_VALID 1
133 * @name SCU_COMMAND_CODE
136 #define SCU_COMMAND_CODE_INITIATOR_NEW_TASK 0
137 #define SCU_COMMAND_CODE_ACTIVE_TASK 1
138 #define SCU_COMMAND_CODE_PRIMITIVE_SEQ_TASK 2
139 #define SCU_COMMAND_CODE_TARGET_RAW_FRAMES 3
143 * @name SCU_TASK_PRIORITY
147 * This priority is used when there is no priority request for this request.
149 #define SCU_TASK_PRIORITY_NORMAL 0
152 * This priority indicates that the task should be scheduled to the head
153 * of the queue. The task will NOT be executed if the TX is suspended for
156 #define SCU_TASK_PRIORITY_HEAD_OF_Q 1
159 * This priority indicates that the task will be executed before all
160 * SCU_TASK_PRIORITY_NORMAL and SCU_TASK_PRIORITY_HEAD_OF_Q tasks.
161 * The task WILL be executed if the TX is suspended for the remote node.
163 #define SCU_TASK_PRIORITY_HIGH 2
166 * This task priority is reserved and should not be used.
168 #define SCU_TASK_PRIORITY_RESERVED 3
171 #define SCU_TASK_INITIATOR_MODE 1
172 #define SCU_TASK_TARGET_MODE 0
174 #define SCU_TASK_REGULAR 0
175 #define SCU_TASK_ABORTED 1
177 //direction bit definition
179 * @name SATA_DIRECTION
182 #define SCU_SATA_WRITE_DATA_DIRECTION 0
183 #define SCU_SATA_READ_DATA_DIRECTION 1
187 * @name SCU_COMMAND_CONTEXT_MACROS
189 * These macros provide the mask and shift operations to construct the various
193 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_SHIFT 21UL
194 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_MASK 0x00E00000UL
195 #define scu_get_command_request_type(x) \
196 ((x) & SCU_CONTEXT_COMMAND_REQUEST_TYPE_MASK)
198 #define SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_SHIFT 18UL
199 #define SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_MASK 0x001C0000UL
200 #define scu_get_command_request_subtype(x) \
201 ((x) & SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_MASK)
203 #define SCU_CONTEXT_COMMAND_REQUEST_FULLTYPE_MASK \
205 SCU_CONTEXT_COMMAND_REQUEST_TYPE_MASK \
206 | SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_MASK \
208 #define scu_get_command_request_full_type(x) \
209 ((x) & SCU_CONTEXT_COMMAND_REQUEST_FULLTYPE_MASK)
211 #define SCU_CONTEXT_COMMAND_PROTOCOL_ENGINE_GROUP_SHIFT 16UL
212 #define SCU_CONTEXT_COMMAND_PROTOCOL_ENGINE_GROUP_MASK 0x00010000UL
213 #define scu_get_command_protocl_engine_group(x) \
214 ((x) & SCU_CONTEXT_COMMAND_PROTOCOL_ENGINE_GROUP_MASK)
216 #define SCU_CONTEXT_COMMAND_LOGICAL_PORT_SHIFT 12UL
217 #define SCU_CONTEXT_COMMAND_LOGICAL_PORT_MASK 0x00007000UL
218 #define scu_get_command_reqeust_logical_port(x) \
219 ((x) & SCU_CONTEXT_COMMAND_LOGICAL_PORT_MASK)
222 #define MAKE_SCU_CONTEXT_COMMAND_TYPE(type) \
223 ((U32)(type) << SCU_CONTEXT_COMMAND_REQUEST_TYPE_SHIFT)
227 * @name SCU_COMMAND_TYPES
229 * These constants provide the grouping of the different SCU command types.
232 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC MAKE_SCU_CONTEXT_COMMAND_TYPE(0UL)
233 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_TC MAKE_SCU_CONTEXT_COMMAND_TYPE(1UL)
234 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC MAKE_SCU_CONTEXT_COMMAND_TYPE(2UL)
235 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_RNC MAKE_SCU_CONTEXT_COMMAND_TYPE(3UL)
236 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC MAKE_SCU_CONTEXT_COMMAND_TYPE(6UL)
239 #define MAKE_SCU_CONTEXT_COMMAND_REQUEST(type, command) \
240 ((type) | (((U32)(command)) << SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_SHIFT))
243 * @name SCU_REQUEST_TYPES
245 * These constants are the various request types that can be posted to the SCU
249 #define SCU_CONTEXT_COMMAND_REQUST_POST_TC \
250 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC, 0))
252 #define SCU_CONTEXT_COMMAND_REQUEST_POST_TC_ABORT \
253 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC, 1))
255 #define SCU_CONTEXT_COMMAND_REQUST_DUMP_TC \
256 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_TC, 0))
258 #define SCU_CONTEXT_COMMAND_POST_RNC_32 \
259 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC, 0))
261 #define SCU_CONTEXT_COMMAND_POST_RNC_96 \
262 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC, 1))
264 #define SCU_CONTEXT_COMMAND_POST_RNC_INVALIDATE \
265 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC, 2))
267 #define SCU_CONTEXT_COMMAND_DUMP_RNC_32 \
268 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_RNC, 0))
270 #define SCU_CONTEXT_COMMAND_DUMP_RNC_96 \
271 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_RNC, 1))
273 #define SCU_CONTEXT_COMMAND_POST_RNC_SUSPEND_TX \
274 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 0))
276 #define SCU_CONTEXT_COMMAND_POST_RNC_SUSPEND_TX_RX \
277 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 1))
279 #define SCU_CONTEXT_COMMAND_POST_RNC_RESUME \
280 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 2))
282 #define SCU_CONTEXT_IT_NEXUS_LOSS_TIMER_ENABLE \
283 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 3))
285 #define SCU_CONTEXT_IT_NEXUS_LOSS_TIMER_DISABLE \
286 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 4))
290 * @name SCU_TASK_CONTEXT_PROTOCOL
291 * SCU Task context protocol types this is uesd to program the SCU Task
292 * context protocol field in word 0x00.
295 #define SCU_TASK_CONTEXT_PROTOCOL_SMP 0x00
296 #define SCU_TASK_CONTEXT_PROTOCOL_SSP 0x01
297 #define SCU_TASK_CONTEXT_PROTOCOL_STP 0x02
298 #define SCU_TASK_CONTEXT_PROTOCOL_NONE 0x07
302 * @struct SSP_TASK_CONTEXT
304 * @brief This is the SCU hardware definition for an SSP request.
306 struct SSP_TASK_CONTEXT
318 U32 changing_data_pointer : 1;
320 U32 retry_data_frame : 1;
328 U32 target_port_transfer_tag : 16;
336 * @struct STP_TASK_CONTEXT
338 * @brief This is the SCU hardware definition for an STP request.
340 struct STP_TASK_CONTEXT
364 U32 data_offset; // TODO: What is this used for?
368 * @struct SMP_TASK_CONTEXT
370 * @brief This is the SCU hardware definition for an SMP request.
372 struct SMP_TASK_CONTEXT
375 U32 response_length : 8;
376 U32 function_result : 8;
381 U32 smp_response_ufi : 12;
398 * @struct PRIMITIVE_TASK_CONTEXT
400 * @brief This is the SCU hardware definition used when the driver wants to
401 * send a primitive on the link.
403 struct PRIMITIVE_TASK_CONTEXT
407 * This field is the control word and it must be 0.
409 U32 control; ///< must be set to 0
413 * This field specifies the primitive that is to be transmitted.
431 * @union PROTOCOL_CONTEXT
433 * @brief The union of the protocols that can be selected in the SCU task
436 union PROTOCOL_CONTEXT
438 struct SSP_TASK_CONTEXT ssp;
439 struct STP_TASK_CONTEXT stp;
440 struct SMP_TASK_CONTEXT smp;
441 struct PRIMITIVE_TASK_CONTEXT primitive;
446 * @struct SCU_SGL_ELEMENT
447 * @typedef SCU_SGL_ELEMENT_T
449 * @brief This structure represents a single SCU defined SGL element.
451 * SCU SGLs contain a 64 bit address with the maximum data transfer being 24
452 * bits in size. The SGL can not cross a 4GB boundary.
454 typedef struct SCU_SGL_ELEMENT
457 * This field is the upper 32 bits of the 64 bit physical address.
462 * This field is the lower 32 bits of the 64 bit physical address.
467 * This field is the number of bytes to transfer.
472 * This field is the address modifier to be used when a virtual function is
473 * requesting a data transfer.
475 U32 address_modifier: 8;
479 #define SCU_SGL_ELEMENT_PAIR_A 0
480 #define SCU_SGL_ELEMENT_PAIR_B 1
483 * @struct SCU_SGL_ELEMENT_PAIR
485 * @brief This structure is the SCU hardware definition of a pair of SGL
488 * The SCU hardware always works on SGL pairs. They are referred to in the DS
489 * specification as SGL A and SGL B. Each SGL pair is followed by the address
492 typedef struct SCU_SGL_ELEMENT_PAIR
496 * This field is the SGL element A of the SGL pair.
502 * This field is the SGL element B of the SGL pair.
508 * This field is the upper 32 bits of the 64 bit address to the next SGL
514 * This field is the lower 32 bits of the 64 bit address to the next SGL
519 } SCU_SGL_ELEMENT_PAIR_T;
522 * @struct TRANSPORT_SNAPSHOT
524 * @brief This structure is the SCU hardware scratch area for the task
527 * This is set to 0 by the driver but can be read by issuing a dump TC request
530 struct TRANSPORT_SNAPSHOT
533 U32 xfer_rdy_write_data_length;
539 U32 data_transfer_size : 24;
540 U32 reserved_50_0 : 8;
543 U32 next_initiator_write_data_offset;
546 U32 next_initiator_write_data_xfer_size : 24;
547 U32 reserved_58_0 : 8;
551 * @struct SCU_TASK_CONTEXT
553 * @brief This structure defines the contents of the SCU silicon task context.
554 * It lays out all of the fields according to the expected order and
555 * location for the Storage Controller unit.
557 typedef struct SCU_TASK_CONTEXT
559 // OFFSET 0x00 ------
561 * This field must be encoded to one of the valid SCU task priority values
562 * - SCU_TASK_PRIORITY_NORMAL
563 * - SCU_TASK_PRIORITY_HEAD_OF_Q
564 * - SCU_TASK_PRIORITY_HIGH
569 * This field must be set to TRUE if this is an initiator generated request.
570 * Until target mode is supported all task requests are initiator requests.
572 U32 initiator_request : 1;
575 * This field must be set to one of the valid connection rates valid values
576 * are 0x8, 0x9, and 0xA.
578 U32 connection_rate : 4;
581 * This field muse be programed when generating an SMP response since the SMP
582 * connection remains open until the SMP response is generated.
584 U32 protocol_engine_index : 3;
587 * This field must contain the logical port for the task request.
589 U32 logical_port_index : 3;
592 * This field must be set to one of the SCU_TASK_CONTEXT_PROTOCOL values
593 * - SCU_TASK_CONTEXT_PROTOCOL_SMP
594 * - SCU_TASK_CONTEXT_PROTOCOL_SSP
595 * - SCU_TASK_CONTEXT_PROTOCOL_STP
596 * - SCU_TASK_CONTEXT_PROTOCOL_NONE
598 U32 protocol_type : 3;
601 * This filed must be set to the TCi allocated for this task
606 * This field is reserved and must be set to 0x00
608 U32 reserved_00_0 : 1;
611 * For a normal task request this must be set to 0. If this is an abort of
612 * this task request it must be set to 1.
617 * This field must be set to TRUE for the SCU hardware to process the task.
622 * This field must be set to SCU_TASK_CONTEXT_TYPE
624 U32 context_type : 1;
628 * This field contains the RNi that is the target of this request.
630 U32 remote_node_index : 12;
633 * This field is programmed if this is a mirrored request, which we are not
634 * using, in which case it is the RNi for the mirrored target.
636 U32 mirrored_node_index : 12;
639 * This field is programmed with the direction of the SATA reqeust
640 * - SCU_SATA_WRITE_DATA_DIRECTION
641 * - SCU_SATA_READ_DATA_DIRECTION
643 U32 sata_direction : 1;
646 * This field is programmsed with one of the following SCU_COMMAND_CODE
647 * - SCU_COMMAND_CODE_INITIATOR_NEW_TASK
648 * - SCU_COMMAND_CODE_ACTIVE_TASK
649 * - SCU_COMMAND_CODE_PRIMITIVE_SEQ_TASK
650 * - SCU_COMMAND_CODE_TARGET_RAW_FRAMES
652 U32 command_code : 2;
655 * This field is set to TRUE if the remote node should be suspended.
656 * This bit is only valid for SSP & SMP target devices.
658 U32 suspend_node : 1;
661 * This field is programmed with one of the following command type codes
663 * For SAS requests use the SCU_SSP_TASK_TYPE
664 * - SCU_TASK_TYPE_IOREAD
665 * - SCU_TASK_TYPE_IOWRITE
666 * - SCU_TASK_TYPE_SMP_REQUEST
667 * - SCU_TASK_TYPE_RESPONSE
668 * - SCU_TASK_TYPE_RAW_FRAME
669 * - SCU_TASK_TYPE_PRIMITIVE
671 * For SATA requests use the SCU_SATA_TASK_TYPE
672 * - SCU_TASK_TYPE_DMA_IN
673 * - SCU_TASK_TYPE_FPDMAQ_READ
674 * - SCU_TASK_TYPE_PACKET_DMA_IN
675 * - SCU_TASK_TYPE_SATA_RAW_FRAME
676 * - SCU_TASK_TYPE_DMA_OUT
677 * - SCU_TASK_TYPE_FPDMAQ_WRITE
678 * - SCU_TASK_TYPE_PACKET_DMA_OUT
684 * This field is reserved and the must be set to 0x00
686 U32 link_layer_control : 8; // presently all reserved
689 * This field is set to TRUE when TLR is to be enabled
691 U32 ssp_tlr_enable : 1;
694 * This is field specifies if the SCU DMAs a response frame to host
695 * memory for good response frames when operating in target mode.
697 U32 dma_ssp_target_good_response : 1;
700 * This field indicates if the SCU should DMA the response frame to
703 U32 do_not_dma_ssp_good_response : 1;
706 * This field is set to TRUE when strict ordering is to be enabled
708 U32 strict_ordering : 1;
711 * This field indicates the type of endianness to be utilized for the
712 * frame. command, task, and response frames utilized control_frame
715 U32 control_frame : 1;
718 * This field is reserved and the driver should set to 0x00
720 U32 tl_control_reserved : 3;
723 * This field is set to TRUE when the SCU hardware task timeout control is to
726 U32 timeout_enable : 1;
729 * This field is reserved and the driver should set it to 0x00
731 U32 pts_control_reserved : 7;
734 * This field should be set to TRUE when block guard is to be enabled
736 U32 block_guard_enable : 1;
739 * This field is reserved and the driver should set to 0x00
741 U32 sdma_control_reserved : 7;
745 * This field is the address modifier for this io request it should be
746 * programmed with the virtual function that is making the request.
748 U32 address_modifier : 16;
751 * @todo What we support mirrored SMP response frame?
753 U32 mirrored_protocol_engine : 3; // mirrored protocol Engine Index
756 * If this is a mirrored request the logical port index for the mirrored RNi
757 * must be programmed.
759 U32 mirrored_logical_port : 4; // mirrored local port index
762 * This field is reserved and the driver must set it to 0x00
764 U32 reserved_0C_0 : 8;
767 * This field must be set to TRUE if the mirrored request processing is to be
770 U32 mirror_request_enable : 1; // Mirrored request Enable
774 * This field is the command iu length in dwords
776 U32 ssp_command_iu_length : 8;
779 * This is the target TLR enable bit it must be set to 0 when creatning the
782 U32 xfer_ready_tlr_enable : 1;
785 * This field is reserved and the driver must set it to 0x00
787 U32 reserved_10_0 : 7;
790 * This is the maximum burst size that the SCU hardware will send in one
791 * connection its value is (N x 512) and N must be a multiple of 2. If the
792 * value is 0x00 then maximum burst size is disabled.
794 U32 ssp_max_burst_size : 16;
798 * This filed is set to the number of bytes to be transferred in the request.
800 U32 transfer_length_bytes : 24; // In terms of bytes
803 * This field is reserved and the driver should set it to 0x00
805 U32 reserved_14_0 : 8;
809 * This union provides for the protocol specific part of the SCU Task Context.
811 union PROTOCOL_CONTEXT type;
815 * This field is the upper 32 bits of the 64 bit physical address of the
818 U32 command_iu_upper;
821 * This field is the lower 32 bits of the 64 bit physical address of the
824 U32 command_iu_lower;
828 * This field is the upper 32 bits of the 64 bit physical address of the
831 U32 response_iu_upper;
834 * This field is the lower 32 bits of the 64 bit physical address of the
837 U32 response_iu_lower;
841 * This field is set to the task phase of the SCU hardware. The driver must
847 * This field is set to the transport layer task status. The driver must set
853 * This field is used during initiator write TLR
855 U32 previous_extended_tag : 4;
858 * This field is set the maximum number of retries for a STP non-data FIS
860 U32 stp_retry_count : 2;
863 * This field is reserved and the driver must set it to 0x00
865 U32 reserved_40_1 : 2;
868 * This field is used by the SCU TL to determine when to take a snapshot when
869 * tranmitting read data frames.
870 * - 0x00 The entire IO
876 U32 ssp_tlr_threshold : 4;
879 * This field is reserved and the driver must set it to 0x00
881 U32 reserved_40_2 : 4;
884 U32 write_data_length; // read only set to 0
887 struct TRANSPORT_SNAPSHOT snapshot; // read only set to 0
890 U32 block_protection_enable : 1;
892 U32 block_protection_function : 2;
893 U32 reserved_5C_0 : 9;
894 U32 active_sgl_element : 2; // read only set to 0
895 U32 sgl_exhausted : 1; // read only set to 0
896 U32 payload_data_transfer_error : 4; // read only set to 0
897 U32 frame_buffer_offset : 11; // read only set to 0
901 * This field is the first SGL element pair found in the TC data structure.
903 SCU_SGL_ELEMENT_PAIR_T sgl_pair_ab;
906 * This field is the second SGL element pair found in the TC data structure.
908 SCU_SGL_ELEMENT_PAIR_T sgl_pair_cd;
911 SCU_SGL_ELEMENT_PAIR_T sgl_snapshot_ac;
914 U32 active_sgl_element_pair; // read only set to 0
917 U32 reserved_C4_CC[3];
920 U32 intermediate_crc_value : 16;
921 U32 initial_crc_seed : 16;
924 U32 application_tag_for_verify : 16;
925 U32 application_tag_for_generate : 16;
928 U32 reference_tag_seed_for_verify_function;
934 U32 reserved_E0_0 : 16;
935 U32 application_tag_mask_for_generate: 16;
938 U32 block_protection_control : 16;
939 U32 application_tag_mask_for_verify : 16;
942 U32 block_protection_error : 8;
943 U32 reserved_E8_0 :24;
946 U32 reference_tag_seed_for_verify;
949 U32 intermediate_crc_valid_snapshot : 16;
950 U32 reserved_F0_0 : 16;
953 U32 reference_tag_seed_for_verify_function_snapshot;
956 U32 snapshot_of_reserved_dword_DC_of_tc;
959 U32 reference_tag_seed_for_generate_function_snapshot;
961 } SCU_TASK_CONTEXT_T;
965 #endif // __cplusplus
967 #endif // _SCU_TASK_CONTEXT_H_