dumpregs_5211.c (196696) | dumpregs_5211.c (287297) |
---|---|
1/*- 2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * | 1/*- 2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * |
29 * $FreeBSD: head/tools/tools/ath/common/dumpregs_5211.c 196696 2009-08-31 13:23:55Z jhb $ | 29 * $FreeBSD: head/tools/tools/ath/common/dumpregs_5211.c 287297 2015-08-29 19:47:20Z rodrigc $ |
30 */ | 30 */ |
31 32#include <sys/param.h> 33 |
|
31#include "diag.h" 32 33#include "ah.h" 34#include "ah_internal.h" 35#include "ar5211/ar5211reg.h" 36#include "ar5211/ar5211phy.h" 37 38#include "dumpregs.h" 39 | 34#include "diag.h" 35 36#include "ah.h" 37#include "ah_internal.h" 38#include "ar5211/ar5211reg.h" 39#include "ar5211/ar5211phy.h" 40 41#include "dumpregs.h" 42 |
40#define N(a) (sizeof(a) / sizeof(a[0])) 41 | |
42static struct dumpreg ar5211regs[] = { 43 DEFBASICfmt(AR_CR, "CR", AR_CR_BITS), 44 DEFBASIC(AR_RXDP, "RXDP"), 45 DEFBASICfmt(AR_CFG, "CFG", AR_CFG_BITS), 46 DEFBASICfmt(AR_IER, "IER", AR_IER_BITS), 47 DEFBASIC(AR_RTSD0, "RTSD0"), 48 DEFBASIC(AR_RTSD1, "RTSD1"), 49 DEFBASICfmt(AR_TXCFG, "TXCFG", AR_TXCFG_BITS), --- 229 unchanged lines hidden (view full) --- 279 DEFVOID(AR_PHY_CURRENT_RSSI,"PHY_CURRENT_RSSI"), 280 DEFVOID(AR5211_PHY_MODE, "PHY_MODE"), 281}; 282 283static __constructor void 284ar5211_ctor(void) 285{ 286#define MAC5211 SREV(2,0), SREV(4,5) | 43static struct dumpreg ar5211regs[] = { 44 DEFBASICfmt(AR_CR, "CR", AR_CR_BITS), 45 DEFBASIC(AR_RXDP, "RXDP"), 46 DEFBASICfmt(AR_CFG, "CFG", AR_CFG_BITS), 47 DEFBASICfmt(AR_IER, "IER", AR_IER_BITS), 48 DEFBASIC(AR_RTSD0, "RTSD0"), 49 DEFBASIC(AR_RTSD1, "RTSD1"), 50 DEFBASICfmt(AR_TXCFG, "TXCFG", AR_TXCFG_BITS), --- 229 unchanged lines hidden (view full) --- 280 DEFVOID(AR_PHY_CURRENT_RSSI,"PHY_CURRENT_RSSI"), 281 DEFVOID(AR5211_PHY_MODE, "PHY_MODE"), 282}; 283 284static __constructor void 285ar5211_ctor(void) 286{ 287#define MAC5211 SREV(2,0), SREV(4,5) |
287 register_regs(ar5211regs, N(ar5211regs), MAC5211, PHYANY); | 288 register_regs(ar5211regs, nitems(ar5211regs), MAC5211, PHYANY); |
288 register_keycache(128, MAC5211, PHYANY); 289 290 register_range(0x9800, 0x987c, DUMP_BASEBAND, MAC5211, PHYANY); 291 register_range(0x9900, 0x995c, DUMP_BASEBAND, MAC5211, PHYANY); 292 register_range(0x9c00, 0x9c1c, DUMP_BASEBAND, MAC5211, PHYANY); 293} | 289 register_keycache(128, MAC5211, PHYANY); 290 291 register_range(0x9800, 0x987c, DUMP_BASEBAND, MAC5211, PHYANY); 292 register_range(0x9900, 0x995c, DUMP_BASEBAND, MAC5211, PHYANY); 293 register_range(0x9c00, 0x9c1c, DUMP_BASEBAND, MAC5211, PHYANY); 294} |