VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.10.0/int10Defines.h@ 107044

Last change on this file since 107044 was 36308, checked in by vboxsync, 14 years ago

fix OSE

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1/*
2 * Copyright (c) 2000-2001 by The XFree86 Project, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Except as contained in this notice, the name of the copyright holder(s)
23 * and author(s) shall not be used in advertising or otherwise to promote
24 * the sale, use or other dealings in this Software without prior written
25 * authorization from the copyright holder(s) and author(s).
26 */
27
28#ifdef HAVE_XORG_CONFIG_H
29#include <xorg-config.h>
30#endif
31
32#ifndef _INT10DEFINES_H_
33#define _INT10DEFINES_H_ 1
34
35#ifdef _VM86_LINUX
36
37#include <asm/vm86.h>
38
39#define CPU_R(type,name,num) \
40 (((type *)&(((struct vm86_struct *)REG->cpuRegs)->regs.name))[num])
41#define CPU_RD(name,num) CPU_R(CARD32,name,num)
42#define CPU_RW(name,num) CPU_R(CARD16,name,num)
43#define CPU_RB(name,num) CPU_R(CARD8,name,num)
44
45#define X86_EAX CPU_RD(eax,0)
46#define X86_EBX CPU_RD(ebx,0)
47#define X86_ECX CPU_RD(ecx,0)
48#define X86_EDX CPU_RD(edx,0)
49#define X86_ESI CPU_RD(esi,0)
50#define X86_EDI CPU_RD(edi,0)
51#define X86_EBP CPU_RD(ebp,0)
52#define X86_EIP CPU_RD(eip,0)
53#define X86_ESP CPU_RD(esp,0)
54#define X86_EFLAGS CPU_RD(eflags,0)
55
56#define X86_FLAGS CPU_RW(eflags,0)
57#define X86_AX CPU_RW(eax,0)
58#define X86_BX CPU_RW(ebx,0)
59#define X86_CX CPU_RW(ecx,0)
60#define X86_DX CPU_RW(edx,0)
61#define X86_SI CPU_RW(esi,0)
62#define X86_DI CPU_RW(edi,0)
63#define X86_BP CPU_RW(ebp,0)
64#define X86_IP CPU_RW(eip,0)
65#define X86_SP CPU_RW(esp,0)
66#define X86_CS CPU_RW(cs,0)
67#define X86_DS CPU_RW(ds,0)
68#define X86_ES CPU_RW(es,0)
69#define X86_SS CPU_RW(ss,0)
70#define X86_FS CPU_RW(fs,0)
71#define X86_GS CPU_RW(gs,0)
72
73#define X86_AL CPU_RB(eax,0)
74#define X86_BL CPU_RB(ebx,0)
75#define X86_CL CPU_RB(ecx,0)
76#define X86_DL CPU_RB(edx,0)
77
78#define X86_AH CPU_RB(eax,1)
79#define X86_BH CPU_RB(ebx,1)
80#define X86_CH CPU_RB(ecx,1)
81#define X86_DH CPU_RB(edx,1)
82
83#elif defined(_X86EMU)
84
85#include "xf86x86emu.h"
86
87#endif
88
89#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette