Merge branch 'for-2.6.37/drivers' into for-linus
[deliverable/linux.git] / arch / sparc / include / asm / types.h
CommitLineData
1da177e4
LT
1#ifndef _SPARC_TYPES_H
2#define _SPARC_TYPES_H
1da177e4
LT
3/*
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.
9 */
b444b9a5 10
3f389635 11#if defined(__sparc__)
b444b9a5 12
90181136 13#include <asm-generic/int-ll64.h>
b444b9a5
SR
14
15#ifndef __ASSEMBLY__
16
17typedef unsigned short umode_t;
18
19#endif /* __ASSEMBLY__ */
20
21#ifdef __KERNEL__
22
b444b9a5
SR
23#ifndef __ASSEMBLY__
24
25/* Dma addresses come in generic and 64-bit flavours. */
26
27typedef u32 dma_addr_t;
b444b9a5 28
3f389635 29#if defined(__arch64__)
b444b9a5 30
3f389635
JSR
31/*** SPARC 64 bit ***/
32typedef u64 dma64_addr_t;
b444b9a5 33#else
b444b9a5 34/*** SPARC 32 bit ***/
1da177e4
LT
35typedef u32 dma64_addr_t;
36
3f389635
JSR
37#endif /* defined(__arch64__) */
38
1da177e4
LT
39#endif /* __ASSEMBLY__ */
40
41#endif /* __KERNEL__ */
42
3f389635 43#endif /* defined(__sparc__) */
b444b9a5 44
1da177e4 45#endif /* defined(_SPARC_TYPES_H) */
This page took 0.548253 seconds and 5 git commands to generate.