Updated binary toolchain for kernel 2.4 target (gcc 4.2.4, binutils 2.20.1)
[tomato.git] / tools / brcm / K24 / hndtools-mipsel-uclibc-4.2.4 / include / asm-mips / types.h
blob9f7274d57a4a90adb4aeec32f3067581ed5d27e7
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.
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
12 #include <linux/config.h>
14 typedef unsigned short umode_t;
17 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
18 * header files exported to user space
21 typedef __signed__ char __s8;
22 typedef unsigned char __u8;
24 typedef __signed__ short __s16;
25 typedef unsigned short __u16;
27 typedef __signed__ int __s32;
28 typedef unsigned int __u32;
30 #if (_MIPS_SZLONG == 64)
32 typedef __signed__ long __s64;
33 typedef unsigned long __u64;
35 #else
37 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
38 typedef __signed__ long long __s64;
39 typedef unsigned long long __u64;
40 #endif
42 #endif
45 * These aren't exported outside the kernel to avoid name space clashes
47 #ifdef __KERNEL__
49 typedef __signed char s8;
50 typedef unsigned char u8;
52 typedef __signed short s16;
53 typedef unsigned short u16;
55 typedef __signed int s32;
56 typedef unsigned int u32;
58 #if (_MIPS_SZLONG == 64)
60 typedef __signed__ long s64;
61 typedef unsigned long u64;
63 #else
65 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
66 typedef __signed__ long long s64;
67 typedef unsigned long long u64;
68 #endif
70 #endif
72 #define BITS_PER_LONG _MIPS_SZLONG
74 #if defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)
75 typedef u64 dma_addr_t;
76 #else
77 typedef u32 dma_addr_t;
78 #endif
79 typedef u64 dma64_addr_t;
81 #ifdef CONFIG_64BIT_PHYS_ADDR
82 typedef unsigned long long phys_t;
83 #else
84 typedef unsigned long phys_t;
85 #endif
87 #endif /* __KERNEL__ */
89 #endif /* _ASM_TYPES_H */