2005-04-16 16:20:36 -06:00
|
|
|
#ifndef _SPARC_TYPES_H
|
|
|
|
#define _SPARC_TYPES_H
|
|
|
|
/*
|
|
|
|
* This file is never included by application software unless
|
|
|
|
* explicitly requested (e.g., via linux/types.h) in which case the
|
|
|
|
* application is Linux specific so (user-) name space pollution is
|
|
|
|
* not a major issue. However, for interoperability, libraries still
|
|
|
|
* need to be careful to avoid a name clashes.
|
|
|
|
*/
|
2008-06-06 13:35:43 -06:00
|
|
|
|
2009-08-12 16:49:47 -06:00
|
|
|
#if defined(__sparc__)
|
2008-06-06 13:35:43 -06:00
|
|
|
|
2009-01-06 14:19:28 -07:00
|
|
|
#include <asm-generic/int-ll64.h>
|
2008-06-06 13:35:43 -06:00
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
typedef unsigned short umode_t;
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
2009-08-12 16:49:47 -06:00
|
|
|
#if defined(__arch64__)
|
2008-06-06 13:35:43 -06:00
|
|
|
|
2009-08-12 16:49:47 -06:00
|
|
|
/*** SPARC 64 bit ***/
|
|
|
|
typedef u64 dma64_addr_t;
|
2008-06-06 13:35:43 -06:00
|
|
|
#else
|
|
|
|
/*** SPARC 32 bit ***/
|
2005-04-16 16:20:36 -06:00
|
|
|
typedef u32 dma64_addr_t;
|
|
|
|
|
2009-08-12 16:49:47 -06:00
|
|
|
#endif /* defined(__arch64__) */
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
2009-08-12 16:49:47 -06:00
|
|
|
#endif /* defined(__sparc__) */
|
2008-06-06 13:35:43 -06:00
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
#endif /* defined(_SPARC_TYPES_H) */
|