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
6 * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
7 * Copyright (C) 2008 Wind River Systems,
8 * written by Ralf Baechle
9 * Copyright (C) 1999 Silicon Graphics, Inc.
15 * We don't use int-l64.h for the kernel anymore but still use it for
16 * userspace to avoid code changes.
18 #if (_MIPS_SZLONG == 64) && !defined(__KERNEL__)
19 # include <asm-generic/int-l64.h>
21 # include <asm-generic/int-ll64.h>
26 typedef unsigned short umode_t
;
28 #endif /* __ASSEMBLY__ */
31 * These aren't exported outside the kernel to avoid name space clashes
36 #if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \
37 || defined(CONFIG_64BIT)
38 typedef u64 dma_addr_t
;
40 typedef u32 dma_addr_t
;
42 typedef u64 dma64_addr_t
;
45 * Don't use phys_t. You've been warned.
47 #ifdef CONFIG_64BIT_PHYS_ADDR
48 typedef unsigned long long phys_t
;
50 typedef unsigned long phys_t
;
53 #endif /* __ASSEMBLY__ */
55 #endif /* __KERNEL__ */
57 #endif /* _ASM_TYPES_H */