1 /* $Id: types.h,v 1.3 2000/01/28 13:43:15 jj Exp $ */
2 #ifndef _SPARC64_TYPES_H
3 #define _SPARC64_TYPES_H
4
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.
11 */
12
13 typedef unsigned short umode_t;
14
15 /*
16 * _xx is ok: it doesn't pollute the POSIX namespace. Use these in the
17 * header files exported to user space.
18 */
19
20 typedef __signed__ char __s8;
21 typedef unsigned char __u8;
22
23 typedef __signed__ short __s16;
24 typedef unsigned short __u16;
25
26 typedef __signed__ int __s32;
27 typedef unsigned int __u32;
28
29 typedef __signed__ long __s64;
30 typedef unsigned long __u64;
31
32 #ifdef __KERNEL__
33
34 typedef __signed__ char s8;
35 typedef unsigned char u8;
36
37 typedef __signed__ short s16;
38 typedef unsigned short u16;
39
40 typedef __signed__ int s32;
41 typedef unsigned int u32;
42
43 typedef __signed__ long s64;
44 typedef unsigned long u64;
45
46 #define BITS_PER_LONG 64
47
48 /* Dma addresses are 32-bits wide for now. */
49
50 typedef u32 dma_addr_t;
51
52 #endif /* __KERNEL__ */
53
54 #endif /* defined(_SPARC64_TYPES_H) */
55
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.