Merge branch 'topic/jack-mechanical' into to-push
[sfrench/cifs-2.6.git] / arch / parisc / include / asm / types.h
1 #ifndef _PARISC_TYPES_H
2 #define _PARISC_TYPES_H
3
4 #include <asm-generic/int-ll64.h>
5
6 #ifndef __ASSEMBLY__
7
8 typedef unsigned short umode_t;
9
10 #endif /* __ASSEMBLY__ */
11
12 /*
13  * These aren't exported outside the kernel to avoid name space clashes
14  */
15 #ifdef __KERNEL__
16
17 #ifdef CONFIG_64BIT
18 #define BITS_PER_LONG 64
19 #define SHIFT_PER_LONG 6
20 #else
21 #define BITS_PER_LONG 32
22 #define SHIFT_PER_LONG 5
23 #endif
24
25 #ifndef __ASSEMBLY__
26
27 /* Dma addresses are 32-bits wide.  */
28
29 typedef u32 dma_addr_t;
30 typedef u64 dma64_addr_t;
31
32 #endif /* __ASSEMBLY__ */
33
34 #endif /* __KERNEL__ */
35
36 #endif