Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[wrt350n-kernel.git] / include / asm-xtensa / types.h
blobb27d841a8eb7f2b4e4e934ccd9a876a494ac2273
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
15 #ifdef __ASSEMBLY__
16 # define __XTENSA_UL(x) (x)
17 # define __XTENSA_UL_CONST(x) x
18 #else
19 # define __XTENSA_UL(x) ((unsigned long)(x))
20 # define __XTENSA_UL_CONST(x) x##UL
21 #endif
23 #ifndef __ASSEMBLY__
25 typedef unsigned short umode_t;
28 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
29 * header files exported to user space
32 typedef __signed__ char __s8;
33 typedef unsigned char __u8;
35 typedef __signed__ short __s16;
36 typedef unsigned short __u16;
38 typedef __signed__ int __s32;
39 typedef unsigned int __u32;
41 #if defined(__GNUC__)
42 __extension__ typedef __signed__ long long __s64;
43 __extension__ typedef unsigned long long __u64;
44 #endif
47 * These aren't exported outside the kernel to avoid name space clashes
49 #ifdef __KERNEL__
51 typedef __signed__ char s8;
52 typedef unsigned char u8;
54 typedef __signed__ short s16;
55 typedef unsigned short u16;
57 typedef __signed__ int s32;
58 typedef unsigned int u32;
60 typedef __signed__ long long s64;
61 typedef unsigned long long u64;
64 #define BITS_PER_LONG 32
66 /* Dma addresses are 32-bits wide. */
68 typedef u32 dma_addr_t;
70 #endif /* __KERNEL__ */
71 #endif
73 #endif /* _XTENSA_TYPES_H */