Full support for Ginger Console
[linux-ginger.git] / arch / sparc / include / asm / types.h
blob09c79a9c85166a0c11fd5d45e38035b8611b13dd
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 */
11 #if defined(__sparc__)
13 #include <asm-generic/int-ll64.h>
15 #ifndef __ASSEMBLY__
17 typedef unsigned short umode_t;
19 #endif /* __ASSEMBLY__ */
21 #ifdef __KERNEL__
23 #ifndef __ASSEMBLY__
25 /* Dma addresses come in generic and 64-bit flavours. */
27 typedef u32 dma_addr_t;
29 #if defined(__arch64__)
31 /*** SPARC 64 bit ***/
32 typedef u64 dma64_addr_t;
33 #else
34 /*** SPARC 32 bit ***/
35 typedef u32 dma64_addr_t;
37 #endif /* defined(__arch64__) */
39 #endif /* __ASSEMBLY__ */
41 #endif /* __KERNEL__ */
43 #endif /* defined(__sparc__) */
45 #endif /* defined(_SPARC_TYPES_H) */