1a9ee7a51SAlex Smith/****************************************************************************
2a9ee7a51SAlex Smith*
3a9ee7a51SAlex Smith*						Realmode X86 Emulator Library
4a9ee7a51SAlex Smith*
5a9ee7a51SAlex Smith*            	Copyright (C) 1996-1999 SciTech Software, Inc.
6a9ee7a51SAlex Smith* 				     Copyright (C) David Mosberger-Tang
7a9ee7a51SAlex Smith* 					   Copyright (C) 1999 Egbert Eich
8a9ee7a51SAlex Smith*
9a9ee7a51SAlex Smith*  ========================================================================
10a9ee7a51SAlex Smith*
11a9ee7a51SAlex Smith*  Permission to use, copy, modify, distribute, and sell this software and
12a9ee7a51SAlex Smith*  its documentation for any purpose is hereby granted without fee,
13a9ee7a51SAlex Smith*  provided that the above copyright notice appear in all copies and that
14a9ee7a51SAlex Smith*  both that copyright notice and this permission notice appear in
15a9ee7a51SAlex Smith*  supporting documentation, and that the name of the authors not be used
16a9ee7a51SAlex Smith*  in advertising or publicity pertaining to distribution of the software
17a9ee7a51SAlex Smith*  without specific, written prior permission.  The authors makes no
18a9ee7a51SAlex Smith*  representations about the suitability of this software for any purpose.
19a9ee7a51SAlex Smith*  It is provided "as is" without express or implied warranty.
20a9ee7a51SAlex Smith*
21a9ee7a51SAlex Smith*  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
22a9ee7a51SAlex Smith*  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
23a9ee7a51SAlex Smith*  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
24a9ee7a51SAlex Smith*  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
25a9ee7a51SAlex Smith*  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26a9ee7a51SAlex Smith*  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27a9ee7a51SAlex Smith*  PERFORMANCE OF THIS SOFTWARE.
28a9ee7a51SAlex Smith*
29a9ee7a51SAlex Smith*  ========================================================================
30a9ee7a51SAlex Smith*
31a9ee7a51SAlex Smith* Language:		ANSI C
32a9ee7a51SAlex Smith* Environment:	Any
33a9ee7a51SAlex Smith* Developer:    Kendall Bennett
34a9ee7a51SAlex Smith*
35a9ee7a51SAlex Smith* Description:  Header file for x86 emulator type definitions.
36a9ee7a51SAlex Smith*
37a9ee7a51SAlex Smith****************************************************************************/
38a9ee7a51SAlex Smith
39a9ee7a51SAlex Smith#ifndef __X86EMU_TYPES_H
40a9ee7a51SAlex Smith#define __X86EMU_TYPES_H
41a9ee7a51SAlex Smith
42a9ee7a51SAlex Smith#ifndef NO_SYS_HEADERS
43a9ee7a51SAlex Smith#include <sys/types.h>
44a9ee7a51SAlex Smith#endif
45a9ee7a51SAlex Smith
46a9ee7a51SAlex Smith/*
47a9ee7a51SAlex Smith * The following kludge is an attempt to work around typedef conflicts with
48a9ee7a51SAlex Smith * <sys/types.h>.
49a9ee7a51SAlex Smith */
50a9ee7a51SAlex Smith#define u8   x86emuu8
51a9ee7a51SAlex Smith#define u16  x86emuu16
52a9ee7a51SAlex Smith#define u32  x86emuu32
53a9ee7a51SAlex Smith#define u64  x86emuu64
54a9ee7a51SAlex Smith#define s8   x86emus8
55a9ee7a51SAlex Smith#define s16  x86emus16
56a9ee7a51SAlex Smith#define s32  x86emus32
57a9ee7a51SAlex Smith#define s64  x86emus64
58a9ee7a51SAlex Smith#define uint x86emuuint
59a9ee7a51SAlex Smith#define sint x86emusint
60a9ee7a51SAlex Smith
61a9ee7a51SAlex Smith/*---------------------- Macros and type definitions ----------------------*/
62a9ee7a51SAlex Smith
63a9ee7a51SAlex Smith#include <stdint.h>
64a9ee7a51SAlex Smith
65a9ee7a51SAlex Smithtypedef uint8_t u8;
66a9ee7a51SAlex Smithtypedef uint16_t u16;
67a9ee7a51SAlex Smithtypedef uint32_t u32;
68a9ee7a51SAlex Smithtypedef uint64_t u64;
69a9ee7a51SAlex Smith
70a9ee7a51SAlex Smithtypedef int8_t s8;
71a9ee7a51SAlex Smithtypedef int16_t s16;
72a9ee7a51SAlex Smithtypedef int32_t s32;
73a9ee7a51SAlex Smithtypedef int64_t s64;
74a9ee7a51SAlex Smith
75a9ee7a51SAlex Smithtypedef unsigned int uint;
76a9ee7a51SAlex Smithtypedef int sint;
77a9ee7a51SAlex Smith
78a9ee7a51SAlex Smithtypedef u16 X86EMU_pioAddr;
79a9ee7a51SAlex Smith
80a9ee7a51SAlex Smith#endif                          /* __X86EMU_TYPES_H */
81