Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _PARISC_TYPES_H |
| 2 | #define _PARISC_TYPES_H |
| 3 | |
H. Peter Anvin | 849bf3a | 2008-04-06 10:35:09 -0700 | [diff] [blame] | 4 | #include <asm-generic/int-ll64.h> |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #ifndef __ASSEMBLY__ |
| 7 | |
| 8 | typedef unsigned short umode_t; |
| 9 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #endif /* __ASSEMBLY__ */ |
| 11 | |
| 12 | /* |
| 13 | * These aren't exported outside the kernel to avoid name space clashes |
| 14 | */ |
| 15 | #ifdef __KERNEL__ |
| 16 | |
Helge Deller | 513e7ec | 2007-01-28 15:09:20 +0100 | [diff] [blame] | 17 | #ifdef CONFIG_64BIT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #define BITS_PER_LONG 64 |
Grant Grundler | a366064 | 2005-10-21 22:45:22 -0400 | [diff] [blame] | 19 | #define SHIFT_PER_LONG 6 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #else |
| 21 | #define BITS_PER_LONG 32 |
Grant Grundler | a366064 | 2005-10-21 22:45:22 -0400 | [diff] [blame] | 22 | #define SHIFT_PER_LONG 5 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #endif |
| 24 | |
| 25 | #ifndef __ASSEMBLY__ |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | /* Dma addresses are 32-bits wide. */ |
| 28 | |
| 29 | typedef u32 dma_addr_t; |
| 30 | typedef u64 dma64_addr_t; |
| 31 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | #endif /* __ASSEMBLY__ */ |
| 33 | |
| 34 | #endif /* __KERNEL__ */ |
| 35 | |
| 36 | #endif |