aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/checksum_64.h16
-rw-r--r--include/asm-sh/cpu-sh5/cache.h15
-rw-r--r--include/asm-sh/cpu-sh5/cacheflush.h6
-rw-r--r--include/asm-sh/cpu-sh5/irq.h15
-rw-r--r--include/asm-sh/cpu-sh5/registers.h16
-rw-r--r--include/asm-sh/pgtable_64.h19
-rw-r--r--include/asm-sh/string_64.h18
-rw-r--r--include/asm-sh/uaccess_64.h16
-rw-r--r--include/asm-sh/unistd_64.h18
9 files changed, 63 insertions, 76 deletions
diff --git a/include/asm-sh/checksum_64.h b/include/asm-sh/checksum_64.h
index ec79b92e6bdc..9c62a031a8f5 100644
--- a/include/asm-sh/checksum_64.h
+++ b/include/asm-sh/checksum_64.h
@@ -1,15 +1,14 @@
1#ifndef __ASM_SH64_CHECKSUM_H 1#ifndef __ASM_SH_CHECKSUM_64_H
2#define __ASM_SH64_CHECKSUM_H 2#define __ASM_SH_CHECKSUM_64_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/checksum_64.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 *
9 * include/asm-sh64/checksum.h
10 * 6 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 7 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * 8 *
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file "COPYING" in the main directory of this archive
11 * for more details.
13 */ 12 */
14 13
15/* 14/*
@@ -76,5 +75,4 @@ static inline __sum16 ip_compute_csum(const void *buff, int len)
76 return csum_fold(csum_partial(buff, len, 0)); 75 return csum_fold(csum_partial(buff, len, 0));
77} 76}
78 77
79#endif /* __ASM_SH64_CHECKSUM_H */ 78#endif /* __ASM_SH_CHECKSUM_64_H */
80
diff --git a/include/asm-sh/cpu-sh5/cache.h b/include/asm-sh/cpu-sh5/cache.h
index 7eaa8894649f..ed050ab526f2 100644
--- a/include/asm-sh/cpu-sh5/cache.h
+++ b/include/asm-sh/cpu-sh5/cache.h
@@ -1,16 +1,15 @@
1#ifndef __ASM_SH64_CACHE_H 1#ifndef __ASM_SH_CPU_SH5_CACHE_H
2#define __ASM_SH64_CACHE_H 2#define __ASM_SH_CPU_SH5_CACHE_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/cpu-sh5/cache.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 *
9 * include/asm-sh64/cache.h
10 * 6 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 7 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * Copyright (C) 2003, 2004 Paul Mundt 8 * Copyright (C) 2003, 2004 Paul Mundt
13 * 9 *
10 * This file is subject to the terms and conditions of the GNU General Public
11 * License. See the file "COPYING" in the main directory of this archive
12 * for more details.
14 */ 13 */
15 14
16#define L1_CACHE_SHIFT 5 15#define L1_CACHE_SHIFT 5
@@ -95,4 +94,4 @@
95 * No Instruction Cache defines required, then. 94 * No Instruction Cache defines required, then.
96 */ 95 */
97 96
98#endif /* __ASM_SH64_CACHE_H */ 97#endif /* __ASM_SH_CPU_SH5_CACHE_H */
diff --git a/include/asm-sh/cpu-sh5/cacheflush.h b/include/asm-sh/cpu-sh5/cacheflush.h
index 45d12d6f89c2..98edb5b1da32 100644
--- a/include/asm-sh/cpu-sh5/cacheflush.h
+++ b/include/asm-sh/cpu-sh5/cacheflush.h
@@ -1,5 +1,5 @@
1#ifndef __ASM_SH64_CACHEFLUSH_H 1#ifndef __ASM_SH_CPU_SH5_CACHEFLUSH_H
2#define __ASM_SH64_CACHEFLUSH_H 2#define __ASM_SH_CPU_SH5_CACHEFLUSH_H
3 3
4#ifndef __ASSEMBLY__ 4#ifndef __ASSEMBLY__
5 5
@@ -31,5 +31,5 @@ extern void flush_icache_user_range(struct vm_area_struct *vma,
31 31
32#endif /* __ASSEMBLY__ */ 32#endif /* __ASSEMBLY__ */
33 33
34#endif /* __ASM_SH64_CACHEFLUSH_H */ 34#endif /* __ASM_SH_CPU_SH5_CACHEFLUSH_H */
35 35
diff --git a/include/asm-sh/cpu-sh5/irq.h b/include/asm-sh/cpu-sh5/irq.h
index f539baec8529..f0f0756e6e84 100644
--- a/include/asm-sh/cpu-sh5/irq.h
+++ b/include/asm-sh/cpu-sh5/irq.h
@@ -1,15 +1,14 @@
1#ifndef __ASM_SH64_IRQ_H 1#ifndef __ASM_SH_CPU_SH5_IRQ_H
2#define __ASM_SH64_IRQ_H 2#define __ASM_SH_CPU_SH5_IRQ_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/cpu-sh5/irq.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 *
9 * include/asm-sh64/irq.h
10 * 6 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 7 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * 8 *
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License. See the file "COPYING" in the main directory of this archive
11 * for more details.
13 */ 12 */
14 13
15 14
@@ -115,4 +114,4 @@ extern int intc_evt_to_irq[(0xE20/0x20)+1];
115int intc_irq_describe(char* p, int irq); 114int intc_irq_describe(char* p, int irq);
116extern int platform_int_priority[NR_INTC_IRQS]; 115extern int platform_int_priority[NR_INTC_IRQS];
117 116
118#endif /* __ASM_SH64_IRQ_H */ 117#endif /* __ASM_SH_CPU_SH5_IRQ_H */
diff --git a/include/asm-sh/cpu-sh5/registers.h b/include/asm-sh/cpu-sh5/registers.h
index 7eec666acf84..6664ea6f1566 100644
--- a/include/asm-sh/cpu-sh5/registers.h
+++ b/include/asm-sh/cpu-sh5/registers.h
@@ -1,15 +1,15 @@
1#ifndef __ASM_SH64_REGISTERS_H 1#ifndef __ASM_SH_CPU_SH5_REGISTERS_H
2#define __ASM_SH64_REGISTERS_H 2#define __ASM_SH_CPU_SH5_REGISTERS_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/cpu-sh5/registers.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 *
9 * include/asm-sh64/registers.h
10 * 6 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 7 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * Copyright (C) 2004 Richard Curnow 8 * Copyright (C) 2004 Richard Curnow
9 *
10 * This file is subject to the terms and conditions of the GNU General Public
11 * License. See the file "COPYING" in the main directory of this archive
12 * for more details.
13 */ 13 */
14 14
15#ifdef __ASSEMBLY__ 15#ifdef __ASSEMBLY__
@@ -103,4 +103,4 @@
103#define __USR __str(USR) 103#define __USR __str(USR)
104 104
105#endif /* __ASSEMBLY__ */ 105#endif /* __ASSEMBLY__ */
106#endif /* __ASM_SH64_REGISTERS_H */ 106#endif /* __ASM_SH_CPU_SH5_REGISTERS_H */
diff --git a/include/asm-sh/pgtable_64.h b/include/asm-sh/pgtable_64.h
index d422111006f4..972211671c9a 100644
--- a/include/asm-sh/pgtable_64.h
+++ b/include/asm-sh/pgtable_64.h
@@ -1,21 +1,20 @@
1#ifndef __ASM_SH64_PGTABLE_H 1#ifndef __ASM_SH_PGTABLE_64_H
2#define __ASM_SH64_PGTABLE_H 2#define __ASM_SH_PGTABLE_64_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/pgtable_64.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 * 6 *
9 * include/asm-sh64/pgtable.h 7 * This file contains the functions and defines necessary to modify and use
8 * the SuperH page table tree.
10 * 9 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 10 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * Copyright (C) 2003, 2004 Paul Mundt 11 * Copyright (C) 2003, 2004 Paul Mundt
13 * Copyright (C) 2003, 2004 Richard Curnow 12 * Copyright (C) 2003, 2004 Richard Curnow
14 * 13 *
15 * This file contains the functions and defines necessary to modify and use 14 * This file is subject to the terms and conditions of the GNU General Public
16 * the SuperH page table tree. 15 * License. See the file "COPYING" in the main directory of this archive
16 * for more details.
17 */ 17 */
18
19#include <linux/threads.h> 18#include <linux/threads.h>
20#include <asm/processor.h> 19#include <asm/processor.h>
21#include <asm/page.h> 20#include <asm/page.h>
@@ -297,4 +296,4 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
297#define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) 296#define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
298#define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) 297#define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
299 298
300#endif /* __ASM_SH64_PGTABLE_H */ 299#endif /* __ASM_SH_PGTABLE_64_H */
diff --git a/include/asm-sh/string_64.h b/include/asm-sh/string_64.h
index 8a7357366ce8..aa1fef229c78 100644
--- a/include/asm-sh/string_64.h
+++ b/include/asm-sh/string_64.h
@@ -1,21 +1,17 @@
1#ifndef __ASM_SH64_STRING_H 1#ifndef __ASM_SH_STRING_64_H
2#define __ASM_SH64_STRING_H 2#define __ASM_SH_STRING_64_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/string_64.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 *
9 * include/asm-sh64/string.h
10 * 6 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 7 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * 8 *
13 * Empty on purpose. ARCH SH64 ASM libs are out of the current project scope. 9 * This file is subject to the terms and conditions of the GNU General Public
14 * 10 * License. See the file "COPYING" in the main directory of this archive
11 * for more details.
15 */ 12 */
16 13
17#define __HAVE_ARCH_MEMCPY 14#define __HAVE_ARCH_MEMCPY
18
19extern void *memcpy(void *dest, const void *src, size_t count); 15extern void *memcpy(void *dest, const void *src, size_t count);
20 16
21#endif 17#endif /* __ASM_SH_STRING_64_H */
diff --git a/include/asm-sh/uaccess_64.h b/include/asm-sh/uaccess_64.h
index 24800a8045ce..d54ec082d25a 100644
--- a/include/asm-sh/uaccess_64.h
+++ b/include/asm-sh/uaccess_64.h
@@ -1,12 +1,8 @@
1#ifndef __ASM_SH64_UACCESS_H 1#ifndef __ASM_SH_UACCESS_64_H
2#define __ASM_SH64_UACCESS_H 2#define __ASM_SH_UACCESS_64_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/uaccess_64.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 *
9 * include/asm-sh64/uaccess.h
10 * 6 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 7 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * Copyright (C) 2003, 2004 Paul Mundt 8 * Copyright (C) 2003, 2004 Paul Mundt
@@ -20,8 +16,10 @@
20 * Copyright (C) 1996, 1997, 1998 by Ralf Baechle 16 * Copyright (C) 1996, 1997, 1998 by Ralf Baechle
21 * and i386 version. 17 * and i386 version.
22 * 18 *
19 * This file is subject to the terms and conditions of the GNU General Public
20 * License. See the file "COPYING" in the main directory of this archive
21 * for more details.
23 */ 22 */
24
25#include <linux/errno.h> 23#include <linux/errno.h>
26#include <linux/sched.h> 24#include <linux/sched.h>
27 25
@@ -301,4 +299,4 @@ struct exception_table_entry
301extern unsigned long search_exception_table(unsigned long addr); 299extern unsigned long search_exception_table(unsigned long addr);
302extern const struct exception_table_entry *search_exception_tables (unsigned long addr); 300extern const struct exception_table_entry *search_exception_tables (unsigned long addr);
303 301
304#endif /* __ASM_SH64_UACCESS_H */ 302#endif /* __ASM_SH_UACCESS_64_H */
diff --git a/include/asm-sh/unistd_64.h b/include/asm-sh/unistd_64.h
index 1a5197f369b2..944511882cac 100644
--- a/include/asm-sh/unistd_64.h
+++ b/include/asm-sh/unistd_64.h
@@ -1,21 +1,19 @@
1#ifndef __ASM_SH64_UNISTD_H 1#ifndef __ASM_SH_UNISTD_64_H
2#define __ASM_SH64_UNISTD_H 2#define __ASM_SH_UNISTD_64_H
3 3
4/* 4/*
5 * This file is subject to the terms and conditions of the GNU General Public 5 * include/asm-sh/unistd_64.h
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 * 6 *
9 * include/asm-sh64/unistd.h 7 * This file contains the system call numbers.
10 * 8 *
11 * Copyright (C) 2000, 2001 Paolo Alberelli 9 * Copyright (C) 2000, 2001 Paolo Alberelli
12 * Copyright (C) 2003 - 2007 Paul Mundt 10 * Copyright (C) 2003 - 2007 Paul Mundt
13 * Copyright (C) 2004 Sean McGoogan 11 * Copyright (C) 2004 Sean McGoogan
14 * 12 *
15 * This file contains the system call numbers. 13 * This file is subject to the terms and conditions of the GNU General Public
16 * 14 * License. See the file "COPYING" in the main directory of this archive
15 * for more details.
17 */ 16 */
18
19#define __NR_restart_syscall 0 17#define __NR_restart_syscall 0
20#define __NR_exit 1 18#define __NR_exit 1
21#define __NR_fork 2 19#define __NR_fork 2
@@ -414,4 +412,4 @@
414#endif 412#endif
415 413
416#endif /* __KERNEL__ */ 414#endif /* __KERNEL__ */
417#endif /* __ASM_SH64_UNISTD_H */ 415#endif /* __ASM_SH_UNISTD_64_H */