Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2008-2009 Atheros Communications Inc.
0003  *
0004  * Permission to use, copy, modify, and/or distribute this software for any
0005  * purpose with or without fee is hereby granted, provided that the above
0006  * copyright notice and this permission notice appear in all copies.
0007  *
0008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0011  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0013  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0014  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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  * BSSID mask registers. See ath_hw_set_bssid_mask()
0032  * for detailed documentation about these registers.
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 /* ATH_REGISTERS_H */