diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/sh | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'arch/sh')
68 files changed, 4081 insertions, 0 deletions
diff --git a/arch/sh/include/asm/auxvec.h b/arch/sh/include/asm/auxvec.h new file mode 100644 index 00000000000..483effd65e0 --- /dev/null +++ b/arch/sh/include/asm/auxvec.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #ifndef __ASM_SH_AUXVEC_H | ||
| 2 | #define __ASM_SH_AUXVEC_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Architecture-neutral AT_ values in 0-17, leave some room | ||
| 6 | * for more of them. | ||
| 7 | */ | ||
| 8 | |||
| 9 | /* | ||
| 10 | * This entry gives some information about the FPU initialization | ||
| 11 | * performed by the kernel. | ||
| 12 | */ | ||
| 13 | #define AT_FPUCW 18 /* Used FPU control word. */ | ||
| 14 | |||
| 15 | #if defined(CONFIG_VSYSCALL) || !defined(__KERNEL__) | ||
| 16 | /* | ||
| 17 | * Only define this in the vsyscall case, the entry point to | ||
| 18 | * the vsyscall page gets placed here. The kernel will attempt | ||
| 19 | * to build a gate VMA we don't care about otherwise.. | ||
| 20 | */ | ||
| 21 | #define AT_SYSINFO_EHDR 33 | ||
| 22 | #endif | ||
| 23 | |||
| 24 | /* | ||
| 25 | * More complete cache descriptions than AT_[DIU]CACHEBSIZE. If the | ||
| 26 | * value is -1, then the cache doesn't exist. Otherwise: | ||
| 27 | * | ||
| 28 | * bit 0-3: Cache set-associativity; 0 means fully associative. | ||
| 29 | * bit 4-7: Log2 of cacheline size. | ||
| 30 | * bit 8-31: Size of the entire cache >> 8. | ||
| 31 | */ | ||
| 32 | #define AT_L1I_CACHESHAPE 34 | ||
| 33 | #define AT_L1D_CACHESHAPE 35 | ||
| 34 | #define AT_L2_CACHESHAPE 36 | ||
| 35 | |||
| 36 | #endif /* __ASM_SH_AUXVEC_H */ | ||
diff --git a/arch/sh/include/asm/bitsperlong.h b/arch/sh/include/asm/bitsperlong.h new file mode 100644 index 00000000000..6dc0bb0c13b --- /dev/null +++ b/arch/sh/include/asm/bitsperlong.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/bitsperlong.h> | |||
diff --git a/arch/sh/include/asm/byteorder.h b/arch/sh/include/asm/byteorder.h new file mode 100644 index 00000000000..db2f5d7cb17 --- /dev/null +++ b/arch/sh/include/asm/byteorder.h | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #ifndef __ASM_SH_BYTEORDER_H | ||
| 2 | #define __ASM_SH_BYTEORDER_H | ||
| 3 | |||
| 4 | #ifdef __LITTLE_ENDIAN__ | ||
| 5 | #include <linux/byteorder/little_endian.h> | ||
| 6 | #else | ||
| 7 | #include <linux/byteorder/big_endian.h> | ||
| 8 | #endif | ||
| 9 | |||
| 10 | #endif /* __ASM_SH_BYTEORDER_H */ | ||
diff --git a/arch/sh/include/asm/cachectl.h b/arch/sh/include/asm/cachectl.h new file mode 100644 index 00000000000..6ffb4b7a212 --- /dev/null +++ b/arch/sh/include/asm/cachectl.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #ifndef _SH_CACHECTL_H | ||
| 2 | #define _SH_CACHECTL_H | ||
| 3 | |||
| 4 | /* Definitions for the cacheflush system call. */ | ||
| 5 | |||
| 6 | #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */ | ||
| 7 | #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */ | ||
| 8 | #define CACHEFLUSH_D_PURGE 0x3 /* writeback and invalidate */ | ||
| 9 | |||
| 10 | #define CACHEFLUSH_I 0x4 | ||
| 11 | |||
| 12 | /* | ||
| 13 | * Options for cacheflush system call | ||
| 14 | */ | ||
| 15 | #define ICACHE CACHEFLUSH_I /* flush instruction cache */ | ||
| 16 | #define DCACHE CACHEFLUSH_D_PURGE /* writeback and flush data cache */ | ||
| 17 | #define BCACHE (ICACHE|DCACHE) /* flush both caches */ | ||
| 18 | |||
| 19 | #endif /* _SH_CACHECTL_H */ | ||
diff --git a/arch/sh/include/asm/cpu-features.h b/arch/sh/include/asm/cpu-features.h new file mode 100644 index 00000000000..694abe490ed --- /dev/null +++ b/arch/sh/include/asm/cpu-features.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | #ifndef __ASM_SH_CPU_FEATURES_H | ||
| 2 | #define __ASM_SH_CPU_FEATURES_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Processor flags | ||
| 6 | * | ||
| 7 | * Note: When adding a new flag, keep cpu_flags[] in | ||
| 8 | * arch/sh/kernel/setup.c in sync so symbolic name | ||
| 9 | * mapping of the processor flags has a chance of being | ||
| 10 | * reasonably accurate. | ||
| 11 | * | ||
| 12 | * These flags are also available through the ELF | ||
| 13 | * auxiliary vector as AT_HWCAP. | ||
| 14 | */ | ||
| 15 | #define CPU_HAS_FPU 0x0001 /* Hardware FPU support */ | ||
| 16 | #define CPU_HAS_P2_FLUSH_BUG 0x0002 /* Need to flush the cache in P2 area */ | ||
| 17 | #define CPU_HAS_MMU_PAGE_ASSOC 0x0004 /* SH3: TLB way selection bit support */ | ||
| 18 | #define CPU_HAS_DSP 0x0008 /* SH-DSP: DSP support */ | ||
| 19 | #define CPU_HAS_PERF_COUNTER 0x0010 /* Hardware performance counters */ | ||
| 20 | #define CPU_HAS_PTEA 0x0020 /* PTEA register */ | ||
| 21 | #define CPU_HAS_LLSC 0x0040 /* movli.l/movco.l */ | ||
| 22 | #define CPU_HAS_L2_CACHE 0x0080 /* Secondary cache / URAM */ | ||
| 23 | #define CPU_HAS_OP32 0x0100 /* 32-bit instruction support */ | ||
| 24 | #define CPU_HAS_PTEAEX 0x0200 /* PTE ASID Extension support */ | ||
| 25 | |||
| 26 | #endif /* __ASM_SH_CPU_FEATURES_H */ | ||
diff --git a/arch/sh/include/asm/cputime.h b/arch/sh/include/asm/cputime.h new file mode 100644 index 00000000000..6ca395d1393 --- /dev/null +++ b/arch/sh/include/asm/cputime.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #ifndef __SH_CPUTIME_H | ||
| 2 | #define __SH_CPUTIME_H | ||
| 3 | |||
| 4 | #include <asm-generic/cputime.h> | ||
| 5 | |||
| 6 | #endif /* __SH_CPUTIME_H */ | ||
diff --git a/arch/sh/include/asm/current.h b/arch/sh/include/asm/current.h new file mode 100644 index 00000000000..4c51401b553 --- /dev/null +++ b/arch/sh/include/asm/current.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/current.h> | |||
diff --git a/arch/sh/include/asm/delay.h b/arch/sh/include/asm/delay.h new file mode 100644 index 00000000000..9670e127b7b --- /dev/null +++ b/arch/sh/include/asm/delay.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/delay.h> | |||
diff --git a/arch/sh/include/asm/div64.h b/arch/sh/include/asm/div64.h new file mode 100644 index 00000000000..6cd978cefb2 --- /dev/null +++ b/arch/sh/include/asm/div64.h | |||
| @@ -0,0 +1 @@ | |||
| #include <asm-generic/div64.h> | |||
