]> git.ipfire.org Git - u-boot.git/blob - include/asm-mips/types.h
* Code cleanup:
[u-boot.git] / include / asm-mips / types.h
1 /* $Id: types.h,v 1.3 1999/08/18 23:37:50 ralf Exp $
2 *
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
6 *
7 * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
8 * Copyright (C) 1999 Silicon Graphics, Inc.
9 */
10 #ifndef _ASM_TYPES_H
11 #define _ASM_TYPES_H
12
13 typedef unsigned short umode_t;
14
15 /*
16 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
17 * header files exported to user space
18 */
19
20 typedef __signed__ char __s8;
21 typedef unsigned char __u8;
22
23 typedef __signed__ short __s16;
24 typedef unsigned short __u16;
25
26 typedef __signed__ int __s32;
27 typedef unsigned int __u32;
28
29 #if (_MIPS_SZLONG == 64)
30
31 typedef __signed__ long __s64;
32 typedef unsigned long __u64;
33
34 #else
35
36 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
37 typedef __signed__ long long __s64;
38 typedef unsigned long long __u64;
39 #endif
40
41 #endif
42
43 /*
44 * These aren't exported outside the kernel to avoid name space clashes
45 */
46 #ifdef __KERNEL__
47
48 typedef __signed char s8;
49 typedef unsigned char u8;
50
51 typedef __signed short s16;
52 typedef unsigned short u16;
53
54 typedef __signed int s32;
55 typedef unsigned int u32;
56
57 #if (_MIPS_SZLONG == 64)
58
59 typedef __signed__ long s64;
60 typedef unsigned long u64;
61
62 #else
63
64 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
65 typedef __signed__ long long s64;
66 typedef unsigned long long u64;
67 #endif
68
69 #endif
70
71 #define BITS_PER_LONG _MIPS_SZLONG
72
73 typedef unsigned long dma_addr_t;
74
75 #endif /* __KERNEL__ */
76
77 #endif /* _ASM_TYPES_H */