diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-04-06 13:35:15 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-05-02 19:18:42 -0400 |
commit | 4cf63c8ac48c63b4c55669d4648506ed2bb8976f (patch) | |
tree | 038b65f3c8edcc8a0439a49712522f7caa463126 /include/asm-xtensa | |
parent | edfa5cfa3dc5bfa95e6aa82a2b8904e7f6c35ed7 (diff) |
xtensa: types: use <asm-generic/int-*.h> for the xtensa architecture
This modifies <asm-xtensa/types.h> to use the <asm-generic/int-*.h>
generic include files.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'include/asm-xtensa')
-rw-r--r-- | include/asm-xtensa/types.h | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/include/asm-xtensa/types.h b/include/asm-xtensa/types.h index b27d841a8eb7..c89569a8da0c 100644 --- a/include/asm-xtensa/types.h +++ b/include/asm-xtensa/types.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #ifndef _XTENSA_TYPES_H | 11 | #ifndef _XTENSA_TYPES_H |
12 | #define _XTENSA_TYPES_H | 12 | #define _XTENSA_TYPES_H |
13 | 13 | ||
14 | #include <asm-generic/int-ll64.h> | ||
14 | 15 | ||
15 | #ifdef __ASSEMBLY__ | 16 | #ifdef __ASSEMBLY__ |
16 | # define __XTENSA_UL(x) (x) | 17 | # define __XTENSA_UL(x) (x) |
@@ -25,42 +26,10 @@ | |||
25 | typedef unsigned short umode_t; | 26 | typedef unsigned short umode_t; |
26 | 27 | ||
27 | /* | 28 | /* |
28 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the | ||
29 | * header files exported to user space | ||
30 | */ | ||
31 | |||
32 | typedef __signed__ char __s8; | ||
33 | typedef unsigned char __u8; | ||
34 | |||
35 | typedef __signed__ short __s16; | ||
36 | typedef unsigned short __u16; | ||
37 | |||
38 | typedef __signed__ int __s32; | ||
39 | typedef unsigned int __u32; | ||
40 | |||
41 | #if defined(__GNUC__) | ||
42 | __extension__ typedef __signed__ long long __s64; | ||
43 | __extension__ typedef unsigned long long __u64; | ||
44 | #endif | ||
45 | |||
46 | /* | ||
47 | * These aren't exported outside the kernel to avoid name space clashes | 29 | * These aren't exported outside the kernel to avoid name space clashes |
48 | */ | 30 | */ |
49 | #ifdef __KERNEL__ | 31 | #ifdef __KERNEL__ |
50 | 32 | ||
51 | typedef __signed__ char s8; | ||
52 | typedef unsigned char u8; | ||
53 | |||
54 | typedef __signed__ short s16; | ||
55 | typedef unsigned short u16; | ||
56 | |||
57 | typedef __signed__ int s32; | ||
58 | typedef unsigned int u32; | ||
59 | |||
60 | typedef __signed__ long long s64; | ||
61 | typedef unsigned long long u64; | ||
62 | |||
63 | |||
64 | #define BITS_PER_LONG 32 | 33 | #define BITS_PER_LONG 32 |
65 | 34 | ||
66 | /* Dma addresses are 32-bits wide. */ | 35 | /* Dma addresses are 32-bits wide. */ |