Import upstream u-boot 1.1.4
[u-boot.git] / board / MAI / bios_emulator / scitech / include / x86emu / types.h
1 /****************************************************************************
2 *
3 *                       Realmode X86 Emulator Library
4 *
5 *               Copyright (C) 1996-1999 SciTech Software, Inc.
6 *                    Copyright (C) David Mosberger-Tang
7 *                      Copyright (C) 1999 Egbert Eich
8 *
9 *  ========================================================================
10 *
11 *  Permission to use, copy, modify, distribute, and sell this software and
12 *  its documentation for any purpose is hereby granted without fee,
13 *  provided that the above copyright notice appear in all copies and that
14 *  both that copyright notice and this permission notice appear in
15 *  supporting documentation, and that the name of the authors not be used
16 *  in advertising or publicity pertaining to distribution of the software
17 *  without specific, written prior permission.  The authors makes no
18 *  representations about the suitability of this software for any purpose.
19 *  It is provided "as is" without express or implied warranty.
20 *
21 *  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
22 *  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
23 *  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
24 *  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
25 *  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26 *  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27 *  PERFORMANCE OF THIS SOFTWARE.
28 *
29 *  ========================================================================
30 *
31 * Language:     ANSI C
32 * Environment:  Any
33 * Developer:    Kendall Bennett
34 *
35 * Description:  Header file for x86 emulator type definitions.
36 *
37 ****************************************************************************/
38
39 #ifndef __X86EMU_TYPES_H
40 #define __X86EMU_TYPES_H
41
42 #include <sys/types.h>
43
44 /*---------------------- Macros and type definitions ----------------------*/
45
46 /* Currently only for Linux/32bit */
47 #if defined(__GNUC__) && !defined(NO_LONG_LONG)
48 #define __HAS_LONG_LONG__
49 #endif
50
51 typedef unsigned char       u8;
52 typedef unsigned short      u16;
53 typedef unsigned int        u32;
54 #ifdef __HAS_LONG_LONG__
55 typedef unsigned long long  u64;
56 #endif
57
58 typedef char                s8;
59 typedef short               s16;
60 typedef long                s32;
61 #ifdef __HAS_LONG_LONG__
62 typedef long long           s64;
63 #endif
64
65 /*typedef unsigned int      uint;*/
66 typedef int                 sint;
67
68 typedef u16 X86EMU_pioAddr;
69
70 #endif  /* __X86EMU_TYPES_H */