Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / arch / s390 / include / asm / types.h
blob6ba7c2c7217afa3fc6b221506a44449d3535d481
1 /*
2 * S390 version
4 * Derived from "include/asm-i386/types.h"
5 */
7 #ifndef _S390_TYPES_H
8 #define _S390_TYPES_H
10 #include <asm-generic/int-ll64.h>
12 #ifndef __ASSEMBLY__
14 /* A address type so that arithmetic can be done on it & it can be upgraded to
15 64 bit when necessary
17 typedef unsigned long addr_t;
18 typedef __signed__ long saddr_t;
20 #endif /* __ASSEMBLY__ */
23 * These aren't exported outside the kernel to avoid name space clashes
25 #ifdef __KERNEL__
27 #ifndef __ASSEMBLY__
29 #ifndef CONFIG_64BIT
30 typedef union {
31 unsigned long long pair;
32 struct {
33 unsigned long even;
34 unsigned long odd;
35 } subreg;
36 } register_pair;
38 #endif /* ! CONFIG_64BIT */
39 #endif /* __ASSEMBLY__ */
40 #endif /* __KERNEL__ */
41 #endif /* _S390_TYPES_H */