diff options
author | Roman Yeryomin <roman@advem.lv> | 2012-09-13 00:40:35 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2012-12-03 00:13:21 +0200 |
commit | 5deb3317cb51ac52de922bb55f8492624018906d (patch) | |
tree | c2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/include/asm-mips/rtl865x/asicRegs.h | |
parent | 0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff) |
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/include/asm-mips/rtl865x/asicRegs.h')
-rw-r--r-- | target/linux/realtek/files/include/asm-mips/rtl865x/asicRegs.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/realtek/files/include/asm-mips/rtl865x/asicRegs.h b/target/linux/realtek/files/include/asm-mips/rtl865x/asicRegs.h new file mode 100644 index 000000000..7d222604f --- /dev/null +++ b/target/linux/realtek/files/include/asm-mips/rtl865x/asicRegs.h @@ -0,0 +1,40 @@ +/* +* ---------------------------------------------------------------- +* Copyright c Realtek Semiconductor Corporation, 2002 +* All rights reserved. +* +* $Header: /home1/sub1/tmp/cvs2svn/skylark/skylark/skylark/linux-2.6.x/include/asm-mips/rtl865x/asicRegs.h,v 1.1 2007-12-07 05:52:22 alva_zhang Exp $ +* +* Abstract: ASIC specific definitions -- common part. +* +* $Author: alva_zhang $ +* +* ----------------------------------------------------------------- +* The following definitions are shared by 865xB/865xC series IC. +* ----------------------------------------------------------------- +*/ + +#include "rtl_types.h" + +/********************************************************************* + ** ** + ** Common Parts -- Add Common Definitions Here ! ** + ** ** + *********************************************************************/ +#define UNCACHED_ADDRESS(x) ((void *)(0x20000000 | (uint32)x )) +#define CACHED_ADDRESS(x) ((void*)(~0x20000000 & (uint32)x )) +#define PHYSICAL_ADDRESS(x) (((uint32)x) & 0x1fffffff) +#define KSEG0_ADDRESS(x) ((void*)(PHYSICAL_ADDRESS(x) | 0x80000000)) +#define KSEG1_ADDRESS(x) ((void*)(PHYSICAL_ADDRESS(x) | 0xA0000000)) + + +/********************************************************************* + ** ** + ** IC-Dependent Part --Add in the Specific Definitions in its file ** + ** ** + *********************************************************************/ +#ifdef CONFIG_RTL865XC +#include "rtl865xc_asicregs.h" +#else +#include "rtl865xb_asicregs.h" +#endif |