Luis R. Rodriguez | 13b8155 | 2009-09-10 17:52:45 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2008-2009 Atheros Communications Inc. |
| 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef ATH_REGISTERS_H |
| 18 | #define ATH_REGISTERS_H |
| 19 | |
| 20 | /* |
| 21 | * BSSID mask registers. See ath_hw_set_bssid_mask() |
| 22 | * for detailed documentation about these registers. |
| 23 | */ |
| 24 | #define AR_BSSMSKL 0x80e0 |
| 25 | #define AR_BSSMSKU 0x80e4 |
| 26 | |
Bruno Randolf | 1bba5b7 | 2010-09-08 16:04:38 +0900 | [diff] [blame^] | 27 | #define AR_KEYTABLE_0 0x8800 |
| 28 | #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) |
| 29 | #define AR_KEY_CACHE_SIZE 128 |
| 30 | #define AR_RSVD_KEYTABLE_ENTRIES 4 |
| 31 | #define AR_KEY_TYPE 0x00000007 |
| 32 | #define AR_KEYTABLE_TYPE_40 0x00000000 |
| 33 | #define AR_KEYTABLE_TYPE_104 0x00000001 |
| 34 | #define AR_KEYTABLE_TYPE_128 0x00000003 |
| 35 | #define AR_KEYTABLE_TYPE_TKIP 0x00000004 |
| 36 | #define AR_KEYTABLE_TYPE_AES 0x00000005 |
| 37 | #define AR_KEYTABLE_TYPE_CCM 0x00000006 |
| 38 | #define AR_KEYTABLE_TYPE_CLR 0x00000007 |
| 39 | #define AR_KEYTABLE_ANT 0x00000008 |
| 40 | #define AR_KEYTABLE_VALID 0x00008000 |
| 41 | #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0) |
| 42 | #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4) |
| 43 | #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8) |
| 44 | #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12) |
| 45 | #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16) |
| 46 | #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20) |
| 47 | #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24) |
| 48 | #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28) |
| 49 | |
Luis R. Rodriguez | 13b8155 | 2009-09-10 17:52:45 -0700 | [diff] [blame] | 50 | #endif /* ATH_REGISTERS_H */ |