GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / cfe / cfe / x86emu / x86emu / x86emui.h
blob594b344a5ccf8772c6519fced6afc9310a63fb9c
1 /****************************************************************************
3 * Realmode X86 Emulator Library
5 * Copyright (C) 1996-1999 SciTech Software, Inc.
6 * Copyright (C) David Mosberger-Tang
7 * Copyright (C) 1999 Egbert Eich
9 * ========================================================================
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.
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.
29 * ========================================================================
31 * Language: ANSI C
32 * Environment: Any
33 * Developer: Kendall Bennett
35 * Description: Header file for system specific functions. These functions
36 * are always compiled and linked in the OS depedent libraries,
37 * and never in a binary portable driver.
39 ****************************************************************************/
41 /* $XFree86: xc/extras/x86emu/src/x86emu/x86emu/x86emui.h,v 1.3 2000/04/17 16:29:47 eich Exp $ */
43 #ifndef __X86EMU_X86EMUI_H
44 #define __X86EMU_X86EMUI_H
46 /* If we are compiling in C++ mode, we can compile some functions as
47 * inline to increase performance (however the code size increases quite
48 * dramatically in this case).
51 #if defined(__cplusplus) && !defined(_NO_INLINE)
52 #define _INLINE inline
53 #else
54 #define _INLINE static
55 #endif
57 /* Get rid of unused parameters in C++ compilation mode */
59 #ifdef __cplusplus
60 #define X86EMU_UNUSED(v)
61 #else
62 #define X86EMU_UNUSED(v) v
63 #endif
65 #include "x86emu.h"
66 #include "x86emu/regs.h"
67 #include "x86emu/debug.h"
68 #include "x86emu/decode.h"
69 #include "x86emu/ops.h"
70 #include "x86emu/prim_ops.h"
71 #include "x86emu/fpu.h"
72 #include "x86emu/fpu_regs.h"
74 #ifdef IN_MODULE
75 #include <xf86_ansic.h>
76 #else
77 #ifdef _CFE_
78 #include "lib_types.h"
79 #include "lib_string.h"
80 #else
81 #include <stdio.h>
82 #include <string.h>
83 #endif
84 #endif
85 /*--------------------------- Inline Functions ----------------------------*/
87 #ifdef __cplusplus
88 extern "C" { /* Use "C" linkage when in C++ mode */
89 #endif
91 extern u8 (X86APIP sys_rdb)(u32 addr);
92 extern u16 (X86APIP sys_rdw)(u32 addr);
93 extern u32 (X86APIP sys_rdl)(u32 addr);
94 extern void (X86APIP sys_wrb)(u32 addr,u8 val);
95 extern void (X86APIP sys_wrw)(u32 addr,u16 val);
96 extern void (X86APIP sys_wrl)(u32 addr,u32 val);
98 extern u8 (X86APIP sys_inb)(X86EMU_pioAddr addr);
99 extern u16 (X86APIP sys_inw)(X86EMU_pioAddr addr);
100 extern u32 (X86APIP sys_inl)(X86EMU_pioAddr addr);
101 extern void (X86APIP sys_outb)(X86EMU_pioAddr addr,u8 val);
102 extern void (X86APIP sys_outw)(X86EMU_pioAddr addr,u16 val);
103 extern void (X86APIP sys_outl)(X86EMU_pioAddr addr,u32 val);
105 #ifdef __cplusplus
106 } /* End of "C" linkage for C++ */
107 #endif
109 #endif /* __X86EMU_X86EMUI_H */