123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- /*
- * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
- #ifndef _RX_PREAMBLE_H_
- #define _RX_PREAMBLE_H_
- #define NUM_OF_DWORDS_RX_PREAMBLE 1
- struct rx_preamble {
- #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
- uint32_t num_users : 6,
- pkt_type : 4,
- direction : 1,
- reserved_0a : 21;
- #else
- uint32_t reserved_0a : 21,
- direction : 1,
- pkt_type : 4,
- num_users : 6;
- #endif
- };
- #define RX_PREAMBLE_NUM_USERS_OFFSET 0x00000000
- #define RX_PREAMBLE_NUM_USERS_LSB 0
- #define RX_PREAMBLE_NUM_USERS_MSB 5
- #define RX_PREAMBLE_NUM_USERS_MASK 0x0000003f
- #define RX_PREAMBLE_PKT_TYPE_OFFSET 0x00000000
- #define RX_PREAMBLE_PKT_TYPE_LSB 6
- #define RX_PREAMBLE_PKT_TYPE_MSB 9
- #define RX_PREAMBLE_PKT_TYPE_MASK 0x000003c0
- #define RX_PREAMBLE_DIRECTION_OFFSET 0x00000000
- #define RX_PREAMBLE_DIRECTION_LSB 10
- #define RX_PREAMBLE_DIRECTION_MSB 10
- #define RX_PREAMBLE_DIRECTION_MASK 0x00000400
- #define RX_PREAMBLE_RESERVED_0A_OFFSET 0x00000000
- #define RX_PREAMBLE_RESERVED_0A_LSB 11
- #define RX_PREAMBLE_RESERVED_0A_MSB 31
- #define RX_PREAMBLE_RESERVED_0A_MASK 0xfffff800
- #endif
|