f02d330cb9f175b71e33d7cf1c3b51c5c8bb6cec
[pandora-kernel.git] / arch / sparc / include / asm / types.h
1 #ifndef _SPARC_TYPES_H
2 #define _SPARC_TYPES_H
3 /*
4  * This file is never included by application software unless
5  * explicitly requested (e.g., via linux/types.h) in which case the
6  * application is Linux specific so (user-) name space pollution is
7  * not a major issue.  However, for interoperability, libraries still
8  * need to be careful to avoid a name clashes.
9  */
10
11 #if defined(__sparc__)
12
13 #include <asm-generic/int-ll64.h>
14
15 #ifndef __ASSEMBLY__
16
17 typedef unsigned short umode_t;
18
19 #endif /* __ASSEMBLY__ */
20
21 #ifdef __KERNEL__
22
23 #ifndef __ASSEMBLY__
24
25 #if defined(__arch64__)
26
27 /*** SPARC 64 bit ***/
28 typedef u64 dma64_addr_t;
29 #else
30 /*** SPARC 32 bit ***/
31 typedef u32 dma64_addr_t;
32
33 #endif /* defined(__arch64__) */
34
35 #endif /* __ASSEMBLY__ */
36
37 #endif /* __KERNEL__ */
38
39 #endif /* defined(__sparc__) */
40
41 #endif /* defined(_SPARC_TYPES_H) */