Import upstream u-boot 1.1.4
[u-boot.git] / board / MAI / bios_emulator / scitech / src / biosemu / biosemui.h
1 /****************************************************************************
2 *
3 *                        BIOS emulator and interface
4 *                      to Realmode X86 Emulator Library
5 *
6 *               Copyright (C) 1996-1999 SciTech Software, Inc.
7 *
8 *  ========================================================================
9 *
10 *  Permission to use, copy, modify, distribute, and sell this software and
11 *  its documentation for any purpose is hereby granted without fee,
12 *  provided that the above copyright notice appear in all copies and that
13 *  both that copyright notice and this permission notice appear in
14 *  supporting documentation, and that the name of the authors not be used
15 *  in advertising or publicity pertaining to distribution of the software
16 *  without specific, written prior permission.  The authors makes no
17 *  representations about the suitability of this software for any purpose.
18 *  It is provided "as is" without express or implied warranty.
19 *
20 *  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
21 *  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
22 *  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
23 *  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
24 *  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25 *  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26 *  PERFORMANCE OF THIS SOFTWARE.
27 *
28 *  ========================================================================
29 *
30 * Language:     ANSI C
31 * Environment:  Any
32 * Developer:    Kendall Bennett
33 *
34 * Description:  Internal header file for the BIOS emulator library.
35 *
36 ****************************************************************************/
37
38 #ifndef __BIOSEMUI_H
39 #define __BIOSEMUI_H
40
41 #include <biosemu.h>
42
43 /*---------------------- Macros and type definitions ----------------------*/
44
45 #ifdef DEBUG
46 #define DB(x)   x
47 #else
48 #define DB(x)
49 #endif
50
51 #define BIOS_SEG        0xfff0
52
53 #define M               _X86EMU_env
54
55 /*-------------------------- Function Prototypes --------------------------*/
56
57 /* bios.c */
58
59 void    _BE_bios_init(u32 *intrTab);
60 void    _BE_setup_funcs(void);
61
62 /* besys.c */
63
64 u8      X86API BE_rdb(u32 addr);
65 u16     X86API BE_rdw(u32 addr);
66 u32     X86API BE_rdl(u32 addr);
67 void    X86API BE_wrb(u32 addr,u8 val);
68 void    X86API BE_wrw(u32 addr,u16 val);
69 void    X86API BE_wrl(u32 addr,u32 val);
70 #ifdef  DEBUG
71 u8      X86API BE_inb(int port);
72 u16     X86API BE_inw(int port);
73 u32     X86API BE_inl(int port);
74 void    X86API BE_outb(int port, u8 val);
75 void    X86API BE_outw(int port, u16 val);
76 void    X86API BE_outl(int port, u32 val);
77 #endif
78
79 #endif /* __BIOSEMUI_H */