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

emu_x86emui.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 system specific functions. These functions
00036 *                               are always compiled and linked in the OS depedent libraries,
00037 *                               and never in a binary portable driver.
00038 *
00039 ****************************************************************************/
00040 
00041 #ifndef __X86EMU_X86EMUI_H
00042 #define __X86EMU_X86EMUI_H
00043 
00044 #define _INLINE static
00045 
00046 /* Get rid of unused parameters in C++ compilation mode */
00047 
00048 #define X86EMU_UNUSED(v)        v
00049 
00050 #include "emu_x86emu.h"
00051 #include "emu_regs.h"
00052 #include "emu_decode.h"
00053 #include "emu_ops.h"
00054 #include "emu_prim_ops.h"
00055 #include "emu_fpu.h"
00056 #include "emu_fpu_regs.h"
00057 
00058 #include <stdio.h>
00059 #include <stdlib.h>
00060 #include <string.h>
00061 
00062 #define INC_DECODED_INST_LEN(x)
00063 #define DECODE_PRINTF(x)
00064 #define DECODE_PRINTF2(x,y)
00065 #define SAVE_IP_CS(x,y)
00066 #define START_OF_INSTR()
00067 #define END_OF_INSTR()
00068 #define END_OF_INSTR_NO_TRACE()
00069 #define TRACE_REGS()
00070 #define SINGLE_STEP()
00071 #define TRACE_AND_STEP()
00072 #define CALL_TRACE(u,v,w,x,s)
00073 #define RETURN_TRACE(n,u,v)
00074 
00075 
00076 /*--------------------------- Inline Functions ----------------------------*/
00077 
00078 extern u8       (X86APIP sys_rdb)(u32 addr);
00079 extern u16      (X86APIP sys_rdw)(u32 addr);
00080 extern u32      (X86APIP sys_rdl)(u32 addr);
00081 extern void (X86APIP sys_wrb)(u32 addr,u8 val);
00082 extern void (X86APIP sys_wrw)(u32 addr,u16 val);
00083 extern void (X86APIP sys_wrl)(u32 addr,u32 val);
00084 
00085 extern u8       (X86APIP sys_inb)(X86EMU_pioAddr addr);
00086 extern u16      (X86APIP sys_inw)(X86EMU_pioAddr addr);
00087 extern u32      (X86APIP sys_inl)(X86EMU_pioAddr addr);
00088 extern void (X86APIP sys_outb)(X86EMU_pioAddr addr,u8 val);
00089 extern void (X86APIP sys_outw)(X86EMU_pioAddr addr,u16 val);
00090 extern void     (X86APIP sys_outl)(X86EMU_pioAddr addr,u32 val);
00091 
00092 #endif /* __X86EMU_X86EMUI_H */