upload tizen1.0 source
[kernel/linux-2.6.36.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 /* Dma addresses come in generic and 64-bit flavours.  */
26
27 typedef u32 dma_addr_t;
28
29 #if defined(__arch64__)
30
31 /*** SPARC 64 bit ***/
32 typedef u64 dma64_addr_t;
33 #else
34 /*** SPARC 32 bit ***/
35 typedef u32 dma64_addr_t;
36
37 #endif /* defined(__arch64__) */
38
39 #endif /* __ASSEMBLY__ */
40
41 #endif /* __KERNEL__ */
42
43 #endif /* defined(__sparc__) */
44
45 #endif /* defined(_SPARC_TYPES_H) */