2 * This file is provided under a dual BSD/GPLv2 license. When using or
3 * redistributing this file, you may do so under either license.
7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of version 2 of the GNU General Public License as
11 * published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
21 * The full GNU General Public License is included in this distribution
22 * in the file called LICENSE.GPL.
26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
27 * All rights reserved.
29 * Redistribution and use in source and binary forms, with or without
30 * modification, are permitted provided that the following conditions
33 * * Redistributions of source code must retain the above copyright
34 * notice, this list of conditions and the following disclaimer.
35 * * Redistributions in binary form must reproduce the above copyright
36 * notice, this list of conditions and the following disclaimer in
37 * the documentation and/or other materials provided with the
40 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
41 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
42 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
43 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
44 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
46 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
47 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
48 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
49 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
50 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 #ifndef _SCU_TASK_CONTEXT_H_
55 #define _SCU_TASK_CONTEXT_H_
60 * @brief This file contains the structures and constants for the SCU hardware
68 #include <dev/isci/scil/sci_types.h>
71 * @enum SCU_SSP_TASK_TYPE
73 * @brief This enumberation defines the various SSP task types the SCU
74 * hardware will accept.
76 * The definition for the various task types the SCU hardware will accept can
77 * be found in the DS specification.
81 SCU_TASK_TYPE_IOREAD, ///< IO READ direction or no direction
82 SCU_TASK_TYPE_IOWRITE, ///< IO Write direction
83 SCU_TASK_TYPE_SMP_REQUEST, ///< SMP Request type
84 SCU_TASK_TYPE_RESPONSE, ///< Driver generated response frame (targt mode)
85 SCU_TASK_TYPE_RAW_FRAME, ///< Raw frame request type
86 SCU_TASK_TYPE_PRIMITIVE ///< Request for a primitive to be transmitted
90 * @enum SCU_SATA_TASK_TYPE
92 * @brief This enumeration defines the various SATA task types the SCU
93 * hardware will accept.
95 * The definition for the various task types the SCU hardware will accept can
96 * be found in the DS specification.
100 SCU_TASK_TYPE_DMA_IN, ///< Read request
101 SCU_TASK_TYPE_FPDMAQ_READ, ///< NCQ read request
102 SCU_TASK_TYPE_PACKET_DMA_IN, ///< Packet read request
103 SCU_TASK_TYPE_SATA_RAW_FRAME, ///< Raw frame request
108 SCU_TASK_TYPE_DMA_OUT, ///< Write request
109 SCU_TASK_TYPE_FPDMAQ_WRITE, ///< NCQ write Request
110 SCU_TASK_TYPE_PACKET_DMA_OUT ///< Packet write request
111 } SCU_SATA_TASK_TYPE;
115 * @name SCU_CONTEXT_TYPE
118 #define SCU_TASK_CONTEXT_TYPE 0
119 #define SCU_RNC_CONTEXT_TYPE 1
123 * @name SCU_TASK_CONTEXT_VALIDITY
126 #define SCU_TASK_CONTEXT_INVALID 0
127 #define SCU_TASK_CONTEXT_VALID 1
131 * @name SCU_COMMAND_CODE
134 #define SCU_COMMAND_CODE_INITIATOR_NEW_TASK 0
135 #define SCU_COMMAND_CODE_ACTIVE_TASK 1
136 #define SCU_COMMAND_CODE_PRIMITIVE_SEQ_TASK 2
137 #define SCU_COMMAND_CODE_TARGET_RAW_FRAMES 3
141 * @name SCU_TASK_PRIORITY
145 * This priority is used when there is no priority request for this request.
147 #define SCU_TASK_PRIORITY_NORMAL 0
150 * This priority indicates that the task should be scheduled to the head
151 * of the queue. The task will NOT be executed if the TX is suspended for
154 #define SCU_TASK_PRIORITY_HEAD_OF_Q 1
157 * This priority indicates that the task will be executed before all
158 * SCU_TASK_PRIORITY_NORMAL and SCU_TASK_PRIORITY_HEAD_OF_Q tasks.
159 * The task WILL be executed if the TX is suspended for the remote node.
161 #define SCU_TASK_PRIORITY_HIGH 2
164 * This task priority is reserved and should not be used.
166 #define SCU_TASK_PRIORITY_RESERVED 3
169 #define SCU_TASK_INITIATOR_MODE 1
170 #define SCU_TASK_TARGET_MODE 0
172 #define SCU_TASK_REGULAR 0
173 #define SCU_TASK_ABORTED 1
175 //direction bit definition
177 * @name SATA_DIRECTION
180 #define SCU_SATA_WRITE_DATA_DIRECTION 0
181 #define SCU_SATA_READ_DATA_DIRECTION 1
185 * @name SCU_COMMAND_CONTEXT_MACROS
187 * These macros provide the mask and shift operations to construct the various
191 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_SHIFT 21UL
192 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_MASK 0x00E00000UL
193 #define scu_get_command_request_type(x) \
194 ((x) & SCU_CONTEXT_COMMAND_REQUEST_TYPE_MASK)
196 #define SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_SHIFT 18UL
197 #define SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_MASK 0x001C0000UL
198 #define scu_get_command_request_subtype(x) \
199 ((x) & SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_MASK)
201 #define SCU_CONTEXT_COMMAND_REQUEST_FULLTYPE_MASK \
203 SCU_CONTEXT_COMMAND_REQUEST_TYPE_MASK \
204 | SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_MASK \
206 #define scu_get_command_request_full_type(x) \
207 ((x) & SCU_CONTEXT_COMMAND_REQUEST_FULLTYPE_MASK)
209 #define SCU_CONTEXT_COMMAND_PROTOCOL_ENGINE_GROUP_SHIFT 16UL
210 #define SCU_CONTEXT_COMMAND_PROTOCOL_ENGINE_GROUP_MASK 0x00010000UL
211 #define scu_get_command_protocl_engine_group(x) \
212 ((x) & SCU_CONTEXT_COMMAND_PROTOCOL_ENGINE_GROUP_MASK)
214 #define SCU_CONTEXT_COMMAND_LOGICAL_PORT_SHIFT 12UL
215 #define SCU_CONTEXT_COMMAND_LOGICAL_PORT_MASK 0x00007000UL
216 #define scu_get_command_reqeust_logical_port(x) \
217 ((x) & SCU_CONTEXT_COMMAND_LOGICAL_PORT_MASK)
220 #define MAKE_SCU_CONTEXT_COMMAND_TYPE(type) \
221 ((U32)(type) << SCU_CONTEXT_COMMAND_REQUEST_TYPE_SHIFT)
225 * @name SCU_COMMAND_TYPES
227 * These constants provide the grouping of the different SCU command types.
230 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC MAKE_SCU_CONTEXT_COMMAND_TYPE(0UL)
231 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_TC MAKE_SCU_CONTEXT_COMMAND_TYPE(1UL)
232 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC MAKE_SCU_CONTEXT_COMMAND_TYPE(2UL)
233 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_RNC MAKE_SCU_CONTEXT_COMMAND_TYPE(3UL)
234 #define SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC MAKE_SCU_CONTEXT_COMMAND_TYPE(6UL)
237 #define MAKE_SCU_CONTEXT_COMMAND_REQUEST(type, command) \
238 ((type) | (((U32)(command)) << SCU_CONTEXT_COMMAND_REQUEST_SUBTYPE_SHIFT))
241 * @name SCU_REQUEST_TYPES
243 * These constants are the various request types that can be posted to the SCU
247 #define SCU_CONTEXT_COMMAND_REQUST_POST_TC \
248 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC, 0))
250 #define SCU_CONTEXT_COMMAND_REQUEST_POST_TC_ABORT \
251 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_TC, 1))
253 #define SCU_CONTEXT_COMMAND_REQUST_DUMP_TC \
254 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_TC, 0))
256 #define SCU_CONTEXT_COMMAND_POST_RNC_32 \
257 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC, 0))
259 #define SCU_CONTEXT_COMMAND_POST_RNC_96 \
260 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC, 1))
262 #define SCU_CONTEXT_COMMAND_POST_RNC_INVALIDATE \
263 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_POST_RNC, 2))
265 #define SCU_CONTEXT_COMMAND_DUMP_RNC_32 \
266 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_RNC, 0))
268 #define SCU_CONTEXT_COMMAND_DUMP_RNC_96 \
269 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_DUMP_RNC, 1))
271 #define SCU_CONTEXT_COMMAND_POST_RNC_SUSPEND_TX \
272 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 0))
274 #define SCU_CONTEXT_COMMAND_POST_RNC_SUSPEND_TX_RX \
275 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 1))
277 #define SCU_CONTEXT_COMMAND_POST_RNC_RESUME \
278 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 2))
280 #define SCU_CONTEXT_IT_NEXUS_LOSS_TIMER_ENABLE \
281 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 3))
283 #define SCU_CONTEXT_IT_NEXUS_LOSS_TIMER_DISABLE \
284 (MAKE_SCU_CONTEXT_COMMAND_REQUEST(SCU_CONTEXT_COMMAND_REQUEST_TYPE_OTHER_RNC, 4))
288 * @name SCU_TASK_CONTEXT_PROTOCOL
289 * SCU Task context protocol types this is uesd to program the SCU Task
290 * context protocol field in word 0x00.
293 #define SCU_TASK_CONTEXT_PROTOCOL_SMP 0x00
294 #define SCU_TASK_CONTEXT_PROTOCOL_SSP 0x01
295 #define SCU_TASK_CONTEXT_PROTOCOL_STP 0x02
296 #define SCU_TASK_CONTEXT_PROTOCOL_NONE 0x07
300 * @struct SSP_TASK_CONTEXT
302 * @brief This is the SCU hardware definition for an SSP request.
304 struct SSP_TASK_CONTEXT
316 U32 changing_data_pointer : 1;
318 U32 retry_data_frame : 1;
326 U32 target_port_transfer_tag : 16;
334 * @struct STP_TASK_CONTEXT
336 * @brief This is the SCU hardware definition for an STP request.
338 struct STP_TASK_CONTEXT
362 U32 data_offset; // TODO: What is this used for?
366 * @struct SMP_TASK_CONTEXT
368 * @brief This is the SCU hardware definition for an SMP request.
370 struct SMP_TASK_CONTEXT
373 U32 response_length : 8;
374 U32 function_result : 8;
379 U32 smp_response_ufi : 12;
396 * @struct PRIMITIVE_TASK_CONTEXT
398 * @brief This is the SCU hardware definition used when the driver wants to
399 * send a primitive on the link.
401 struct PRIMITIVE_TASK_CONTEXT
405 * This field is the control word and it must be 0.
407 U32 control; ///< must be set to 0
411 * This field specifies the primitive that is to be transmitted.
429 * @union PROTOCOL_CONTEXT
431 * @brief The union of the protocols that can be selected in the SCU task
434 union PROTOCOL_CONTEXT
436 struct SSP_TASK_CONTEXT ssp;
437 struct STP_TASK_CONTEXT stp;
438 struct SMP_TASK_CONTEXT smp;
439 struct PRIMITIVE_TASK_CONTEXT primitive;
444 * @struct SCU_SGL_ELEMENT
445 * @typedef SCU_SGL_ELEMENT_T
447 * @brief This structure represents a single SCU defined SGL element.
449 * SCU SGLs contain a 64 bit address with the maximum data transfer being 24
450 * bits in size. The SGL can not cross a 4GB boundary.
452 typedef struct SCU_SGL_ELEMENT
455 * This field is the upper 32 bits of the 64 bit physical address.
460 * This field is the lower 32 bits of the 64 bit physical address.
465 * This field is the number of bytes to transfer.
470 * This field is the address modifier to be used when a virtual function is
471 * requesting a data transfer.
473 U32 address_modifier: 8;
477 #define SCU_SGL_ELEMENT_PAIR_A 0
478 #define SCU_SGL_ELEMENT_PAIR_B 1
481 * @struct SCU_SGL_ELEMENT_PAIR
483 * @brief This structure is the SCU hardware definition of a pair of SGL
486 * The SCU hardware always works on SGL pairs. They are referred to in the DS
487 * specification as SGL A and SGL B. Each SGL pair is followed by the address
490 typedef struct SCU_SGL_ELEMENT_PAIR
494 * This field is the SGL element A of the SGL pair.
500 * This field is the SGL element B of the SGL pair.
506 * This field is the upper 32 bits of the 64 bit address to the next SGL
512 * This field is the lower 32 bits of the 64 bit address to the next SGL
517 } SCU_SGL_ELEMENT_PAIR_T;
520 * @struct TRANSPORT_SNAPSHOT
522 * @brief This structure is the SCU hardware scratch area for the task
525 * This is set to 0 by the driver but can be read by issuing a dump TC request
528 struct TRANSPORT_SNAPSHOT
531 U32 xfer_rdy_write_data_length;
537 U32 data_transfer_size : 24;
538 U32 reserved_50_0 : 8;
541 U32 next_initiator_write_data_offset;
544 U32 next_initiator_write_data_xfer_size : 24;
545 U32 reserved_58_0 : 8;
549 * @struct SCU_TASK_CONTEXT
551 * @brief This structure defines the contents of the SCU silicon task context.
552 * It lays out all of the fields according to the expected order and
553 * location for the Storage Controller unit.
555 typedef struct SCU_TASK_CONTEXT
557 // OFFSET 0x00 ------
559 * This field must be encoded to one of the valid SCU task priority values
560 * - SCU_TASK_PRIORITY_NORMAL
561 * - SCU_TASK_PRIORITY_HEAD_OF_Q
562 * - SCU_TASK_PRIORITY_HIGH
567 * This field must be set to TRUE if this is an initiator generated request.
568 * Until target mode is supported all task requests are initiator requests.
570 U32 initiator_request : 1;
573 * This field must be set to one of the valid connection rates valid values
574 * are 0x8, 0x9, and 0xA.
576 U32 connection_rate : 4;
579 * This field muse be programed when generating an SMP response since the SMP
580 * connection remains open until the SMP response is generated.
582 U32 protocol_engine_index : 3;
585 * This field must contain the logical port for the task request.
587 U32 logical_port_index : 3;
590 * This field must be set to one of the SCU_TASK_CONTEXT_PROTOCOL values
591 * - SCU_TASK_CONTEXT_PROTOCOL_SMP
592 * - SCU_TASK_CONTEXT_PROTOCOL_SSP
593 * - SCU_TASK_CONTEXT_PROTOCOL_STP
594 * - SCU_TASK_CONTEXT_PROTOCOL_NONE
596 U32 protocol_type : 3;
599 * This filed must be set to the TCi allocated for this task
604 * This field is reserved and must be set to 0x00
606 U32 reserved_00_0 : 1;
609 * For a normal task request this must be set to 0. If this is an abort of
610 * this task request it must be set to 1.
615 * This field must be set to TRUE for the SCU hardware to process the task.
620 * This field must be set to SCU_TASK_CONTEXT_TYPE
622 U32 context_type : 1;
626 * This field contains the RNi that is the target of this request.
628 U32 remote_node_index : 12;
631 * This field is programmed if this is a mirrored request, which we are not
632 * using, in which case it is the RNi for the mirrored target.
634 U32 mirrored_node_index : 12;
637 * This field is programmed with the direction of the SATA reqeust
638 * - SCU_SATA_WRITE_DATA_DIRECTION
639 * - SCU_SATA_READ_DATA_DIRECTION
641 U32 sata_direction : 1;
644 * This field is programmsed with one of the following SCU_COMMAND_CODE
645 * - SCU_COMMAND_CODE_INITIATOR_NEW_TASK
646 * - SCU_COMMAND_CODE_ACTIVE_TASK
647 * - SCU_COMMAND_CODE_PRIMITIVE_SEQ_TASK
648 * - SCU_COMMAND_CODE_TARGET_RAW_FRAMES
650 U32 command_code : 2;
653 * This field is set to TRUE if the remote node should be suspended.
654 * This bit is only valid for SSP & SMP target devices.
656 U32 suspend_node : 1;
659 * This field is programmed with one of the following command type codes
661 * For SAS requests use the SCU_SSP_TASK_TYPE
662 * - SCU_TASK_TYPE_IOREAD
663 * - SCU_TASK_TYPE_IOWRITE
664 * - SCU_TASK_TYPE_SMP_REQUEST
665 * - SCU_TASK_TYPE_RESPONSE
666 * - SCU_TASK_TYPE_RAW_FRAME
667 * - SCU_TASK_TYPE_PRIMITIVE
669 * For SATA requests use the SCU_SATA_TASK_TYPE
670 * - SCU_TASK_TYPE_DMA_IN
671 * - SCU_TASK_TYPE_FPDMAQ_READ
672 * - SCU_TASK_TYPE_PACKET_DMA_IN
673 * - SCU_TASK_TYPE_SATA_RAW_FRAME
674 * - SCU_TASK_TYPE_DMA_OUT
675 * - SCU_TASK_TYPE_FPDMAQ_WRITE
676 * - SCU_TASK_TYPE_PACKET_DMA_OUT
682 * This field is reserved and the must be set to 0x00
684 U32 link_layer_control : 8; // presently all reserved
687 * This field is set to TRUE when TLR is to be enabled
689 U32 ssp_tlr_enable : 1;
692 * This is field specifies if the SCU DMAs a response frame to host
693 * memory for good response frames when operating in target mode.
695 U32 dma_ssp_target_good_response : 1;
698 * This field indicates if the SCU should DMA the response frame to
701 U32 do_not_dma_ssp_good_response : 1;
704 * This field is set to TRUE when strict ordering is to be enabled
706 U32 strict_ordering : 1;
709 * This field indicates the type of endianness to be utilized for the
710 * frame. command, task, and response frames utilized control_frame
713 U32 control_frame : 1;
716 * This field is reserved and the driver should set to 0x00
718 U32 tl_control_reserved : 3;
721 * This field is set to TRUE when the SCU hardware task timeout control is to
724 U32 timeout_enable : 1;
727 * This field is reserved and the driver should set it to 0x00
729 U32 pts_control_reserved : 7;
732 * This field should be set to TRUE when block guard is to be enabled
734 U32 block_guard_enable : 1;
737 * This field is reserved and the driver should set to 0x00
739 U32 sdma_control_reserved : 7;
743 * This field is the address modifier for this io request it should be
744 * programmed with the virtual function that is making the request.
746 U32 address_modifier : 16;
749 * @todo What we support mirrored SMP response frame?
751 U32 mirrored_protocol_engine : 3; // mirrored protocol Engine Index
754 * If this is a mirrored request the logical port index for the mirrored RNi
755 * must be programmed.
757 U32 mirrored_logical_port : 4; // mirrored local port index
760 * This field is reserved and the driver must set it to 0x00
762 U32 reserved_0C_0 : 8;
765 * This field must be set to TRUE if the mirrored request processing is to be
768 U32 mirror_request_enable : 1; // Mirrored request Enable
772 * This field is the command iu length in dwords
774 U32 ssp_command_iu_length : 8;
777 * This is the target TLR enable bit it must be set to 0 when creatning the
780 U32 xfer_ready_tlr_enable : 1;
783 * This field is reserved and the driver must set it to 0x00
785 U32 reserved_10_0 : 7;
788 * This is the maximum burst size that the SCU hardware will send in one
789 * connection its value is (N x 512) and N must be a multiple of 2. If the
790 * value is 0x00 then maximum burst size is disabled.
792 U32 ssp_max_burst_size : 16;
796 * This filed is set to the number of bytes to be transferred in the request.
798 U32 transfer_length_bytes : 24; // In terms of bytes
801 * This field is reserved and the driver should set it to 0x00
803 U32 reserved_14_0 : 8;
807 * This union provides for the protocol specific part of the SCU Task Context.
809 union PROTOCOL_CONTEXT type;
813 * This field is the upper 32 bits of the 64 bit physical address of the
816 U32 command_iu_upper;
819 * This field is the lower 32 bits of the 64 bit physical address of the
822 U32 command_iu_lower;
826 * This field is the upper 32 bits of the 64 bit physical address of the
829 U32 response_iu_upper;
832 * This field is the lower 32 bits of the 64 bit physical address of the
835 U32 response_iu_lower;
839 * This field is set to the task phase of the SCU hardware. The driver must
845 * This field is set to the transport layer task status. The driver must set
851 * This field is used during initiator write TLR
853 U32 previous_extended_tag : 4;
856 * This field is set the maximum number of retries for a STP non-data FIS
858 U32 stp_retry_count : 2;
861 * This field is reserved and the driver must set it to 0x00
863 U32 reserved_40_1 : 2;
866 * This field is used by the SCU TL to determine when to take a snapshot when
867 * tranmitting read data frames.
868 * - 0x00 The entire IO
874 U32 ssp_tlr_threshold : 4;
877 * This field is reserved and the driver must set it to 0x00
879 U32 reserved_40_2 : 4;
882 U32 write_data_length; // read only set to 0
885 struct TRANSPORT_SNAPSHOT snapshot; // read only set to 0
888 U32 block_protection_enable : 1;
890 U32 block_protection_function : 2;
891 U32 reserved_5C_0 : 9;
892 U32 active_sgl_element : 2; // read only set to 0
893 U32 sgl_exhausted : 1; // read only set to 0
894 U32 payload_data_transfer_error : 4; // read only set to 0
895 U32 frame_buffer_offset : 11; // read only set to 0
899 * This field is the first SGL element pair found in the TC data structure.
901 SCU_SGL_ELEMENT_PAIR_T sgl_pair_ab;
904 * This field is the second SGL element pair found in the TC data structure.
906 SCU_SGL_ELEMENT_PAIR_T sgl_pair_cd;
909 SCU_SGL_ELEMENT_PAIR_T sgl_snapshot_ac;
912 U32 active_sgl_element_pair; // read only set to 0
915 U32 reserved_C4_CC[3];
918 U32 intermediate_crc_value : 16;
919 U32 initial_crc_seed : 16;
922 U32 application_tag_for_verify : 16;
923 U32 application_tag_for_generate : 16;
926 U32 reference_tag_seed_for_verify_function;
932 U32 reserved_E0_0 : 16;
933 U32 application_tag_mask_for_generate: 16;
936 U32 block_protection_control : 16;
937 U32 application_tag_mask_for_verify : 16;
940 U32 block_protection_error : 8;
941 U32 reserved_E8_0 :24;
944 U32 reference_tag_seed_for_verify;
947 U32 intermediate_crc_valid_snapshot : 16;
948 U32 reserved_F0_0 : 16;
951 U32 reference_tag_seed_for_verify_function_snapshot;
954 U32 snapshot_of_reserved_dword_DC_of_tc;
957 U32 reference_tag_seed_for_generate_function_snapshot;
959 } SCU_TASK_CONTEXT_T;
963 #endif // __cplusplus
965 #endif // _SCU_TASK_CONTEXT_H_