Optimize andes_clear_page() and andes_copy_page() with prefetch
[linux-2.6/linux-mips.git] / include / asm-mips / types.h
blob638f75163c36e577a4fb1b218ba8eba12dc162bc
1 /* $Id: types.h,v 1.3 1999/08/18 23:37:50 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
8 * Copyright (C) 1999 Silicon Graphics, Inc.
9 */
10 #ifndef _ASM_TYPES_H
11 #define _ASM_TYPES_H
13 typedef unsigned short 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 (_MIPS_SZLONG == 64)
31 typedef __signed__ long __s64;
32 typedef unsigned long __u64;
34 #else
36 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
37 typedef __signed__ long long __s64;
38 typedef unsigned long long __u64;
39 #endif
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 (_MIPS_SZLONG == 64)
59 typedef __signed__ long s64;
60 typedef unsigned long u64;
62 #else
64 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
65 typedef __signed__ long long s64;
66 typedef unsigned long long u64;
67 #endif
69 #endif
71 #define BITS_PER_LONG _MIPS_SZLONG
73 typedef unsigned long dma_addr_t;
75 #endif /* __KERNEL__ */
77 #endif /* _ASM_TYPES_H */