RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / asm-xtensa / types.h
blob9d99a8e9e337101af6fc2bb6881cabc85103915d
1 /*
2 * include/asm-xtensa/types.h
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.
8 * Copyright (C) 2001 - 2005 Tensilica Inc.
9 */
11 #ifndef _XTENSA_TYPES_H
12 #define _XTENSA_TYPES_H
14 #ifndef __ASSEMBLY__
16 typedef unsigned short umode_t;
19 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
20 * header files exported to user space
23 typedef __signed__ char __s8;
24 typedef unsigned char __u8;
26 typedef __signed__ short __s16;
27 typedef unsigned short __u16;
29 typedef __signed__ int __s32;
30 typedef unsigned int __u32;
32 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
33 typedef __signed__ long long __s64;
34 typedef unsigned long long __u64;
35 #endif
38 * These aren't exported outside the kernel to avoid name space clashes
40 #ifdef __KERNEL__
42 typedef __signed__ char s8;
43 typedef unsigned char u8;
45 typedef __signed__ short s16;
46 typedef unsigned short u16;
48 typedef __signed__ int s32;
49 typedef unsigned int u32;
51 typedef __signed__ long long s64;
52 typedef unsigned long long u64;
55 #define BITS_PER_LONG 32
57 /* Dma addresses are 32-bits wide. */
59 typedef u32 dma_addr_t;
61 #endif /* __KERNEL__ */
62 #endif
64 #endif /* _XTENSA_TYPES_H */