Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

emu_types.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 *
00003 *                                               Realmode X86 Emulator Library
00004 *
00005 *               Copyright (C) 1996-1999 SciTech Software, Inc.
00006 *                                    Copyright (C) David Mosberger-Tang
00007 *                                          Copyright (C) 1999 Egbert Eich
00008 *
00009 *  ========================================================================
00010 *
00011 *  Permission to use, copy, modify, distribute, and sell this software and
00012 *  its documentation for any purpose is hereby granted without fee,
00013 *  provided that the above copyright notice appear in all copies and that
00014 *  both that copyright notice and this permission notice appear in
00015 *  supporting documentation, and that the name of the authors not be used
00016 *  in advertising or publicity pertaining to distribution of the software
00017 *  without specific, written prior permission.  The authors makes no
00018 *  representations about the suitability of this software for any purpose.
00019 *  It is provided "as is" without express or implied warranty.
00020 *
00021 *  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
00022 *  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
00023 *  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
00024 *  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
00025 *  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
00026 *  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00027 *  PERFORMANCE OF THIS SOFTWARE.
00028 *
00029 *  ========================================================================
00030 *
00031 * Language:             ANSI C
00032 * Environment:  Any
00033 * Developer:    Kendall Bennett
00034 *
00035 * Description:  Header file for x86 emulator type definitions.
00036 *
00037 ****************************************************************************/
00038 
00039 /* $XFree86: xc/extras/x86emu/include/x86emu/types.h,v 1.4 2000/09/26 15:56:44 tsi Exp $ */
00040 
00041 #ifndef __X86EMU_TYPES_H
00042 #define __X86EMU_TYPES_H
00043 
00044 #include <sys/types.h>
00045 
00046 /*
00047  * The following kludge is an attempt to work around typedef conflicts with
00048  * <sys/types.h>.
00049  */
00050 #define u8   x86emuu8
00051 #define u16  x86emuu16
00052 #define u32  x86emuu32
00053 #define u64  x86emuu64
00054 #define s8   x86emus8
00055 #define s16  x86emus16
00056 #define s32  x86emus32
00057 #define s64  x86emus64
00058 #define uint x86emuuint
00059 #define sint x86emusint
00060 
00061 /*---------------------- Macros and type definitions ----------------------*/
00062 
00063 /* Currently only for Linux/32bit */
00064 #if defined(__GNUC__) && !defined(NO_LONG_LONG)
00065 #define __HAS_LONG_LONG__
00066 #endif
00067 
00068 typedef unsigned char           u8;
00069 typedef unsigned short          u16;
00070 typedef unsigned int            u32;
00071 #ifdef __HAS_LONG_LONG__
00072 typedef unsigned long long      u64;
00073 #endif
00074 
00075 typedef char                            s8;
00076 typedef short                           s16;
00077 typedef int                             s32;
00078 #ifdef __HAS_LONG_LONG__
00079 typedef long long                       s64;
00080 #endif
00081 
00082 typedef unsigned int                    uint;
00083 typedef int                             sint;
00084 
00085 typedef u16 X86EMU_pioAddr;
00086 
00087 #endif  /* __X86EMU_TYPES_H */