Import 2.3.18pre1
[davej-history.git] / include / asm-mips / types.h
blob5bbc1a4b873a013c3e7a22a910db0649e2ad8b2d
1 /*
2 * include/asm-mips/types.h
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
8 * Copyright (C) 1994, 1995, 1996 by Ralf Baechle
9 */
10 #ifndef __ASM_MIPS_TYPES_H
11 #define __ASM_MIPS_TYPES_H
13 typedef unsigned long umode_t;
16 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
17 * header files exported to user space
20 typedef __signed__ char __s8;
21 typedef unsigned char __u8;
23 typedef __signed__ short __s16;
24 typedef unsigned short __u16;
26 typedef __signed__ int __s32;
27 typedef unsigned int __u32;
29 #if ((~0UL) == 0xffffffff)
31 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
32 typedef __signed__ long long __s64;
33 typedef unsigned long long __u64;
34 #endif
36 #else
38 typedef __signed__ long __s64;
39 typedef unsigned long __u64;
41 #endif
44 * These aren't exported outside the kernel to avoid name space clashes
46 #ifdef __KERNEL__
48 typedef __signed char s8;
49 typedef unsigned char u8;
51 typedef __signed short s16;
52 typedef unsigned short u16;
54 typedef __signed int s32;
55 typedef unsigned int u32;
57 #if ((~0UL) == 0xffffffff)
59 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
60 typedef __signed__ long long s64;
61 typedef unsigned long long u64;
62 #endif
64 #else
66 typedef __signed__ long s64;
67 typedef unsigned long u64;
69 #endif
70 #define BITS_PER_LONG _MIPS_SZLONG
72 #endif /* __KERNEL__ */
74 #endif /* __ASM_MIPS_TYPES_H */