Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / include / asm-parisc / types.h
blob6d46986496be9421fc59f9203b986dce9d463dd7
1 #ifndef _PARISC_TYPES_H
2 #define _PARISC_TYPES_H
4 typedef unsigned short umode_t;
6 /*
7 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
8 * header files exported to user space
9 */
11 typedef __signed__ char __s8;
12 typedef unsigned char __u8;
14 typedef __signed__ short __s16;
15 typedef unsigned short __u16;
17 typedef __signed__ int __s32;
18 typedef unsigned int __u32;
20 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
21 typedef __signed__ long long __s64;
22 typedef unsigned long long __u64;
23 #endif
26 * These aren't exported outside the kernel to avoid name space clashes
28 #ifdef __KERNEL__
30 typedef signed char s8;
31 typedef unsigned char u8;
33 typedef signed short s16;
34 typedef unsigned short u16;
36 typedef signed int s32;
37 typedef unsigned int u32;
39 typedef signed long long s64;
40 typedef unsigned long long u64;
42 #ifdef __LP64__
43 #define BITS_PER_LONG 64
44 #else
45 #define BITS_PER_LONG 32
46 #endif
48 /* Dma addresses are 32-bits wide. */
50 typedef u32 dma_addr_t;
52 #endif /* __KERNEL__ */
54 #endif