Linux 2.6.25.20
[linux/fpc-iii.git] / include / asm-mips / types.h
blob2dd147f519d15ea5f7b9f0b1b68964c2d3eadea7
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 #ifndef __ASSEMBLY__
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__)
38 __extension__ typedef __signed__ long long __s64;
39 __extension__ typedef unsigned long long __u64;
40 #endif
42 #endif
44 #endif /* __ASSEMBLY__ */
47 * These aren't exported outside the kernel to avoid name space clashes
49 #ifdef __KERNEL__
51 #define BITS_PER_LONG _MIPS_SZLONG
53 #ifndef __ASSEMBLY__
56 typedef __signed char s8;
57 typedef unsigned char u8;
59 typedef __signed short s16;
60 typedef unsigned short u16;
62 typedef __signed int s32;
63 typedef unsigned int u32;
65 #if (_MIPS_SZLONG == 64)
67 typedef __signed__ long s64;
68 typedef unsigned long u64;
70 #else
72 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
73 typedef __signed__ long long s64;
74 typedef unsigned long long u64;
75 #endif
77 #endif
79 #if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \
80 || defined(CONFIG_64BIT)
81 typedef u64 dma_addr_t;
82 #else
83 typedef u32 dma_addr_t;
84 #endif
85 typedef u64 dma64_addr_t;
88 * Don't use phys_t. You've been warned.
90 #ifdef CONFIG_64BIT_PHYS_ADDR
91 typedef unsigned long long phys_t;
92 #else
93 typedef unsigned long phys_t;
94 #endif
96 #endif /* __ASSEMBLY__ */
98 #endif /* __KERNEL__ */
100 #endif /* _ASM_TYPES_H */