66 lines · c
1/*2 * Copyright (c) 2008-2009 Atheros Communications Inc.3 *4 * Permission to use, copy, modify, and/or distribute this software for any5 * purpose with or without fee is hereby granted, provided that the above6 * copyright notice and this permission notice appear in all copies.7 *8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.15 */16 17#ifndef ATH_REGISTERS_H18#define ATH_REGISTERS_H19 20#define AR_MIBC 0x004021#define AR_MIBC_COW 0x0000000122#define AR_MIBC_FMC 0x0000000223#define AR_MIBC_CMC 0x0000000424#define AR_MIBC_MCS 0x0000000825 26#define AR_STA_ID0 0x800027#define AR_STA_ID1 0x800428#define AR_STA_ID1_SADH_MASK 0x0000ffff29 30/*31 * BSSID mask registers. See ath_hw_set_bssid_mask()32 * for detailed documentation about these registers.33 */34#define AR_BSSMSKL 0x80e035#define AR_BSSMSKU 0x80e436 37#define AR_TFCNT 0x80ec38#define AR_RFCNT 0x80f039#define AR_RCCNT 0x80f440#define AR_CCCNT 0x80f841 42#define AR_KEYTABLE_0 0x880043#define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32))44#define AR_KEY_CACHE_SIZE 12845#define AR_RSVD_KEYTABLE_ENTRIES 446#define AR_KEY_TYPE 0x0000000747#define AR_KEYTABLE_TYPE_40 0x0000000048#define AR_KEYTABLE_TYPE_104 0x0000000149#define AR_KEYTABLE_TYPE_128 0x0000000350#define AR_KEYTABLE_TYPE_TKIP 0x0000000451#define AR_KEYTABLE_TYPE_AES 0x0000000552#define AR_KEYTABLE_TYPE_CCM 0x0000000653#define AR_KEYTABLE_TYPE_CLR 0x0000000754#define AR_KEYTABLE_ANT 0x0000000855#define AR_KEYTABLE_VALID 0x0000800056#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 /* ATH_REGISTERS_H */66