113b81559SLuis R. Rodriguez /* 213b81559SLuis R. Rodriguez * Copyright (c) 2008-2009 Atheros Communications Inc. 313b81559SLuis R. Rodriguez * 413b81559SLuis R. Rodriguez * Permission to use, copy, modify, and/or distribute this software for any 513b81559SLuis R. Rodriguez * purpose with or without fee is hereby granted, provided that the above 613b81559SLuis R. Rodriguez * copyright notice and this permission notice appear in all copies. 713b81559SLuis R. Rodriguez * 813b81559SLuis R. Rodriguez * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 913b81559SLuis R. Rodriguez * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1013b81559SLuis R. Rodriguez * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1113b81559SLuis R. Rodriguez * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1213b81559SLuis R. Rodriguez * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1313b81559SLuis R. Rodriguez * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1413b81559SLuis R. Rodriguez * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1513b81559SLuis R. Rodriguez */ 1613b81559SLuis R. Rodriguez 1713b81559SLuis R. Rodriguez #ifndef ATH_REGISTERS_H 1813b81559SLuis R. Rodriguez #define ATH_REGISTERS_H 1913b81559SLuis R. Rodriguez 2013b81559SLuis R. Rodriguez /* 2113b81559SLuis R. Rodriguez * BSSID mask registers. See ath_hw_set_bssid_mask() 2213b81559SLuis R. Rodriguez * for detailed documentation about these registers. 2313b81559SLuis R. Rodriguez */ 2413b81559SLuis R. Rodriguez #define AR_BSSMSKL 0x80e0 2513b81559SLuis R. Rodriguez #define AR_BSSMSKU 0x80e4 2613b81559SLuis R. Rodriguez 271bba5b73SBruno Randolf #define AR_KEYTABLE_0 0x8800 281bba5b73SBruno Randolf #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) 291bba5b73SBruno Randolf #define AR_KEY_CACHE_SIZE 128 301bba5b73SBruno Randolf #define AR_RSVD_KEYTABLE_ENTRIES 4 311bba5b73SBruno Randolf #define AR_KEY_TYPE 0x00000007 321bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE_40 0x00000000 331bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE_104 0x00000001 341bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE_128 0x00000003 351bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE_TKIP 0x00000004 361bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE_AES 0x00000005 371bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE_CCM 0x00000006 381bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE_CLR 0x00000007 391bba5b73SBruno Randolf #define AR_KEYTABLE_ANT 0x00000008 401bba5b73SBruno Randolf #define AR_KEYTABLE_VALID 0x00008000 411bba5b73SBruno Randolf #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0) 421bba5b73SBruno Randolf #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4) 431bba5b73SBruno Randolf #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8) 441bba5b73SBruno Randolf #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12) 451bba5b73SBruno Randolf #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16) 461bba5b73SBruno Randolf #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20) 471bba5b73SBruno Randolf #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24) 481bba5b73SBruno Randolf #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28) 491bba5b73SBruno Randolf 5013b81559SLuis R. Rodriguez #endif /* ATH_REGISTERS_H */ 51