0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef ATH_REGISTERS_H
0018 #define ATH_REGISTERS_H
0019
0020 #define AR_MIBC 0x0040
0021 #define AR_MIBC_COW 0x00000001
0022 #define AR_MIBC_FMC 0x00000002
0023 #define AR_MIBC_CMC 0x00000004
0024 #define AR_MIBC_MCS 0x00000008
0025
0026 #define AR_STA_ID0 0x8000
0027 #define AR_STA_ID1 0x8004
0028 #define AR_STA_ID1_SADH_MASK 0x0000ffff
0029
0030
0031
0032
0033
0034 #define AR_BSSMSKL 0x80e0
0035 #define AR_BSSMSKU 0x80e4
0036
0037 #define AR_TFCNT 0x80ec
0038 #define AR_RFCNT 0x80f0
0039 #define AR_RCCNT 0x80f4
0040 #define AR_CCCNT 0x80f8
0041
0042 #define AR_KEYTABLE_0 0x8800
0043 #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32))
0044 #define AR_KEY_CACHE_SIZE 128
0045 #define AR_RSVD_KEYTABLE_ENTRIES 4
0046 #define AR_KEY_TYPE 0x00000007
0047 #define AR_KEYTABLE_TYPE_40 0x00000000
0048 #define AR_KEYTABLE_TYPE_104 0x00000001
0049 #define AR_KEYTABLE_TYPE_128 0x00000003
0050 #define AR_KEYTABLE_TYPE_TKIP 0x00000004
0051 #define AR_KEYTABLE_TYPE_AES 0x00000005
0052 #define AR_KEYTABLE_TYPE_CCM 0x00000006
0053 #define AR_KEYTABLE_TYPE_CLR 0x00000007
0054 #define AR_KEYTABLE_ANT 0x00000008
0055 #define AR_KEYTABLE_VALID 0x00008000
0056 #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0)
0057 #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4)
0058 #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8)
0059 #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12)
0060 #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16)
0061 #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20)
0062 #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24)
0063 #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28)
0064
0065 #endif