1 2 /* 3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18 19 20 #ifndef _RX_TRIG_INFO_H_ 21 #define _RX_TRIG_INFO_H_ 22 #if !defined(__ASSEMBLER__) 23 #endif 24 25 #define NUM_OF_DWORDS_RX_TRIG_INFO 2 26 27 #define NUM_OF_QWORDS_RX_TRIG_INFO 1 28 29 struct rx_trig_info { 30 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 31 uint32_t rx_trigger_frame_type : 2, 32 trigger_resp_type : 3, 33 reserved_0 : 27; 34 uint32_t ppdu_duration : 16, 35 unique_destination_id : 16; 36 #else 37 uint32_t reserved_0 : 27, 38 trigger_resp_type : 3, 39 rx_trigger_frame_type : 2; 40 uint32_t unique_destination_id : 16, 41 ppdu_duration : 16; 42 #endif 43 }; 44 45 #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_OFFSET 0x0000000000000000 46 #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_LSB 0 47 #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_MSB 1 48 #define RX_TRIG_INFO_RX_TRIGGER_FRAME_TYPE_MASK 0x0000000000000003 49 50 #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_OFFSET 0x0000000000000000 51 #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_LSB 2 52 #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_MSB 4 53 #define RX_TRIG_INFO_TRIGGER_RESP_TYPE_MASK 0x000000000000001c 54 55 #define RX_TRIG_INFO_RESERVED_0_OFFSET 0x0000000000000000 56 #define RX_TRIG_INFO_RESERVED_0_LSB 5 57 #define RX_TRIG_INFO_RESERVED_0_MSB 31 58 #define RX_TRIG_INFO_RESERVED_0_MASK 0x00000000ffffffe0 59 60 #define RX_TRIG_INFO_PPDU_DURATION_OFFSET 0x0000000000000000 61 #define RX_TRIG_INFO_PPDU_DURATION_LSB 32 62 #define RX_TRIG_INFO_PPDU_DURATION_MSB 47 63 #define RX_TRIG_INFO_PPDU_DURATION_MASK 0x0000ffff00000000 64 65 #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_OFFSET 0x0000000000000000 66 #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_LSB 48 67 #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_MSB 63 68 #define RX_TRIG_INFO_UNIQUE_DESTINATION_ID_MASK 0xffff000000000000 69 70 #endif 71