X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fs3c24xx%2Ffiles-2.6.30%2Fdrivers%2Far6000%2Finclude%2Fregdump.h;fp=target%2Flinux%2Fs3c24xx%2Ffiles-2.6.30%2Fdrivers%2Far6000%2Finclude%2Fregdump.h;h=0106825ce2735db99f8ec269dac6331da157cf81;hb=fb189822fcab111e55d1c7e83c482dc2c144500a;hp=0000000000000000000000000000000000000000;hpb=c5f7c391b56bb88e21895f0fc9310cd0919e8d0c;p=openwrt.git diff --git a/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/regdump.h b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/regdump.h new file mode 100644 index 0000000000..0106825ce2 --- /dev/null +++ b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/regdump.h @@ -0,0 +1,33 @@ +#ifndef __REGDUMP_H__ +#define __REGDUMP_H__ +/* + * Copyright (c) 2004-2007 Atheros Communications Inc. + * All rights reserved. + * + * $ATH_LICENSE_HOSTSDK0_C$ + * + */ +#if defined(AR6001) +#include "AR6001/AR6001_regdump.h" +#endif +#if defined(AR6002) +#include "AR6002/AR6002_regdump.h" +#endif + +#if !defined(__ASSEMBLER__) +/* + * Target CPU state at the time of failure is reflected + * in a register dump, which the Host can fetch through + * the diagnostic window. + */ +struct register_dump_s { + A_UINT32 target_id; /* Target ID */ + A_UINT32 assline; /* Line number (if assertion failure) */ + A_UINT32 pc; /* Program Counter at time of exception */ + A_UINT32 badvaddr; /* Virtual address causing exception */ + CPU_exception_frame_t exc_frame; /* CPU-specific exception info */ + + /* Could copy top of stack here, too.... */ +}; +#endif /* __ASSEMBLER__ */ +#endif /* __REGDUMP_H__ */