1 /* 2 * Copyright (c) 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 20 #ifndef _PHYRX_COMMON_USER_INFO_H_ 21 #define _PHYRX_COMMON_USER_INFO_H_ 22 #if !defined(__ASSEMBLER__) 23 #endif 24 25 26 // ################ START SUMMARY ################# 27 // 28 // Dword Fields 29 // 0 receive_duration[15:0], reserved_0a[31:16] 30 // 31 // ################ END SUMMARY ################# 32 33 #define NUM_OF_DWORDS_PHYRX_COMMON_USER_INFO 1 34 35 struct phyrx_common_user_info { 36 uint32_t receive_duration : 16, //[15:0] 37 reserved_0a : 16; //[31:16] 38 }; 39 40 /* 41 42 receive_duration 43 44 The remaining receive duration of this PPDU in the 45 medium (in us). 46 47 The timing reference point is the reception by the MAC 48 of this TLV. The value shall be accurate to within 2us 49 50 <legal all> 51 52 reserved_0a 53 54 <legal 0> 55 */ 56 57 58 /* Description PHYRX_COMMON_USER_INFO_0_RECEIVE_DURATION 59 60 The remaining receive duration of this PPDU in the 61 medium (in us). 62 63 The timing reference point is the reception by the MAC 64 of this TLV. The value shall be accurate to within 2us 65 66 <legal all> 67 */ 68 #define PHYRX_COMMON_USER_INFO_0_RECEIVE_DURATION_OFFSET 0x00000000 69 #define PHYRX_COMMON_USER_INFO_0_RECEIVE_DURATION_LSB 0 70 #define PHYRX_COMMON_USER_INFO_0_RECEIVE_DURATION_MASK 0x0000ffff 71 72 /* Description PHYRX_COMMON_USER_INFO_0_RESERVED_0A 73 74 <legal 0> 75 */ 76 #define PHYRX_COMMON_USER_INFO_0_RESERVED_0A_OFFSET 0x00000000 77 #define PHYRX_COMMON_USER_INFO_0_RESERVED_0A_LSB 16 78 #define PHYRX_COMMON_USER_INFO_0_RESERVED_0A_MASK 0xffff0000 79 80 81 #endif // _PHYRX_COMMON_USER_INFO_H_ 82