]>
git.ipfire.org Git - u-boot.git/blob - include/asm-mips/types.h
1 /* $Id: types.h,v 1.3 1999/08/18 23:37:50 ralf Exp $
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
7 * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle
8 * Copyright (C) 1999 Silicon Graphics, Inc.
13 typedef unsigned short umode_t
;
16 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
17 * header files exported to user space
20 typedef __signed__
char __s8
;
21 typedef unsigned char __u8
;
23 typedef __signed__
short __s16
;
24 typedef unsigned short __u16
;
26 typedef __signed__
int __s32
;
27 typedef unsigned int __u32
;
29 #if (_MIPS_SZLONG == 64)
31 typedef __signed__
long __s64
;
32 typedef unsigned long __u64
;
36 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
37 typedef __signed__
long long __s64
;
38 typedef unsigned long long __u64
;
44 * These aren't exported outside the kernel to avoid name space clashes
48 typedef __signed
char s8
;
49 typedef unsigned char u8
;
51 typedef __signed
short s16
;
52 typedef unsigned short u16
;
54 typedef __signed
int s32
;
55 typedef unsigned int u32
;
57 #if (_MIPS_SZLONG == 64)
59 typedef __signed__
long s64
;
60 typedef unsigned long u64
;
64 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
65 typedef __signed__
long long s64
;
66 typedef unsigned long long u64
;
71 #define BITS_PER_LONG _MIPS_SZLONG
73 typedef unsigned long dma_addr_t
;
75 #endif /* __KERNEL__ */
77 #endif /* _ASM_TYPES_H */