1/* $Id: types.h,v 1.1.1.1 2008/10/15 03:27:26 james26_jang Exp $ */ 2#ifndef _SPARC_TYPES_H 3#define _SPARC_TYPES_H 4 5/* 6 * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the 7 * header files exported to user space. 8 */ 9 10/* 11 * This file is never included by application software unless 12 * explicitly requested (e.g., via linux/types.h) in which case the 13 * application is Linux specific so (user-) name space pollution is 14 * not a major issue. However, for interoperability, libraries still 15 * need to be careful to avoid a name clashes. 16 */ 17 18typedef unsigned short umode_t; 19 20typedef __signed__ char __s8; 21typedef unsigned char __u8; 22 23typedef __signed__ short __s16; 24typedef unsigned short __u16; 25 26typedef __signed__ int __s32; 27typedef unsigned int __u32; 28 29typedef __signed__ long long __s64; 30typedef unsigned long long __u64; 31 32#ifdef __KERNEL__ 33 34typedef __signed__ char s8; 35typedef unsigned char u8; 36 37typedef __signed__ short s16; 38typedef unsigned short u16; 39 40typedef __signed__ int s32; 41typedef unsigned int u32; 42 43typedef __signed__ long long s64; 44typedef unsigned long long u64; 45 46#define BITS_PER_LONG 32 47 48typedef u32 dma_addr_t; 49typedef u32 dma64_addr_t; 50 51#endif /* __KERNEL__ */ 52 53#endif /* defined(_SPARC_TYPES_H) */ 54