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 #ifndef _RX_MSDU_DETAILS_H_ 20 #define _RX_MSDU_DETAILS_H_ 21 #if !defined(__ASSEMBLER__) 22 #endif 23 24 #include "buffer_addr_info.h" 25 #include "rx_msdu_desc_info.h" 26 27 // ################ START SUMMARY ################# 28 // 29 // Dword Fields 30 // 0-1 struct buffer_addr_info buffer_addr_info_details; 31 // 2-3 struct rx_msdu_desc_info rx_msdu_desc_info_details; 32 // 33 // ################ END SUMMARY ################# 34 35 #define NUM_OF_DWORDS_RX_MSDU_DETAILS 4 36 37 struct rx_msdu_details { 38 struct buffer_addr_info buffer_addr_info_details; 39 struct rx_msdu_desc_info rx_msdu_desc_info_details; 40 }; 41 42 /* 43 44 struct buffer_addr_info buffer_addr_info_details 45 46 Consumer: REO/SW 47 48 Producer: RXDMA 49 50 51 52 Details of the physical address of the buffer containing 53 an MSDU (or entire MPDU) 54 55 struct rx_msdu_desc_info rx_msdu_desc_info_details 56 57 Consumer: REO/SW 58 59 Producer: RXDMA 60 61 62 63 General information related to the MSDU that should be 64 passed on from RXDMA all the way to to the REO destination 65 ring. 66 */ 67 68 #define RX_MSDU_DETAILS_0_BUFFER_ADDR_INFO_BUFFER_ADDR_INFO_DETAILS_OFFSET 0x00000000 69 #define RX_MSDU_DETAILS_0_BUFFER_ADDR_INFO_BUFFER_ADDR_INFO_DETAILS_LSB 0 70 #define RX_MSDU_DETAILS_0_BUFFER_ADDR_INFO_BUFFER_ADDR_INFO_DETAILS_MASK 0xffffffff 71 #define RX_MSDU_DETAILS_1_BUFFER_ADDR_INFO_BUFFER_ADDR_INFO_DETAILS_OFFSET 0x00000004 72 #define RX_MSDU_DETAILS_1_BUFFER_ADDR_INFO_BUFFER_ADDR_INFO_DETAILS_LSB 0 73 #define RX_MSDU_DETAILS_1_BUFFER_ADDR_INFO_BUFFER_ADDR_INFO_DETAILS_MASK 0xffffffff 74 #define RX_MSDU_DETAILS_2_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET 0x00000008 75 #define RX_MSDU_DETAILS_2_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_LSB 0 76 #define RX_MSDU_DETAILS_2_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_MASK 0xffffffff 77 #define RX_MSDU_DETAILS_3_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET 0x0000000c 78 #define RX_MSDU_DETAILS_3_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_LSB 0 79 #define RX_MSDU_DETAILS_3_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_MASK 0xffffffff 80 81 82 #endif // _RX_MSDU_DETAILS_H_ 83