dumpregs.h

来自「Atheros wifi driver source code」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef _DUMPREGS_#define	_DUMPREGS_/* * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting * Copyright (c) 2002-2005 Atheros Communications, Inc. * All rights reserved. * * $Id: dumpregs.h,v 1.1.1.1 2006/09/12 03:45:22 steven Exp $ */extern	u_int32_t regdata[0xffff / sizeof(u_int32_t)];#undef OS_REG_READ#define	OS_REG_READ(ah, off)	regdata[(off) >> 2]typedef struct {	const char*	label;	u_int		reg;} HAL_REG;enum {	DUMP_BASIC	= 0x0001,	/* basic/default registers */	DUMP_KEYCACHE	= 0x0002,	/* key cache */	DUMP_BASEBAND	= 0x0004,	/* baseband */	DUMP_INTERRUPT	= 0x0008,	/* interrupt state */	DUMP_XR		= 0x0010,	/* XR state */	DUMP_QCU	= 0x0020,	/* QCU state */	DUMP_DCU	= 0x0040,	/* DCU state */	DUMP_PUBLIC	= 0x0061,	/* public = BASIC+QCU+DCU */	DUMP_ALL	= 0xffff};extern	u_int ath_hal_setupdiagregs(const HAL_REGRANGE regs[], u_int nr);extern	void ath_hal_dumprange(FILE *fd, u_int a, u_int b);extern	void ath_hal_dumpregs(FILE *fd, const HAL_REG regs[], u_int nregs);extern	void ath_hal_dumpkeycache(FILE *fd, int nkeys, int micEnabled);#endif /* _DUMPREGS_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?