Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _H8300_TYPES_H |
| 2 | #define _H8300_TYPES_H |
| 3 | |
H. Peter Anvin | 8615315 | 2008-04-06 10:35:04 -0700 | [diff] [blame] | 4 | #include <asm-generic/int-ll64.h> |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | #if !defined(__ASSEMBLY__) |
| 7 | |
| 8 | /* |
| 9 | * This file is never included by application software unless |
| 10 | * explicitly requested (e.g., via linux/types.h) in which case the |
| 11 | * application is Linux specific so (user-) name space pollution is |
| 12 | * not a major issue. However, for interoperability, libraries still |
| 13 | * need to be careful to avoid a name clashes. |
| 14 | */ |
| 15 | |
| 16 | typedef unsigned short umode_t; |
| 17 | |
| 18 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | * These aren't exported outside the kernel to avoid name space clashes |
| 20 | */ |
| 21 | #ifdef __KERNEL__ |
| 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #define BITS_PER_LONG 32 |
| 24 | |
| 25 | /* Dma addresses are 32-bits wide. */ |
| 26 | |
| 27 | typedef u32 dma_addr_t; |
| 28 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | #endif /* __KERNEL__ */ |
| 30 | |
| 31 | #endif /* __ASSEMBLY__ */ |
| 32 | |
| 33 | #endif /* _H8300_TYPES_H */ |