1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 */
9 #ifndef _ASM_TYPES_H
10 #define _ASM_TYPES_H
11
12 typedef unsigned int umode_t;
13
14 /*
15 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
16 * header files exported to user space
17 */
18
19 typedef __signed__ char __s8;
20 typedef unsigned char __u8;
21
22 typedef __signed__ short __s16;
23 typedef unsigned short __u16;
24
25 typedef __signed__ int __s32;
26 typedef unsigned int __u32;
27
28 #if (_MIPS_SZLONG == 64)
29
30 typedef __signed__ long __s64;
31 typedef unsigned long __u64;
32
33 #else
34
35 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
36 typedef __signed__ long long __s64;
37 typedef unsigned long long __u64;
38 #endif
39
40 #endif
41
42 /*
43 * These aren't exported outside the kernel to avoid name space clashes
44 */
45 #ifdef __KERNEL__
46
47 typedef __signed char s8;
48 typedef unsigned char u8;
49
50 typedef __signed short s16;
51 typedef unsigned short u16;
52
53 typedef __signed int s32;
54 typedef unsigned int u32;
55
56 #if (_MIPS_SZLONG == 64)
57
58 typedef __signed__ long s64;
59 typedef unsigned long u64;
60
61 #else
62
63 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
64 typedef __signed__ long long s64;
65 typedef unsigned long long u64;
66 #endif
67
68 #endif
69
70 #define BITS_PER_LONG _MIPS_SZLONG
71
72 typedef u64 dma_addr_t;
73 typedef u64 dma64_addr_t;
74
75 typedef unsigned long phys_t;
76
77 #endif /* __KERNEL__ */
78
79 #endif /* _ASM_TYPES_H */
Cache object: b3a99f0a6557b54999d4a28d5d03a06b
|