Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_M32R_TYPES_H |
| 2 | #define _ASM_M32R_TYPES_H |
| 3 | |
| 4 | #ifndef __ASSEMBLY__ |
| 5 | |
| 6 | /* $Id$ */ |
| 7 | |
| 8 | /* orig : i386 2.4.18 */ |
| 9 | |
| 10 | typedef unsigned short umode_t; |
| 11 | |
| 12 | /* |
| 13 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the |
| 14 | * header files exported to user space |
| 15 | */ |
| 16 | |
| 17 | typedef __signed__ char __s8; |
| 18 | typedef unsigned char __u8; |
| 19 | |
| 20 | typedef __signed__ short __s16; |
| 21 | typedef unsigned short __u16; |
| 22 | |
| 23 | typedef __signed__ int __s32; |
| 24 | typedef unsigned int __u32; |
| 25 | |
| 26 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) |
| 27 | typedef __signed__ long long __s64; |
| 28 | typedef unsigned long long __u64; |
| 29 | #endif |
| 30 | #endif /* __ASSEMBLY__ */ |
| 31 | |
| 32 | /* |
| 33 | * These aren't exported outside the kernel to avoid name space clashes |
| 34 | */ |
| 35 | #ifdef __KERNEL__ |
| 36 | |
| 37 | #define BITS_PER_LONG 32 |
| 38 | |
| 39 | #ifndef __ASSEMBLY__ |
| 40 | |
| 41 | typedef signed char s8; |
| 42 | typedef unsigned char u8; |
| 43 | |
| 44 | typedef signed short s16; |
| 45 | typedef unsigned short u16; |
| 46 | |
| 47 | typedef signed int s32; |
| 48 | typedef unsigned int u32; |
| 49 | |
| 50 | typedef signed long long s64; |
| 51 | typedef unsigned long long u64; |
| 52 | |
| 53 | /* DMA addresses are 32-bits wide. */ |
| 54 | |
| 55 | typedef u32 dma_addr_t; |
| 56 | typedef u64 dma64_addr_t; |
| 57 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | #endif /* __ASSEMBLY__ */ |
| 59 | |
| 60 | #endif /* __KERNEL__ */ |
| 61 | |
| 62 | #endif /* _ASM_M32R_TYPES_H */ |