diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2011-08-05 14:58:33 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-05 18:20:17 +0200 |
commit | 9b64050669a10c4c085f3fdb44e28ab70d90ee44 (patch) | |
tree | f3e3d9af6c1a995ee38c241bd90d0bda91af57e3 /arch/mips/include/asm/types.h | |
parent | 922808aec8be2a4da877b0cdcf1ea183c907ef9f (diff) | |
download | barebox-9b64050669a10c4c085f3fdb44e28ab70d90ee44.tar.gz barebox-9b64050669a10c4c085f3fdb44e28ab70d90ee44.tar.xz |
MIPS: import header files
from linux-2.6.39:
* arch/mips/include/asm/*
* include/asm-generic/int-ll64.h
from barebox-2011.07.0 arch/x86:
* arch/mips/include/asm/sections.h
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/include/asm/types.h')
-rw-r--r-- | arch/mips/include/asm/types.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/mips/include/asm/types.h b/arch/mips/include/asm/types.h new file mode 100644 index 0000000000..f5373cc339 --- /dev/null +++ b/arch/mips/include/asm/types.h @@ -0,0 +1,59 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle + * Copyright (C) 2008 Wind River Systems, + * written by Ralf Baechle + * Copyright (C) 1999 Silicon Graphics, Inc. + */ +#ifndef _ASM_TYPES_H +#define _ASM_TYPES_H + +#include <asm-generic/int-ll64.h> + +#if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \ + || defined(CONFIG_64BIT) +typedef u64 dma_addr_t; +#else +typedef u32 dma_addr_t; +#endif +typedef u64 dma64_addr_t; + +/* + * We don't use int-l64.h for the kernel anymore but still use it for + * userspace to avoid code changes. + */ +#if (_MIPS_SZLONG == 64) && !defined(__KERNEL__) +# include <asm-generic/int-l64.h> +#else +# include <asm-generic/int-ll64.h> +#endif + +#ifndef __ASSEMBLY__ + +typedef unsigned short umode_t; + +#endif /* __ASSEMBLY__ */ + +/* + * These aren't exported outside the kernel to avoid name space clashes + */ +#ifdef __KERNEL__ +#ifndef __ASSEMBLY__ + +/* + * Don't use phys_t. You've been warned. + */ +#ifdef CONFIG_64BIT_PHYS_ADDR +typedef unsigned long long phys_t; +#else +typedef unsigned long phys_t; +#endif + +#endif /* __ASSEMBLY__ */ + +#endif /* __KERNEL__ */ + +#endif /* _ASM_TYPES_H */ |