1 #ifndef _ALPHA_TYPES_H
2 #define _ALPHA_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
12 typedef unsigned int umode_t;
13
14 /*
15 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
16 * header files exported to user space
17 */
18
19 typedef __signed__ char __s8;
20 typedef unsigned char __u8;
21
22 typedef __signed__ short __s16;
23 typedef unsigned short __u16;
24
25 typedef __signed__ int __s32;
26 typedef unsigned int __u32;
27
28 typedef __signed__ long __s64;
29 typedef unsigned long __u64;
30
31 /*
32 * These aren't exported outside the kernel to avoid name space clashes
33 */
34 #ifdef __KERNEL__
35
36 typedef signed char s8;
37 typedef unsigned char u8;
38
39 typedef signed short s16;
40 typedef unsigned short u16;
41
42 typedef signed int s32;
43 typedef unsigned int u32;
44
45 typedef signed long s64;
46 typedef unsigned long u64;
47
48 #define BITS_PER_LONG 64
49
50 typedef u64 dma_addr_t;
51 typedef u64 dma64_addr_t;
52
53 #endif /* __KERNEL__ */
54 #endif /* _ALPHA_TYPES_H */
Cache object: 2e687fa14d9313796ff46817ec6fceb5
|