4 * This file is never included by application software unless
5 * explicitly requested (e.g., via linux/types.h) in which case the
6 * application is Linux specific so (user-) name space pollution is
7 * not a major issue. However, for interoperability, libraries still
8 * need to be careful to avoid a name clashes.
11 #if defined(__sparc__) && defined(__arch64__)
13 /*** SPARC 64 bit ***/
14 #include <asm-generic/int-l64.h>
18 typedef unsigned short umode_t;
20 #endif /* __ASSEMBLY__ */
24 #define BITS_PER_LONG 64
28 /* Dma addresses come in generic and 64-bit flavours. */
30 typedef u32 dma_addr_t;
31 typedef u64 dma64_addr_t;
33 #endif /* __ASSEMBLY__ */
35 #endif /* __KERNEL__ */
38 /*** SPARC 32 bit ***/
39 #include <asm-generic/int-ll64.h>
43 typedef unsigned short umode_t;
45 #endif /* __ASSEMBLY__ */
49 #define BITS_PER_LONG 32
53 typedef u32 dma_addr_t;
54 typedef u32 dma64_addr_t;
56 #endif /* __ASSEMBLY__ */
58 #endif /* __KERNEL__ */
60 #endif /* defined(__sparc__) && defined(__arch64__) */
62 #endif /* defined(_SPARC_TYPES_H) */