cleanup
[linux-2.4.git] / include / asm-s390x / types.h
1 /*
2  *  include/asm-s390/types.h
3  *
4  *  S390 version
5  *
6  *  Derived from "include/asm-i386/types.h"
7  */
8
9 #ifndef _S390_TYPES_H
10 #define _S390_TYPES_H
11
12 typedef unsigned short 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  * A address type so that arithmetic can be done on it & it can be upgraded to
33  * 64 bit when neccessary 
34  */
35
36 typedef unsigned long  addr_t; 
37 typedef signed long  saddr_t;
38
39 /*
40  * These aren't exported outside the kernel to avoid name space clashes
41  */
42 #ifdef __KERNEL__
43
44 typedef signed char s8;
45 typedef unsigned char u8;
46
47 typedef signed short s16;
48 typedef unsigned short u16;
49
50 typedef signed int s32;
51 typedef unsigned int u32;
52
53 typedef signed long s64;
54 typedef unsigned  long u64;
55
56 #define BITS_PER_LONG 64
57
58 typedef u32 dma_addr_t;
59 typedef u64 dma64_addr_t;
60
61 #endif                                 /* __KERNEL__                       */
62 #endif