Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef __ASM_SH_TYPES_H |
2 | #define __ASM_SH_TYPES_H | |
3 | ||
ba667788 PA |
4 | #include <asm-generic/int-ll64.h> |
5 | ||
1da177e4 LT |
6 | #ifndef __ASSEMBLY__ |
7 | ||
8 | typedef unsigned short umode_t; | |
9 | ||
1da177e4 LT |
10 | #endif /* __ASSEMBLY__ */ |
11 | ||
12 | /* | |
13 | * These aren't exported outside the kernel to avoid name space clashes | |
14 | */ | |
15 | #ifdef __KERNEL__ | |
16 | ||
17 | #define BITS_PER_LONG 32 | |
18 | ||
19 | #ifndef __ASSEMBLY__ | |
20 | ||
1da177e4 LT |
21 | /* Dma addresses are 32-bits wide. */ |
22 | ||
23 | typedef u32 dma_addr_t; | |
24 | ||
5a4f7c66 PM |
25 | #ifdef CONFIG_SUPERH32 |
26 | typedef u16 opcode_t; | |
27 | #else | |
28 | typedef u32 opcode_t; | |
29 | #endif | |
30 | ||
1da177e4 LT |
31 | #endif /* __ASSEMBLY__ */ |
32 | ||
33 | #endif /* __KERNEL__ */ | |
34 | ||
35 | #endif /* __ASM_SH_TYPES_H */ |