VirtualBox

source: vbox/trunk/include/VBox/rem.h@ 21644

Last change on this file since 21644 was 21217, checked in by vboxsync, 15 years ago

include/VBox/*.h: Mark which components the header files relate to.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
Line 
1/** @file
2 * REM - The Recompiled Execution Manager. (VMM)
3 */
4
5/*
6 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 *
25 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
26 * Clara, CA 95054 USA or visit http://www.sun.com if you need
27 * additional information or have any questions.
28 */
29
30#ifndef ___VBox_rem_h
31#define ___VBox_rem_h
32
33#include <VBox/cdefs.h>
34#include <VBox/types.h>
35#include <VBox/pgm.h>
36#include <VBox/vmapi.h>
37
38
39RT_C_DECLS_BEGIN
40
41/** @defgroup grp_rem The Recompiled Execution Manager API
42 * @{
43 */
44
45/** No pending interrupt. */
46#define REM_NO_PENDING_IRQ (~(uint32_t)0)
47
48
49#if defined(IN_RING0) || defined(IN_RC)
50VMMDECL(int) REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage);
51VMMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
52VMMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
53VMMDECL(void) REMNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
54#endif /* IN_RING0 || IN_RC */
55#ifdef IN_RC
56VMMDECL(void) REMNotifyHandlerPhysicalFlushIfAlmostFull(PVM pVM, PVMCPU pVCpu);
57#endif
58VMMDECL(void) REMFlushTBs(PVM pVM);
59
60
61#ifdef IN_RING3
62/** @defgroup grp_rem_r3 REM Host Context Ring 3 API
63 * @ingroup grp_rem
64 * @{
65 */
66REMR3DECL(int) REMR3Init(PVM pVM);
67REMR3DECL(int) REMR3InitFinalize(PVM pVM);
68REMR3DECL(int) REMR3Term(PVM pVM);
69REMR3DECL(void) REMR3Reset(PVM pVM);
70REMR3DECL(int) REMR3Run(PVM pVM, PVMCPU pVCpu);
71REMR3DECL(int) REMR3EmulateInstruction(PVM pVM, PVMCPU pVCpu);
72REMR3DECL(int) REMR3Step(PVM pVM, PVMCPU pVCpu);
73REMR3DECL(int) REMR3BreakpointSet(PVM pVM, RTGCUINTPTR Address);
74REMR3DECL(int) REMR3BreakpointClear(PVM pVM, RTGCUINTPTR Address);
75REMR3DECL(int) REMR3State(PVM pVM, PVMCPU pVCpu);
76REMR3DECL(int) REMR3StateBack(PVM pVM, PVMCPU pVCpu);
77REMR3DECL(void) REMR3StateUpdate(PVM pVM, PVMCPU pVCpu);
78REMR3DECL(void) REMR3A20Set(PVM pVM, PVMCPU pVCpu, bool fEnable);
79REMR3DECL(int) REMR3DisasEnableStepping(PVM pVM, bool fEnable);
80REMR3DECL(void) REMR3ReplayHandlerNotifications(PVM pVM);
81REMR3DECL(int) REMR3NotifyCodePageChanged(PVM pVM, PVMCPU pVCpu, RTGCPTR pvCodePage);
82REMR3DECL(void) REMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, unsigned fFlags);
83/** @name Flags for REMR3NotifyPhysRamRegister.
84 * @{ */
85#define REM_NOTIFY_PHYS_RAM_FLAGS_RAM RT_BIT(16)
86#define REM_NOTIFY_PHYS_RAM_FLAGS_MMIO2 RT_BIT(17)
87/** @} */
88REMR3DECL(void) REMR3NotifyPhysRomRegister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, void *pvCopy, bool fShadow);
89REMR3DECL(void) REMR3NotifyPhysRamDeregister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb);
90REMR3DECL(void) REMR3NotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
91REMR3DECL(void) REMR3NotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
92REMR3DECL(void) REMR3NotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
93REMR3DECL(void) REMR3NotifyPendingInterrupt(PVM pVM, PVMCPU pVCpu, uint8_t u8Interrupt);
94REMR3DECL(uint32_t) REMR3QueryPendingInterrupt(PVM pVM, PVMCPU pVCpu);
95REMR3DECL(void) REMR3NotifyInterruptSet(PVM pVM, PVMCPU pVCpu);
96REMR3DECL(void) REMR3NotifyInterruptClear(PVM pVM, PVMCPU pVCpu);
97REMR3DECL(void) REMR3NotifyTimerPending(PVM pVM, PVMCPU pVCpuDst);
98REMR3DECL(void) REMR3NotifyDmaPending(PVM pVM);
99REMR3DECL(void) REMR3NotifyQueuePending(PVM pVM);
100REMR3DECL(void) REMR3NotifyFF(PVM pVM);
101REMR3DECL(bool) REMR3IsPageAccessHandled(PVM pVM, RTGCPHYS GCPhys);
102/** @} */
103#endif /* IN_RING3 */
104
105
106/** @} */
107RT_C_DECLS_END
108
109
110#endif
111
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