hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/** @file */
/******************************************************************************
 *
 * Copyright(c) 2019 Realtek Corporation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 ******************************************************************************/
 
#ifndef _MAC_AX_MAC_INFO_H_
#define _MAC_AX_MAC_INFO_H_
 
/* dword0 */
#define AX_MAC_INFO_USR_NUM_SH        0
#define AX_MAC_INFO_USR_NUM_MSK        0xf
#define AX_MAC_INFO_FW_DEFINE_SH        8
#define AX_MAC_INFO_FW_DEFINE_MSK        0xff
#define AX_MAC_INFO_LSIG_LEN_SH        16
#define AX_MAC_INFO_LSIG_LEN_MSK        0xfff
#define AX_MAC_INFO_IS_TO_SELF        BIT(28)
#define AX_MAC_INFO_RX_CNT_VLD        BIT(29)
#define AX_MAC_INFO_LONG_RXD_SH        30
#define AX_MAC_INFO_LONG_RXD_MSK        0x3
 
/* dword1 */
#define AX_MAC_INFO_SERVICE_SH        0
#define AX_MAC_INFO_SERVICE_MSK        0xffff
#define AX_MAC_INFO_PLCP_LEN_SH        16
#define AX_MAC_INFO_PLCP_LEN_MSK        0xff
 
/* dword2 */
#define AX_MAC_INFO_MAC_ID_VALID        BIT(0)
#define AX_MAC_INFO_HAS_DATA        BIT(1)
#define AX_MAC_INFO_HAS_CTRL        BIT(2)
#define AX_MAC_INFO_HAS_MGNT        BIT(3)
#define AX_MAC_INFO_HAS_BCN        BIT(4)
#define AX_MAC_INFO_MACID_SH        8
#define AX_MAC_INFO_MACID_MSK        0xff
 
#endif