diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-10 17:56:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-10 17:56:42 -0500 |
commit | 1de8cd3cb9f61e854e743c7210df43db517d4832 (patch) | |
tree | 2b69c5ba5e4094037fa04d0fcb6c4537c222cde8 /arch/avr32/include | |
parent | 1eb1b3b65dc3e3ffcc6a60e115c085c0c11c1077 (diff) | |
parent | 3d14bdad40315b54470cb7812293d14c8af2bf7d (diff) |
Merge branch 'linus' into x86/cleanups
Diffstat (limited to 'arch/avr32/include')
-rw-r--r-- | arch/avr32/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/avr32/include/asm/atmel-mci.h | 39 | ||||
-rw-r--r-- | arch/avr32/include/asm/atomic.h | 2 | ||||
-rw-r--r-- | arch/avr32/include/asm/byteorder.h | 31 | ||||
-rw-r--r-- | arch/avr32/include/asm/kdebug.h | 1 | ||||
-rw-r--r-- | arch/avr32/include/asm/swab.h | 35 | ||||
-rw-r--r-- | arch/avr32/include/asm/syscalls.h | 39 |
7 files changed, 79 insertions, 69 deletions
diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild index 3136628ba8d2..219822c8ad18 100644 --- a/arch/avr32/include/asm/Kbuild +++ b/arch/avr32/include/asm/Kbuild | |||
@@ -1,3 +1,4 @@ | |||
1 | include include/asm-generic/Kbuild.asm | 1 | include include/asm-generic/Kbuild.asm |
2 | 2 | ||
3 | header-y += swab.h | ||
3 | header-y += cachectl.h | 4 | header-y += cachectl.h |
diff --git a/arch/avr32/include/asm/atmel-mci.h b/arch/avr32/include/asm/atmel-mci.h deleted file mode 100644 index 59f3fadd0b68..000000000000 --- a/arch/avr32/include/asm/atmel-mci.h +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | #ifndef __ASM_AVR32_ATMEL_MCI_H | ||
2 | #define __ASM_AVR32_ATMEL_MCI_H | ||
3 | |||
4 | #define ATMEL_MCI_MAX_NR_SLOTS 2 | ||
5 | |||
6 | struct dma_slave; | ||
7 | |||
8 | /** | ||
9 | * struct mci_slot_pdata - board-specific per-slot configuration | ||
10 | * @bus_width: Number of data lines wired up the slot | ||
11 | * @detect_pin: GPIO pin wired to the card detect switch | ||
12 | * @wp_pin: GPIO pin wired to the write protect sensor | ||
13 | * | ||
14 | * If a given slot is not present on the board, @bus_width should be | ||
15 | * set to 0. The other fields are ignored in this case. | ||
16 | * | ||
17 | * Any pins that aren't available should be set to a negative value. | ||
18 | * | ||
19 | * Note that support for multiple slots is experimental -- some cards | ||
20 | * might get upset if we don't get the clock management exactly right. | ||
21 | * But in most cases, it should work just fine. | ||
22 | */ | ||
23 | struct mci_slot_pdata { | ||
24 | unsigned int bus_width; | ||
25 | int detect_pin; | ||
26 | int wp_pin; | ||
27 | }; | ||
28 | |||
29 | /** | ||
30 | * struct mci_platform_data - board-specific MMC/SDcard configuration | ||
31 | * @dma_slave: DMA slave interface to use in data transfers, or NULL. | ||
32 | * @slot: Per-slot configuration data. | ||
33 | */ | ||
34 | struct mci_platform_data { | ||
35 | struct dma_slave *dma_slave; | ||
36 | struct mci_slot_pdata slot[ATMEL_MCI_MAX_NR_SLOTS]; | ||
37 | }; | ||
38 | |||
39 | #endif /* __ASM_AVR32_ATMEL_MCI_H */ | ||
diff --git a/arch/avr32/include/asm/atomic.h b/arch/avr32/include/asm/atomic.h index 7ef3862a73d0..318815107748 100644 --- a/arch/avr32/include/asm/atomic.h +++ b/arch/avr32/include/asm/atomic.h | |||
@@ -14,9 +14,9 @@ | |||
14 | #ifndef __ASM_AVR32_ATOMIC_H | 14 | #ifndef __ASM_AVR32_ATOMIC_H |
15 | #define __ASM_AVR32_ATOMIC_H | 15 | #define __ASM_AVR32_ATOMIC_H |
16 | 16 | ||
17 | #include <linux/types.h> | ||
17 | #include <asm/system.h> | 18 | #include <asm/system.h> |
18 | 19 | ||
19 | typedef struct { volatile int counter; } atomic_t; | ||
20 | #define ATOMIC_INIT(i) { (i) } | 20 | #define ATOMIC_INIT(i) { (i) } |
21 | 21 | ||
22 | #define atomic_read(v) ((v)->counter) | 22 | #define atomic_read(v) ((v)->counter) |
diff --git a/arch/avr32/include/asm/byteorder.h b/arch/avr32/include/asm/byteorder.h index 8e3af02076dd..2aba64b4e122 100644 --- a/arch/avr32/include/asm/byteorder.h +++ b/arch/avr32/include/asm/byteorder.h | |||
@@ -4,34 +4,7 @@ | |||
4 | #ifndef __ASM_AVR32_BYTEORDER_H | 4 | #ifndef __ASM_AVR32_BYTEORDER_H |
5 | #define __ASM_AVR32_BYTEORDER_H | 5 | #define __ASM_AVR32_BYTEORDER_H |
6 | 6 | ||
7 | #include <asm/types.h> | 7 | #include <asm/swab.h> |
8 | #include <linux/compiler.h> | 8 | #include <linux/byteorder/big_endian.h> |
9 | 9 | ||
10 | #define __BIG_ENDIAN | ||
11 | #define __SWAB_64_THRU_32__ | ||
12 | |||
13 | #ifdef __CHECKER__ | ||
14 | extern unsigned long __builtin_bswap_32(unsigned long x); | ||
15 | extern unsigned short __builtin_bswap_16(unsigned short x); | ||
16 | #endif | ||
17 | |||
18 | /* | ||
19 | * avr32-linux-gcc versions earlier than 4.2 improperly sign-extends | ||
20 | * the result. | ||
21 | */ | ||
22 | #if !(__GNUC__ == 4 && __GNUC_MINOR__ < 2) | ||
23 | static inline __attribute_const__ __u16 __arch_swab16(__u16 val) | ||
24 | { | ||
25 | return __builtin_bswap_16(val); | ||
26 | } | ||
27 | #define __arch_swab16 __arch_swab16 | ||
28 | |||
29 | static inline __attribute_const__ __u32 __arch_swab32(__u32 val) | ||
30 | { | ||
31 | return __builtin_bswap_32(val); | ||
32 | } | ||
33 | #define __arch_swab32 __arch_swab32 | ||
34 | #endif | ||
35 | |||
36 | #include <linux/byteorder.h> | ||
37 | #endif /* __ASM_AVR32_BYTEORDER_H */ | 10 | #endif /* __ASM_AVR32_BYTEORDER_H */ |
diff --git a/arch/avr32/include/asm/kdebug.h b/arch/avr32/include/asm/kdebug.h index ca4f9542365a..f930ce286803 100644 --- a/arch/avr32/include/asm/kdebug.h +++ b/arch/avr32/include/asm/kdebug.h | |||
@@ -6,6 +6,7 @@ enum die_val { | |||
6 | DIE_BREAKPOINT, | 6 | DIE_BREAKPOINT, |
7 | DIE_SSTEP, | 7 | DIE_SSTEP, |
8 | DIE_NMI, | 8 | DIE_NMI, |
9 | DIE_OOPS, | ||
9 | }; | 10 | }; |
10 | 11 | ||
11 | #endif /* __ASM_AVR32_KDEBUG_H */ | 12 | #endif /* __ASM_AVR32_KDEBUG_H */ |
diff --git a/arch/avr32/include/asm/swab.h b/arch/avr32/include/asm/swab.h new file mode 100644 index 000000000000..a14aa5b46d98 --- /dev/null +++ b/arch/avr32/include/asm/swab.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * AVR32 byteswapping functions. | ||
3 | */ | ||
4 | #ifndef __ASM_AVR32_SWAB_H | ||
5 | #define __ASM_AVR32_SWAB_H | ||
6 | |||
7 | #include <asm/types.h> | ||
8 | #include <linux/compiler.h> | ||
9 | |||
10 | #define __SWAB_64_THRU_32__ | ||
11 | |||
12 | #ifdef __CHECKER__ | ||
13 | extern unsigned long __builtin_bswap_32(unsigned long x); | ||
14 | extern unsigned short __builtin_bswap_16(unsigned short x); | ||
15 | #endif | ||
16 | |||
17 | /* | ||
18 | * avr32-linux-gcc versions earlier than 4.2 improperly sign-extends | ||
19 | * the result. | ||
20 | */ | ||
21 | #if !(__GNUC__ == 4 && __GNUC_MINOR__ < 2) | ||
22 | static inline __attribute_const__ __u16 __arch_swab16(__u16 val) | ||
23 | { | ||
24 | return __builtin_bswap_16(val); | ||
25 | } | ||
26 | #define __arch_swab16 __arch_swab16 | ||
27 | |||
28 | static inline __attribute_const__ __u32 __arch_swab32(__u32 val) | ||
29 | { | ||
30 | return __builtin_bswap_32(val); | ||
31 | } | ||
32 | #define __arch_swab32 __arch_swab32 | ||
33 | #endif | ||
34 | |||
35 | #endif /* __ASM_AVR32_SWAB_H */ | ||
diff --git a/arch/avr32/include/asm/syscalls.h b/arch/avr32/include/asm/syscalls.h new file mode 100644 index 000000000000..483d666c27c0 --- /dev/null +++ b/arch/avr32/include/asm/syscalls.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | * syscalls.h - Linux syscall interfaces (arch-specific) | ||
3 | * | ||
4 | * Copyright (c) 2008 Jaswinder Singh | ||
5 | * | ||
6 | * This file is released under the GPLv2. | ||
7 | * See the file COPYING for more details. | ||
8 | */ | ||
9 | |||
10 | #ifndef _ASM_AVR32_SYSCALLS_H | ||
11 | #define _ASM_AVR32_SYSCALLS_H | ||
12 | |||
13 | #include <linux/compiler.h> | ||
14 | #include <linux/linkage.h> | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/signal.h> | ||
17 | |||
18 | /* kernel/process.c */ | ||
19 | asmlinkage int sys_fork(struct pt_regs *); | ||
20 | asmlinkage int sys_clone(unsigned long, unsigned long, | ||
21 | unsigned long, unsigned long, | ||
22 | struct pt_regs *); | ||
23 | asmlinkage int sys_vfork(struct pt_regs *); | ||
24 | asmlinkage int sys_execve(char __user *, char __user *__user *, | ||
25 | char __user *__user *, struct pt_regs *); | ||
26 | |||
27 | /* kernel/signal.c */ | ||
28 | asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *, | ||
29 | struct pt_regs *); | ||
30 | asmlinkage int sys_rt_sigreturn(struct pt_regs *); | ||
31 | |||
32 | /* kernel/sys_avr32.c */ | ||
33 | asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long, | ||
34 | unsigned long, unsigned long, off_t); | ||
35 | |||
36 | /* mm/cache.c */ | ||
37 | asmlinkage int sys_cacheflush(int, void __user *, size_t); | ||
38 | |||
39 | #endif /* _ASM_AVR32_SYSCALLS_H */ | ||