Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 1 | /* |
| 2 | * include/asm-xtensa/types.h |
| 3 | * |
| 4 | * This file is subject to the terms and conditions of the GNU General Public |
| 5 | * License. See the file "COPYING" in the main directory of this archive |
| 6 | * for more details. |
| 7 | * |
| 8 | * Copyright (C) 2001 - 2005 Tensilica Inc. |
| 9 | */ |
| 10 | |
| 11 | #ifndef _XTENSA_TYPES_H |
| 12 | #define _XTENSA_TYPES_H |
| 13 | |
H. Peter Anvin | 4cf63c8 | 2008-04-06 10:35:15 -0700 | [diff] [blame] | 14 | #include <asm-generic/int-ll64.h> |
Chris Zankel | 24a9ab7 | 2007-08-05 11:24:13 -0700 | [diff] [blame] | 15 | |
| 16 | #ifdef __ASSEMBLY__ |
| 17 | # define __XTENSA_UL(x) (x) |
| 18 | # define __XTENSA_UL_CONST(x) x |
| 19 | #else |
| 20 | # define __XTENSA_UL(x) ((unsigned long)(x)) |
| 21 | # define __XTENSA_UL_CONST(x) x##UL |
| 22 | #endif |
| 23 | |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 24 | #ifndef __ASSEMBLY__ |
| 25 | |
| 26 | typedef unsigned short umode_t; |
| 27 | |
| 28 | /* |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 29 | * These aren't exported outside the kernel to avoid name space clashes |
| 30 | */ |
| 31 | #ifdef __KERNEL__ |
| 32 | |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 33 | #define BITS_PER_LONG 32 |
| 34 | |
| 35 | /* Dma addresses are 32-bits wide. */ |
| 36 | |
| 37 | typedef u32 dma_addr_t; |
| 38 | |
Chris Zankel | 9a8fd55 | 2005-06-23 22:01:26 -0700 | [diff] [blame] | 39 | #endif /* __KERNEL__ */ |
| 40 | #endif |
| 41 | |
| 42 | #endif /* _XTENSA_TYPES_H */ |