2
* Copyright (c) 2008-2009 Atheros Communications Inc.
4
* Modified for iPXE by Scott K Logan <logans@cottsay.net> July 2011
5
* Original from Linux kernel 3.0.1
7
* Permission to use, copy, modify, and/or distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20
#ifndef ATH_REGISTERS_H
21
#define ATH_REGISTERS_H
23
FILE_LICENCE ( BSD2 );
25
#define AR_MIBC 0x0040
26
#define AR_MIBC_COW 0x00000001
27
#define AR_MIBC_FMC 0x00000002
28
#define AR_MIBC_CMC 0x00000004
29
#define AR_MIBC_MCS 0x00000008
32
* BSSID mask registers. See ath_hw_set_bssid_mask()
33
* for detailed documentation about these registers.
35
#define AR_BSSMSKL 0x80e0
36
#define AR_BSSMSKU 0x80e4
38
#define AR_TFCNT 0x80ec
39
#define AR_RFCNT 0x80f0
40
#define AR_RCCNT 0x80f4
41
#define AR_CCCNT 0x80f8
43
#define AR_KEYTABLE_0 0x8800
44
#define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32))
45
#define AR_KEY_CACHE_SIZE 128
46
#define AR_RSVD_KEYTABLE_ENTRIES 4
47
#define AR_KEY_TYPE 0x00000007
48
#define AR_KEYTABLE_TYPE_40 0x00000000
49
#define AR_KEYTABLE_TYPE_104 0x00000001
50
#define AR_KEYTABLE_TYPE_128 0x00000003
51
#define AR_KEYTABLE_TYPE_TKIP 0x00000004
52
#define AR_KEYTABLE_TYPE_AES 0x00000005
53
#define AR_KEYTABLE_TYPE_CCM 0x00000006
54
#define AR_KEYTABLE_TYPE_CLR 0x00000007
55
#define AR_KEYTABLE_ANT 0x00000008
56
#define AR_KEYTABLE_VALID 0x00008000
57
#define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0)
58
#define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4)
59
#define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8)
60
#define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12)
61
#define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16)
62
#define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20)
63
#define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24)
64
#define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28)
66
#endif /* ATH_REGISTERS_H */