acpi: fix integer as NULL pointer warning
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / asm-sparc64 / types.h
blobb27ccc85202f8aaa9b20faf889dbefbc90382a11
1 #ifndef _SPARC64_TYPES_H
2 #define _SPARC64_TYPES_H
4 /*
5 * This file is never included by application software unless
6 * explicitly requested (e.g., via linux/types.h) in which case the
7 * application is Linux specific so (user-) name space pollution is
8 * not a major issue. However, for interoperability, libraries still
9 * need to be careful to avoid a name clashes.
11 #include <asm-generic/int-l64.h>
13 #ifndef __ASSEMBLY__
15 typedef unsigned short umode_t;
17 #endif /* __ASSEMBLY__ */
19 #ifdef __KERNEL__
21 #define BITS_PER_LONG 64
23 #ifndef __ASSEMBLY__
25 /* Dma addresses come in generic and 64-bit flavours. */
27 typedef u32 dma_addr_t;
28 typedef u64 dma64_addr_t;
30 #endif /* __ASSEMBLY__ */
32 #endif /* __KERNEL__ */
34 #endif /* defined(_SPARC64_TYPES_H) */