Char: mxser, 0 to NULL in pointer
[linux-2.6/mini2440.git] / include / asm-frv / types.h
blob767e5ed71c4ba37c718b8b5beecfe045c856ef8b
1 /* types.h: FRV types
3 * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version.
12 #ifndef _ASM_TYPES_H
13 #define _ASM_TYPES_H
15 #ifndef __ASSEMBLY__
17 typedef unsigned short umode_t;
20 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
21 * header files exported to user space
24 typedef __signed__ char __s8;
25 typedef unsigned char __u8;
27 typedef __signed__ short __s16;
28 typedef unsigned short __u16;
30 typedef __signed__ int __s32;
31 typedef unsigned int __u32;
33 #if defined(__GNUC__)
34 __extension__ typedef __signed__ long long __s64;
35 __extension__ typedef unsigned long long __u64;
36 #endif
38 #endif /* __ASSEMBLY__ */
41 * These aren't exported outside the kernel to avoid name space clashes
43 #ifdef __KERNEL__
45 #define BITS_PER_LONG 32
47 #ifndef __ASSEMBLY__
50 typedef signed char s8;
51 typedef unsigned char u8;
53 typedef signed short s16;
54 typedef unsigned short u16;
56 typedef signed int s32;
57 typedef unsigned int u32;
59 typedef signed long long s64;
60 typedef unsigned long long u64;
62 /* Dma addresses are 32-bits wide. */
64 typedef u32 dma_addr_t;
66 #endif /* __ASSEMBLY__ */
68 #endif /* __KERNEL__ */
70 #endif /* _ASM_TYPES_H */