- Kai Germaschewski: ymfpci cleanups and resource leak fixes
[davej-history.git] / include / asm-s390 / types.h
blob23d5c7176c35487f5eea353d2e8ffbebc4e1c74f
1 /*
2 * include/asm-s390/types.h
4 * S390 version
6 * Derived from "include/asm-i386/types.h"
7 */
9 #ifndef _S390_TYPES_H
10 #define _S390_TYPES_H
12 typedef unsigned short umode_t;
15 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
16 * header files exported to user space
19 typedef __signed__ char __s8;
20 typedef unsigned char __u8;
22 typedef __signed__ short __s16;
23 typedef unsigned short __u16;
25 typedef __signed__ int __s32;
26 typedef unsigned int __u32;
28 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
29 typedef __signed__ long long __s64;
30 typedef unsigned long long __u64;
31 #endif
32 /* A address type so that arithmetic can be done on it & it can be upgraded to
33 64 bit when neccessary
35 typedef __u32 addr_t;
36 typedef __s32 saddr_t;
38 * These aren't exported outside the kernel to avoid name space clashes
40 #ifdef __KERNEL__
42 typedef signed char s8;
43 typedef unsigned char u8;
45 typedef signed short s16;
46 typedef unsigned short u16;
48 typedef signed int s32;
49 typedef unsigned int u32;
51 typedef signed long long s64;
52 typedef unsigned long long u64;
54 #define BITS_PER_LONG 32
56 typedef u32 dma_addr_t;
58 #ifndef TRUE
59 #define TRUE 1
60 #endif
61 #ifndef FALSE
62 #define FALSE 0
63 #endif
65 #endif /* __KERNEL__ */
66 #endif