1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #ifndef ATH_REGISTERS_H
18 #define ATH_REGISTERS_H
19
20 #define AR_MIBC 0x0040
21 #define AR_MIBC_COW 0x00000001
22 #define AR_MIBC_FMC 0x00000002
23 #define AR_MIBC_CMC 0x00000004
24 #define AR_MIBC_MCS 0x00000008
25
26 #define AR_STA_ID0 0x8000
27 #define AR_STA_ID1 0x8004
28 #define AR_STA_ID1_SADH_MASK 0x0000ffff
29
30
31
32
33
34 #define AR_BSSMSKL 0x80e0
35 #define AR_BSSMSKU 0x80e4
36
37 #define AR_TFCNT 0x80ec
38 #define AR_RFCNT 0x80f0
39 #define AR_RCCNT 0x80f4
40 #define AR_CCCNT 0x80f8
41
42 #define AR_KEYTABLE_0 0x8800
43 #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32))
44 #define AR_KEY_CACHE_SIZE 128
45 #define AR_RSVD_KEYTABLE_ENTRIES 4
46 #define AR_KEY_TYPE 0x00000007
47 #define AR_KEYTABLE_TYPE_40 0x00000000
48 #define AR_KEYTABLE_TYPE_104 0x00000001
49 #define AR_KEYTABLE_TYPE_128 0x00000003
50 #define AR_KEYTABLE_TYPE_TKIP 0x00000004
51 #define AR_KEYTABLE_TYPE_AES 0x00000005
52 #define AR_KEYTABLE_TYPE_CCM 0x00000006
53 #define AR_KEYTABLE_TYPE_CLR 0x00000007
54 #define AR_KEYTABLE_ANT 0x00000008
55 #define AR_KEYTABLE_VALID 0x00008000
56 #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0)
57 #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4)
58 #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8)
59 #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12)
60 #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16)
61 #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20)
62 #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24)
63 #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28)
64
65 #endif