VirtualBox

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

最後變更 在這個檔案從61386是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

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

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