Lines Matching +full:4 +full:- +full:byte

5  * SPDX-License-Identifier: Apache-2.0
117 /** Enter HDR Mode (HDR-DDR) (Broadcast) */
120 /** Enter HDR Mode 0 (HDR-DDR) (Broadcast) */
123 /** Enter HDR Mode 1 (HDR-TSP) (Broadcast) */
126 /** Enter HDR Mode 2 (HDR-TSL) (Broadcast) */
129 /** Enter HDR Mode 3 (HDR-BT) (Broadcast) */
132 /** Enter HDR Mode 4 (Broadcast) */
171 /** Multi-Lane Data Transfer Control (Broadcast) */
243 * - For Write CCC, pointer to the byte array of data
244 * to be sent, which may contain the Sub-Command Byte
246 * - For Read CCC, pointer to the byte buffer for data
275 * Pointer to byte array of data for this CCC.
315 * Event byte:
316 * - Bit[0]: ENINT/DISINT:
317 * - Target Interrupt Requests
318 * - Bit[1]: ENCR/DISCR:
319 * - Controller Role Requests
320 * - Bit[3]: ENHJ/DISHJ:
321 * - Hot-Join Event
326 /** Enable Events (ENEC) - Target Interrupt Requests. */
329 /** Enable Events (ENEC) - Controller Role Requests. */
332 /** Enable Events (ENEC) - Hot-Join Event. */
338 /** Disable Events (DISEC) - Target Interrupt Requests. */
341 /** Disable Events (DISEC) - Controller Role Requests. */
344 /** Disable Events (DISEC) - Hot-Join Event. */
355 /** Events - Target Interrupt Requests. */
358 /** Events - Controller Role Requests. */
361 /** Events - Hot-Join Event. */
465 * @brief Defining byte values for ENTTM.
471 /** Indicates that I3C Devices shall return a random 32-bit value
481 * - SETDASA (Set Dynamic Address from Static Address)
482 * - SETNEWDA (Set New Dynamic Address)
483 * - SETGRPA (Set Group Address)
484 * - GETACCCR (Get Accept Controller Role)
492 * - For SETDASA, Static Address to be assigned as
494 * - For SETNEWDA, new Dynamic Address to be assigned.
495 * - For SETGRPA, new Group Address to be set.
496 * - For GETACCCR, the correct address of Secondary
500 * the address is left-shift by 1, and bit[0] is always 0.
502 * @note Fpr SET GETACCCR, the address is left-shift by 1,
513 * 48-bit Provisioned ID.
515 * @note Data is big-endian where first byte is MSB.
549 * @brief Defining byte values for GETSTATUS Format 2.
555 /** PRECR - Alternate status format describing Controller-capable device. */
558 /** Invalid defining byte. */
569 * - Bit[15:8]: Reserved.
570 * - Bit[7:6]: Activity Mode.
571 * - Bit[5]: Protocol Error.
572 * - Bit[4]: Reserved.
573 * - Bit[3:0]: Number of Pending Interrupts.
585 * Defining Byte 0x00: TGTSTAT
592 * Defining Byte 0x91: PRECR
593 * - Bit[15:8]: Vendor Reserved
594 * - Bit[7:2]: Reserved
595 * - Bit[1]: Handoff Delay NACK
596 * - Bit[0]: Deep Sleep Detected
609 /** GETSTATUS Format 1 - Protocol Error bit. */
612 /** GETSTATUS Format 1 - Activity Mode bitmask. */
616 * @brief GETSTATUS Format 1 - Activity Mode
626 /** GETSTATUS Format 1 - Number of Pending Interrupts bitmask. */
630 * @brief GETSTATUS Format 1 - Number of Pending Interrupts
640 /** GETSTATUS Format 2 - PERCR - Deep Sleep Detected bit. */
643 /** GETSTATUS Format 2 - PERCR - Handoff Delay NACK. */
653 * @note The address is left-shift by 1, and bit[0]
659 * 16-bit ID for the bridged target.
699 * @brief Enum for I3C Get Max Data Speed (GETMXDS) Format 3 Defining Byte Values.
706 /** Delay parameters for a Controller-capable Device, and it's expected Activity State
711 /** Invalid defining byte. */
738 * This is in little-endian where first byte is LSB.
745 * Defining Byte 0x00: WRRDTURN
752 * Defining Byte 0x91: CRHDLY
753 * - Bit[2]: Set Bus Activity State
754 * - Bit[1:0]: Controller Handoff Activity State
760 /** Get Max Data Speed (GETMXDS) - Default Max Sustained Data Rate. */
763 /** Get Max Data Speed (GETMXDS) - 8MHz Max Sustained Data Rate. */
766 /** Get Max Data Speed (GETMXDS) - 6MHz Max Sustained Data Rate. */
769 /** Get Max Data Speed (GETMXDS) - 4MHz Max Sustained Data Rate. */
772 /** Get Max Data Speed (GETMXDS) - 2MHz Max Sustained Data Rate. */
773 #define I3C_CCC_GETMXDS_MAX_SDR_FSCL_2MHZ 4
775 /** Get Max Data Speed (GETMXDS) - Clock to Data Turnaround <= 8ns. */
778 /** Get Max Data Speed (GETMXDS) - Clock to Data Turnaround <= 9ns. */
781 /** Get Max Data Speed (GETMXDS) - Clock to Data Turnaround <= 10ns. */
784 /** Get Max Data Speed (GETMXDS) - Clock to Data Turnaround <= 11ns. */
787 /** Get Max Data Speed (GETMXDS) - Clock to Data Turnaround <= 12ns. */
788 #define I3C_CCC_GETMXDS_TSCO_12NS 4
790 /** Get Max Data Speed (GETMXDS) - Clock to Data Turnaround > 12ns. */
793 /** Get Max Data Speed (GETMXDS) - maxWr - Optional Defining Byte Support. */
796 /** Get Max Data Speed (GETMXDS) - Max Sustained Data Rate bitmask. */
800 * @brief Get Max Data Speed (GETMXDS) - maxWr - Max Sustained Data Rate
810 /** Get Max Data Speed (GETMXDS) - maxRd - Write-to-Read Permits Stop Between. */
813 /** Get Max Data Speed (GETMXDS) - maxRd - Clock to Data Turnaround bitmask. */
817 * @brief Get Max Data Speed (GETMXDS) - maxRd - Clock to Data Turnaround
827 /** Get Max Data Speed (GETMXDS) - maxRd - Max Sustained Data Rate bitmask. */
831 * @brief Get Max Data Speed (GETMXDS) - maxRd - Max Sustained Data Rate
841 /** Get Max Data Speed (GETMXDS) - CRDHLY1 - Set Bus Activity State bit shift value. */
844 /** Get Max Data Speed (GETMXDS) - CRDHLY1 - Controller Handoff Activity State bitmask. */
848 * @brief Get Max Data Speed (GETMXDS) - CRDHLY1 - Controller Handoff Activity State
870 * @brief Enum for I3C Get Capabilities (GETCAPS) Format 2 Defining Byte Values.
885 /** Debug-capable Device capabilities and features. */
888 /** Invalid defining byte. */
896 * GETHDRCAP which only returned a single byte which is the same as the
897 * GETCAPS1 byte.
903 * - Bit[0]: HDR-DDR
904 * - Bit[1]: HDR-TSP
905 * - Bit[2]: HDR-TSL
906 * - Bit[7:3]: Reserved
912 * Byte 1 GETCAPS1
913 * - Bit[0]: HDR-DDR
914 * - Bit[1]: HDR-TSP
915 * - Bit[2]: HDR-TSL
916 * - Bit[3]: HDR-BT
917 * - Bit[7:4]: Reserved
918 * Byte 2 GETCAPS2
919 * - Bit[3:0]: I3C 1.x Specification Version
920 * - Bit[5:4]: Group Address Capabilities
921 * - Bit[6]: HDR-DDR Write Abort
922 * - Bit[7]: HDR-DDR Abort CRC
923 * Byte 3 GETCAPS3
924 * - Bit[0]: Multi-Lane (ML) Data Transfer Support
925 * - Bit[1]: Device to Device Transfer (D2DXFER) Support
926 * - Bit[2]: Device to Device Transfer (D2DXFER) IBI Capable
927 * - Bit[3]: Defining Byte Support in GETCAPS
928 * - Bit[4]: Defining Byte Support in GETSTATUS
929 * - Bit[5]: HDR-BT CRC-32 Support
930 * - Bit[6]: IBI MDB Support for Pending Read Notification
931 * - Bit[7]: Reserved
932 * Byte 4 GETCAPS4
933 * - Bit[7:0]: Reserved
935 uint8_t getcaps[4];
940 * Defining Byte 0x00: TGTCAPS
944 uint8_t tgtcaps[4];
947 * Defining Byte 0x5A: TESTPAT
954 * Defining Byte 0x91: CRCAPS
955 * Byte 1 CRCAPS1
956 * - Bit[0]: Hot-Join Support
957 * - Bit[1]: Group Management Support
958 * - Bit[2]: Multi-Lane Support
959 * Byte 2 CRCAPS2
960 * - Bit[0]: In-Band Interrupt Support
961 * - Bit[1]: Controller Pass-Back
962 * - Bit[2]: Deep Sleep Capable
963 * - Bit[3]: Delayed Controller Handoff
968 * Defining Byte 0x93: VTCAPS
969 * Byte 1 VTCAPS1
970 * - Bit[2:0]: Virtual Target Type
971 * - Bit[4]: Side Effects
972 * - Bit[5]: Shared Peripheral Detect
973 * Byte 2 VTCAPS2
974 * - Bit[1:0]: Interrupt Requests
975 * - Bit[2]: Address Remapping
976 * - Bit[4:3]: Bus Context and Conditions
982 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR-DDR mode bit. */
985 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR-TSP mode bit. */
988 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR-TSL mode bit. */
991 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR-BT mode bit. */
995 * @brief Get Optional Feature Capabilities Byte 1 (GETCAPS) - HDR Mode
1003 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 0. */
1006 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 1. */
1009 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 2. */
1012 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 3. */
1015 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 4. */
1016 #define I3C_CCC_GETCAPS1_HDR_MODE4 BIT(4)
1018 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 5. */
1021 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 6. */
1024 /** Get Optional Feature Capabilities Byte 1 (GETCAPS) Format 1 - HDR Mode 7. */
1027 /** Get Optional Feature Capabilities Byte 2 (GETCAPS) Format 1 - HDR-DDR Write Abort bit. */
1030 /** Get Optional Feature Capabilities Byte 2 (GETCAPS) Format 1 - HDR-DDR Abort CRC bit. */
1034 * @brief Get Optional Feature Capabilities Byte 2 (GETCAPS) Format 1 -
1037 #define I3C_CCC_GETCAPS2_GRPADDR_CAP_MASK GENMASK(5U, 4U)
1040 * @brief Get Optional Feature Capabilities Byte 2 (GETCAPS) Format 1 - Group Address Capabilities.
1051 * @brief Get Optional Feature Capabilities Byte 2 (GETCAPS) Format 1 -
1057 * @brief Get Optional Feature Capabilities Byte 2 (GETCAPS) Format 1 -
1069 * @brief Get Optional Feature Capabilities Byte 3 (GETCAPS) Format 1 -
1070 * Multi-Lane Data Transfer Support bit.
1075 * @brief Get Optional Feature Capabilities Byte 3 (GETCAPS) Format 1 -
1081 * @brief Get Optional Feature Capabilities Byte 3 (GETCAPS) Format 1 -
1087 * @brief Get Optional Feature Capabilities Byte 3 (GETCAPS) Format 1 -
1088 * Defining Byte Support in GETCAPS bit.
1093 * @brief Get Optional Feature Capabilities Byte 3 (GETCAPS) Format 1 -
1094 * Defining Byte Support in GETSTATUS bit.
1096 #define I3C_CCC_GETCAPS3_GETSTATUS_DEFINING_BYTE_SUPPORT BIT(4)
1099 * @brief Get Optional Feature Capabilities Byte 3 (GETCAPS) Format 1 -
1100 * HDR-BT CRC-32 Support bit.
1105 * @brief Get Optional Feature Capabilities Byte 3 (GETCAPS) Format 1 -
1111 * @brief Get Fixed Test Pattern (GETCAPS) Format 2 -
1112 * Fixed Test Pattern Byte 1.
1117 * @brief Get Fixed Test Pattern (GETCAPS) Format 2 -
1118 * Fixed Test Pattern Byte 2.
1123 * @brief Get Fixed Test Pattern (GETCAPS) Format 2 -
1124 * Fixed Test Pattern Byte 3.
1129 * @brief Get Fixed Test Pattern (GETCAPS) Format 2 -
1130 * Fixed Test Pattern Byte 4.
1135 * @brief Get Fixed Test Pattern (GETCAPS) Format 2 -
1141 * @brief Get Controller Handoff Capabilities Byte 1 (GETCAPS) Format 2 -
1142 * Hot-Join Support.
1147 * @brief Get Controller Handoff Capabilities Byte 1 (GETCAPS) Format 2 -
1153 * @brief Get Controller Handoff Capabilities Byte 1 (GETCAPS) Format 2 -
1154 * Multi-Lane Support.
1159 * @brief Get Controller Handoff Capabilities Byte 2 (GETCAPS) Format 2 -
1160 * In-Band Interrupt Support.
1165 * @brief Get Controller Handoff Capabilities Byte 2 (GETCAPS) Format 2 -
1166 * Controller Pass-Back.
1171 * @brief Get Controller Handoff Capabilities Byte 2 (GETCAPS) Format 2 -
1177 * @brief Get Controller Handoff Capabilities Byte 2 (GETCAPS) Format 2 -
1182 /** Get Capabilities (GETCAPS) - VTCAP1 - Virtual Target Type bitmask. */
1186 * @brief Get Capabilities (GETCAPS) - VTCAP1 - Virtual Target Type
1189 * obtained via GETCAPS format 2 VTCAP def byte.
1197 * @brief Get Virtual Target Capabilities Byte 1 (GETCAPS) Format 2 -
1200 #define I3C_CCC_GETCAPS_VTCAP1_SIDE_EFFECTS BIT(4)
1203 * @brief Get Virtual Target Capabilities Byte 1 (GETCAPS) Format 2 -
1208 /** Get Capabilities (GETCAPS) - VTCAP2 - Interrupt Requests bitmask. */
1212 * @brief Get Capabilities (GETCAPS) - VTCAP2 - Interrupt Requests
1215 * obtained via GETCAPS format 2 VTCAP def byte.
1223 * @brief Get Virtual Target Capabilities Byte 2 (GETCAPS) Format 2 -
1228 /** Get Capabilities (GETCAPS) - VTCAP2 - Bus Context and Condition bitmask. */
1229 #define I3C_CCC_GETCAPS_VTCAP2_BUS_CONTEXT_AND_COND_MASK GENMASK(4U, 3U)
1232 * @brief Get Capabilities (GETCAPS) - VTCAP2 - Bus Context and Condition
1235 * obtained via GETCAPS format 2 VTCAP def byte.
1243 * @brief Enum for I3C Reset Action (RSTACT) Defining Byte Values.
1278 * - CONTEXT[7:6]: 2'b00
1280 * - CONTEXT[5]: I3C Specification Editorial Revision (within Minor Version)
1281 * - 0: Version 1.Y.0
1282 * - 1: Version 1.Y.1 or greater
1284 * - CONTEXT[4]: I3C Specification Family
1285 * - 0: MIPI I3C Specification
1286 * - 1: MIPI I3C Basic Specification
1288 * - CONTEXT[3:0]: I3C Specification Minor Version (v1.Y)
1289 * - 0: Illegal, do not use (see Note below)
1291 * - 1-15: Version 1.1 - Version 1.15
1293 * Examples: Bit[5] Bit[4] Bits[3:0]
1294 * I3C Basic v1.1.0: 1’b0 || 1’b1 || 4’b0001 or 8’b00010001
1295 * I3C Basic v1.1.1: 1’b1 || 1’b1 || 4’b0001 or 8’b00110001
1296 * I3C Basic v1.2.0: 1’b0 || 1’b1 || 4’b0010 or 8’b00010010
1318 #define I3C_CCC_SETBUSCON_I3C_SPEC_I3C_BASIC_SPEC BIT(4)
1373 return (payload->ccc.id <= I3C_CCC_BROADCAST_MAX_ID); in i3c_ccc_is_payload_broadcast()
1800 * @param[in] defbyte Defining Byte for ENTTM.
1819 * @param[in] defbyte Defining Byte if using format 2.
1855 * @param[in] defbyte Defining Byte for GETSTATUS format 2.
1879 * @param[in] defbyte Defining Byte if using format 2.
1915 * @param[in] defbyte Defining Byte for GETCAPS format 2.
1967 * with a defining byte
1974 * @param[in] defbyte Defining Byte
2030 * @param[in] defbyte Defining Byte if using format 3.
2085 * @param[in] defbyte Defining Byte for GETMXDS format 3.
2114 * @param[in] context Pointer to context byte values