diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-ia64/types.h |
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-ia64/types.h')
-rw-r--r-- | include/asm-ia64/types.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/include/asm-ia64/types.h b/include/asm-ia64/types.h new file mode 100644 index 00000000000..a677565aa95 --- /dev/null +++ b/include/asm-ia64/types.h | |||
@@ -0,0 +1,75 @@ | |||
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 | #ifdef __ASSEMBLY__ | ||
17 | # define __IA64_UL(x) (x) | ||
18 | # define __IA64_UL_CONST(x) x | ||
19 | |||
20 | # ifdef __KERNEL__ | ||
21 | # define BITS_PER_LONG 64 | ||
22 | # endif | ||
23 | |||
24 | #else | ||
25 | # define __IA64_UL(x) ((unsigned long)(x)) | ||
26 | # define __IA64_UL_CONST(x) x##UL | ||
27 | |||
28 | typedef unsigned int umode_t; | ||
29 | |||
30 | /* | ||
31 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the | ||
32 | * header files exported to user space | ||
33 | */ | ||
34 | |||
35 | typedef __signed__ char __s8; | ||
36 | typedef unsigned char __u8; | ||
37 | |||
38 | typedef __signed__ short __s16; | ||
39 | typedef unsigned short __u16; | ||
40 | |||
41 | typedef __signed__ int __s32; | ||
42 | typedef unsigned int __u32; | ||
43 | |||
44 | typedef __signed__ long __s64; | ||
45 | typedef unsigned long __u64; | ||
46 | |||
47 | /* | ||
48 | * These aren't exported outside the kernel to avoid name space clashes | ||
49 | */ | ||
50 | # ifdef __KERNEL__ | ||
51 | |||
52 | typedef __s8 s8; | ||
53 | typedef __u8 u8; | ||
54 | |||
55 | typedef __s16 s16; | ||
56 | typedef __u16 u16; | ||
57 | |||
58 | typedef __s32 s32; | ||
59 | typedef __u32 u32; | ||
60 | |||
61 | typedef __s64 s64; | ||
62 | typedef __u64 u64; | ||
63 | |||
64 | #define BITS_PER_LONG 64 | ||
65 | |||
66 | /* DMA addresses are 64-bits wide, in general. */ | ||
67 | |||
68 | typedef u64 dma_addr_t; | ||
69 | |||
70 | typedef unsigned short kmem_bufctl_t; | ||
71 | |||
72 | # endif /* __KERNEL__ */ | ||
73 | #endif /* !__ASSEMBLY__ */ | ||
74 | |||
75 | #endif /* _ASM_IA64_TYPES_H */ | ||