blob: 42fc6ed9815690e563fceb6ca1590df9e86f5df4 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* $Id: types.h,v 1.13 2001/12/21 01:22:59 davem 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
18#ifndef __ASSEMBLY__
19
20typedef unsigned short umode_t;
21
22typedef __signed__ char __s8;
23typedef unsigned char __u8;
24
25typedef __signed__ short __s16;
26typedef unsigned short __u16;
27
28typedef __signed__ int __s32;
29typedef unsigned int __u32;
30
31typedef __signed__ long long __s64;
32typedef unsigned long long __u64;
33
34#endif /* __ASSEMBLY__ */
35
36#ifdef __KERNEL__
37
38#define BITS_PER_LONG 32
39
40#ifndef __ASSEMBLY__
41
42typedef __signed__ char s8;
43typedef unsigned char u8;
44
45typedef __signed__ short s16;
46typedef unsigned short u16;
47
48typedef __signed__ int s32;
49typedef unsigned int u32;
50
51typedef __signed__ long long s64;
52typedef unsigned long long u64;
53
54typedef u32 dma_addr_t;
55typedef u32 dma64_addr_t;
56
Linus Torvalds1da177e2005-04-16 15:20:36 -070057#endif /* __ASSEMBLY__ */
58
59#endif /* __KERNEL__ */
60
61#endif /* defined(_SPARC_TYPES_H) */