Changeset View
Changeset View
Standalone View
Standalone View
head/tools/tools/ath/common/dumpregs_5211.c
Show All 22 Lines | |||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | ||||
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | ||||
* THE POSSIBILITY OF SUCH DAMAGES. | * THE POSSIBILITY OF SUCH DAMAGES. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <sys/param.h> | |||||
#include "diag.h" | #include "diag.h" | ||||
#include "ah.h" | #include "ah.h" | ||||
#include "ah_internal.h" | #include "ah_internal.h" | ||||
#include "ar5211/ar5211reg.h" | #include "ar5211/ar5211reg.h" | ||||
#include "ar5211/ar5211phy.h" | #include "ar5211/ar5211phy.h" | ||||
#include "dumpregs.h" | #include "dumpregs.h" | ||||
#define N(a) (sizeof(a) / sizeof(a[0])) | |||||
static struct dumpreg ar5211regs[] = { | static struct dumpreg ar5211regs[] = { | ||||
DEFBASICfmt(AR_CR, "CR", AR_CR_BITS), | DEFBASICfmt(AR_CR, "CR", AR_CR_BITS), | ||||
DEFBASIC(AR_RXDP, "RXDP"), | DEFBASIC(AR_RXDP, "RXDP"), | ||||
DEFBASICfmt(AR_CFG, "CFG", AR_CFG_BITS), | DEFBASICfmt(AR_CFG, "CFG", AR_CFG_BITS), | ||||
DEFBASICfmt(AR_IER, "IER", AR_IER_BITS), | DEFBASICfmt(AR_IER, "IER", AR_IER_BITS), | ||||
DEFBASIC(AR_RTSD0, "RTSD0"), | DEFBASIC(AR_RTSD0, "RTSD0"), | ||||
DEFBASIC(AR_RTSD1, "RTSD1"), | DEFBASIC(AR_RTSD1, "RTSD1"), | ||||
DEFBASICfmt(AR_TXCFG, "TXCFG", AR_TXCFG_BITS), | DEFBASICfmt(AR_TXCFG, "TXCFG", AR_TXCFG_BITS), | ||||
▲ Show 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | #endif | ||||
DEFVOID(AR_PHY_CURRENT_RSSI,"PHY_CURRENT_RSSI"), | DEFVOID(AR_PHY_CURRENT_RSSI,"PHY_CURRENT_RSSI"), | ||||
DEFVOID(AR5211_PHY_MODE, "PHY_MODE"), | DEFVOID(AR5211_PHY_MODE, "PHY_MODE"), | ||||
}; | }; | ||||
static __constructor void | static __constructor void | ||||
ar5211_ctor(void) | ar5211_ctor(void) | ||||
{ | { | ||||
#define MAC5211 SREV(2,0), SREV(4,5) | #define MAC5211 SREV(2,0), SREV(4,5) | ||||
register_regs(ar5211regs, N(ar5211regs), MAC5211, PHYANY); | register_regs(ar5211regs, nitems(ar5211regs), MAC5211, PHYANY); | ||||
register_keycache(128, MAC5211, PHYANY); | register_keycache(128, MAC5211, PHYANY); | ||||
register_range(0x9800, 0x987c, DUMP_BASEBAND, MAC5211, PHYANY); | register_range(0x9800, 0x987c, DUMP_BASEBAND, MAC5211, PHYANY); | ||||
register_range(0x9900, 0x995c, DUMP_BASEBAND, MAC5211, PHYANY); | register_range(0x9900, 0x995c, DUMP_BASEBAND, MAC5211, PHYANY); | ||||
register_range(0x9c00, 0x9c1c, DUMP_BASEBAND, MAC5211, PHYANY); | register_range(0x9c00, 0x9c1c, DUMP_BASEBAND, MAC5211, PHYANY); | ||||
} | } |