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