Merge commit 'origin/master' into next
[pandora-kernel.git] / arch / ia64 / include / asm / types.h
1 #ifndef _ASM_IA64_TYPES_H
2 #define _ASM_IA64_TYPES_H
3
4 /*
5  * This file is never included by application software unless explicitly requested (e.g.,
6  * via linux/types.h) in which case the application is Linux specific so (user-) name
7  * space pollution is not a major issue.  However, for interoperability, libraries still
8  * need to be careful to avoid a name clashes.
9  *
10  * Based on <asm-alpha/types.h>.
11  *
12  * Modified 1998-2000, 2002
13  *      David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
14  */
15
16 #include <asm-generic/int-l64.h>
17
18 #ifdef __ASSEMBLY__
19 # define __IA64_UL(x)           (x)
20 # define __IA64_UL_CONST(x)     x
21
22 #else
23 # define __IA64_UL(x)           ((unsigned long)(x))
24 # define __IA64_UL_CONST(x)     x##UL
25
26 typedef unsigned int umode_t;
27
28 /*
29  * These aren't exported outside the kernel to avoid name space clashes
30  */
31 # ifdef __KERNEL__
32
33 /* DMA addresses are 64-bits wide, in general.  */
34 typedef u64 dma_addr_t;
35
36 # endif /* __KERNEL__ */
37 #endif /* !__ASSEMBLY__ */
38
39 #endif /* _ASM_IA64_TYPES_H */