]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-mips/types.h
mips: types: use <asm-generic/int-*.h> for the mips architecture
[linux-2.6-omap-h63xx.git] / include / asm-mips / types.h
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 #if _MIPS_SZLONG == 64
13 # include <asm-generic/int-l64.h>
14 #else
15 # include <asm-generic/int-ll64.h>
16 #endif
17
18 #ifndef __ASSEMBLY__
19
20 typedef unsigned short umode_t;
21
22 #endif
23
24 #endif /* __ASSEMBLY__ */
25
26 /*
27  * These aren't exported outside the kernel to avoid name space clashes
28  */
29 #ifdef __KERNEL__
30
31 #define BITS_PER_LONG _MIPS_SZLONG
32
33 #ifndef __ASSEMBLY__
34
35 #if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \
36     || defined(CONFIG_64BIT)
37 typedef u64 dma_addr_t;
38 #else
39 typedef u32 dma_addr_t;
40 #endif
41 typedef u64 dma64_addr_t;
42
43 /*
44  * Don't use phys_t.  You've been warned.
45  */
46 #ifdef CONFIG_64BIT_PHYS_ADDR
47 typedef unsigned long long phys_t;
48 #else
49 typedef unsigned long phys_t;
50 #endif
51
52 #endif /* __ASSEMBLY__ */
53
54 #endif /* __KERNEL__ */
55
56 #endif /* _ASM_TYPES_H */