f7f6ae6bed8f4a47cc0acec2c73cde95fa3a2af4
[pandora-kernel.git] / arch / s390 / include / asm / 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 #include <asm-generic/int-ll64.h>
13
14 #ifndef __ASSEMBLY__
15
16 typedef unsigned short umode_t;
17
18 /* A address type so that arithmetic can be done on it & it can be upgraded to
19    64 bit when necessary 
20 */
21 typedef unsigned long addr_t; 
22 typedef __signed__ long saddr_t;
23
24 #endif /* __ASSEMBLY__ */
25
26 /*
27  * These aren't exported outside the kernel to avoid name space clashes
28  */
29 #ifdef __KERNEL__
30
31 #ifndef __ASSEMBLY__
32
33 typedef u64 dma64_addr_t;
34
35 #ifndef __s390x__
36 typedef union {
37         unsigned long long pair;
38         struct {
39                 unsigned long even;
40                 unsigned long odd;
41         } subreg;
42 } register_pair;
43
44 #endif /* ! __s390x__   */
45 #endif /* __ASSEMBLY__  */
46 #endif /* __KERNEL__    */
47 #endif /* _S390_TYPES_H */