import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / include / asm-ia64 / 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
6  * explicitly requested (e.g., via linux/types.h) in which case the
7  * application is Linux specific so (user-) name space pollution is
8  * not a major issue.  However, for interoperability, libraries still
9  * need to be careful to avoid a name clashes.
10  *
11  * Based on <asm-alpha/types.h>.
12  *
13  * Modified 1998-2000
14  *      David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
15  */
16
17 #ifdef __ASSEMBLY__
18 # define __IA64_UL(x)           (x)
19 # define __IA64_UL_CONST(x)     x
20 #else
21 # define __IA64_UL(x)           ((unsigned long)(x))
22 # define __IA64_UL_CONST(x)     x##UL
23 #endif
24
25 #ifndef __ASSEMBLY__
26
27 typedef unsigned int umode_t;
28
29 /*
30  * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
31  * header files exported to user space
32  */
33
34 typedef __signed__ char __s8;
35 typedef unsigned char __u8;
36
37 typedef __signed__ short __s16;
38 typedef unsigned short __u16;
39
40 typedef __signed__ int __s32;
41 typedef unsigned int __u32;
42
43 typedef __signed__ long __s64;
44 typedef unsigned long __u64;
45
46 /*
47  * These aren't exported outside the kernel to avoid name space clashes
48  */
49 # ifdef __KERNEL__
50
51 typedef __s8 s8;
52 typedef __u8 u8;
53
54 typedef __s16 s16;
55 typedef __u16 u16;
56
57 typedef __s32 s32;
58 typedef __u32 u32;
59
60 typedef __s64 s64;
61 typedef __u64 u64;
62
63 #define BITS_PER_LONG 64
64
65 /* DMA addresses are 64-bits wide, in general.  */
66
67 typedef u64 dma_addr_t;
68
69 # endif /* __KERNEL__ */
70 #endif /* !__ASSEMBLY__ */
71
72 #endif /* _ASM_IA64_TYPES_H */