1 /* 2 * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 #ifndef _RX_TIMING_OFFSET_INFO_H_ 20 #define _RX_TIMING_OFFSET_INFO_H_ 21 #if !defined(__ASSEMBLER__) 22 #endif 23 24 25 // ################ START SUMMARY ################# 26 // 27 // Dword Fields 28 // 0 residual_phase_offset[11:0], reserved[31:12] 29 // 30 // ################ END SUMMARY ################# 31 32 #define NUM_OF_DWORDS_RX_TIMING_OFFSET_INFO 1 33 34 struct rx_timing_offset_info { 35 uint32_t residual_phase_offset : 12, //[11:0] 36 reserved : 20; //[31:12] 37 }; 38 39 /* 40 41 residual_phase_offset 42 43 Cumulative reference frequency error at end of RX 44 45 <legal all> 46 47 reserved 48 49 <legal 0> 50 */ 51 52 53 /* Description RX_TIMING_OFFSET_INFO_0_RESIDUAL_PHASE_OFFSET 54 55 Cumulative reference frequency error at end of RX 56 57 <legal all> 58 */ 59 #define RX_TIMING_OFFSET_INFO_0_RESIDUAL_PHASE_OFFSET_OFFSET 0x00000000 60 #define RX_TIMING_OFFSET_INFO_0_RESIDUAL_PHASE_OFFSET_LSB 0 61 #define RX_TIMING_OFFSET_INFO_0_RESIDUAL_PHASE_OFFSET_MASK 0x00000fff 62 63 /* Description RX_TIMING_OFFSET_INFO_0_RESERVED 64 65 <legal 0> 66 */ 67 #define RX_TIMING_OFFSET_INFO_0_RESERVED_OFFSET 0x00000000 68 #define RX_TIMING_OFFSET_INFO_0_RESERVED_LSB 12 69 #define RX_TIMING_OFFSET_INFO_0_RESERVED_MASK 0xfffff000 70 71 72 #endif // _RX_TIMING_OFFSET_INFO_H_ 73