Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _H8300_TYPES_H |
2 | #define _H8300_TYPES_H | |
3 | ||
86153155 PA |
4 | #include <asm-generic/int-ll64.h> |
5 | ||
1da177e4 LT |
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 | ||
1da177e4 LT |
18 | /* |
19 | * These aren't exported outside the kernel to avoid name space clashes | |
20 | */ | |
21 | #ifdef __KERNEL__ | |
22 | ||
1da177e4 LT |
23 | #define BITS_PER_LONG 32 |
24 | ||
25 | /* Dma addresses are 32-bits wide. */ | |
26 | ||
27 | typedef u32 dma_addr_t; | |
28 | ||
1da177e4 LT |
29 | #endif /* __KERNEL__ */ |
30 | ||
31 | #endif /* __ASSEMBLY__ */ | |
32 | ||
33 | #endif /* _H8300_TYPES_H */ |