Merge branch 'generic-dispatch' of git://brick.kernel.dk/data/git/linux-2.6-block
[linux-block.git] / include / asm-m32r / types.h
CommitLineData
1da177e4
LT
1#ifndef _ASM_M32R_TYPES_H
2#define _ASM_M32R_TYPES_H
3
4#ifndef __ASSEMBLY__
5
6/* $Id$ */
7
8/* orig : i386 2.4.18 */
9
10typedef unsigned short umode_t;
11
12/*
13 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
14 * header files exported to user space
15 */
16
17typedef __signed__ char __s8;
18typedef unsigned char __u8;
19
20typedef __signed__ short __s16;
21typedef unsigned short __u16;
22
23typedef __signed__ int __s32;
24typedef unsigned int __u32;
25
26#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
27typedef __signed__ long long __s64;
28typedef unsigned long long __u64;
29#endif
30#endif /* __ASSEMBLY__ */
31
32/*
33 * These aren't exported outside the kernel to avoid name space clashes
34 */
35#ifdef __KERNEL__
36
37#define BITS_PER_LONG 32
38
39#ifndef __ASSEMBLY__
40
41typedef signed char s8;
42typedef unsigned char u8;
43
44typedef signed short s16;
45typedef unsigned short u16;
46
47typedef signed int s32;
48typedef unsigned int u32;
49
50typedef signed long long s64;
51typedef unsigned long long u64;
52
53/* DMA addresses are 32-bits wide. */
54
55typedef u32 dma_addr_t;
56typedef u64 dma64_addr_t;
57
1da177e4
LT
58#endif /* __ASSEMBLY__ */
59
60#endif /* __KERNEL__ */
61
62#endif /* _ASM_M32R_TYPES_H */