Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xfree86 / x86emu / x86emu / types.h
CommitLineData
a09e091a
JB
1/****************************************************************************
2*
3* Realmode X86 Emulator Library
4*
5* Copyright (C) 1996-1999 SciTech Software, Inc.
6* Copyright (C) David Mosberger-Tang
7* Copyright (C) 1999 Egbert Eich
8*
9* ========================================================================
10*
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.
20*
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.
28*
29* ========================================================================
30*
31* Language: ANSI C
32* Environment: Any
33* Developer: Kendall Bennett
34*
35* Description: Header file for x86 emulator type definitions.
36*
37****************************************************************************/
38
39#ifndef __X86EMU_TYPES_H
40#define __X86EMU_TYPES_H
41
42#ifndef NO_SYS_HEADERS
43#include <sys/types.h>
44#endif
45
46/*
47 * The following kludge is an attempt to work around typedef conflicts with
48 * <sys/types.h>.
49 */
50#define u8 x86emuu8
51#define u16 x86emuu16
52#define u32 x86emuu32
53#define u64 x86emuu64
54#define s8 x86emus8
55#define s16 x86emus16
56#define s32 x86emus32
57#define s64 x86emus64
58#define uint x86emuuint
59#define sint x86emusint
60
61/*---------------------- Macros and type definitions ----------------------*/
62
63#include <stdint.h>
64
65typedef uint8_t u8;
66typedef uint16_t u16;
67typedef uint32_t u32;
68typedef uint64_t u64;
69
70typedef int8_t s8;
71typedef int16_t s16;
72typedef int32_t s32;
73typedef int64_t s64;
74
75typedef unsigned int uint;
76typedef int sint;
77
78typedef u16 X86EMU_pioAddr;
79
80#endif /* __X86EMU_TYPES_H */