[PATCH] w1: Adds a sysfs entry (w1_master_search) that allows you to disable/enable...
[linux-2.6/verdex.git] / include / asm-sparc64 / types.h
blob6248ed1a9a7a7be2f5822e58d9dce7c75b41a152
1 /* $Id: types.h,v 1.4 2001/10/09 02:24:35 davem Exp $ */
2 #ifndef _SPARC64_TYPES_H
3 #define _SPARC64_TYPES_H
5 /*
6 * This file is never included by application software unless
7 * explicitly requested (e.g., via linux/types.h) in which case the
8 * application is Linux specific so (user-) name space pollution is
9 * not a major issue. However, for interoperability, libraries still
10 * need to be careful to avoid a name clashes.
13 #ifndef __ASSEMBLY__
15 typedef unsigned short umode_t;
18 * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the
19 * header files exported to user space.
22 typedef __signed__ char __s8;
23 typedef unsigned char __u8;
25 typedef __signed__ short __s16;
26 typedef unsigned short __u16;
28 typedef __signed__ int __s32;
29 typedef unsigned int __u32;
31 typedef __signed__ long __s64;
32 typedef unsigned long __u64;
34 #endif /* __ASSEMBLY__ */
36 #ifdef __KERNEL__
38 #define BITS_PER_LONG 64
40 #ifndef __ASSEMBLY__
42 typedef __signed__ char s8;
43 typedef unsigned char u8;
45 typedef __signed__ short s16;
46 typedef unsigned short u16;
48 typedef __signed__ int s32;
49 typedef unsigned int u32;
51 typedef __signed__ long s64;
52 typedef unsigned long u64;
54 /* Dma addresses come in generic and 64-bit flavours. */
56 typedef u32 dma_addr_t;
57 typedef u64 dma64_addr_t;
59 typedef unsigned short kmem_bufctl_t;
61 #endif /* __ASSEMBLY__ */
63 #endif /* __KERNEL__ */
65 #endif /* defined(_SPARC64_TYPES_H) */