[1] | 1 | /** @file
|
---|
| 2 | * REM - The Recompiled Execution Manager.
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | /*
|
---|
[8155] | 6 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
[1] | 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
|
---|
[5999] | 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.
|
---|
[8155] | 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.
|
---|
[1] | 28 | */
|
---|
| 29 |
|
---|
[3632] | 30 | #ifndef ___VBox_rem_h
|
---|
| 31 | #define ___VBox_rem_h
|
---|
[1] | 32 |
|
---|
| 33 | #include <VBox/cdefs.h>
|
---|
| 34 | #include <VBox/types.h>
|
---|
| 35 | #include <VBox/pgm.h>
|
---|
| 36 | #include <VBox/vmapi.h>
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | __BEGIN_DECLS
|
---|
| 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_GC)
|
---|
[7604] | 50 | REMDECL(int) REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage);
|
---|
[1] | 51 | REMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
|
---|
[4616] | 52 | REMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
|
---|
[4615] | 53 | REMDECL(void) REMNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
|
---|
[1] | 54 | #endif /* IN_RING0 || IN_GC */
|
---|
| 55 |
|
---|
| 56 |
|
---|
| 57 | #ifdef IN_RING3
|
---|
| 58 | /** @defgroup grp_rem_r3 REM Host Context Ring 3 API
|
---|
| 59 | * @ingroup grp_rem
|
---|
| 60 | * @{
|
---|
| 61 | */
|
---|
[7604] | 62 | REMR3DECL(int) REMR3Init(PVM pVM);
|
---|
| 63 | REMR3DECL(int) REMR3Term(PVM pVM);
|
---|
[1] | 64 | REMR3DECL(void) REMR3Reset(PVM pVM);
|
---|
[7604] | 65 | REMR3DECL(int) REMR3Run(PVM pVM);
|
---|
| 66 | REMR3DECL(int) REMR3EmulateInstruction(PVM pVM);
|
---|
| 67 | REMR3DECL(int) REMR3Step(PVM pVM);
|
---|
| 68 | REMR3DECL(int) REMR3BreakpointSet(PVM pVM, RTGCUINTPTR Address);
|
---|
| 69 | REMR3DECL(int) REMR3BreakpointClear(PVM pVM, RTGCUINTPTR Address);
|
---|
| 70 | REMR3DECL(int) REMR3State(PVM pVM);
|
---|
| 71 | REMR3DECL(int) REMR3StateBack(PVM pVM);
|
---|
[1] | 72 | REMR3DECL(void) REMR3StateUpdate(PVM pVM);
|
---|
| 73 | REMR3DECL(void) REMR3A20Set(PVM pVM, bool fEnable);
|
---|
[7604] | 74 | REMR3DECL(int) REMR3DisasEnableStepping(PVM pVM, bool fEnable);
|
---|
[1] | 75 | REMR3DECL(void) REMR3ReplayInvalidatedPages(PVM pVM);
|
---|
| 76 | REMR3DECL(void) REMR3ReplayHandlerNotifications(PVM pVM);
|
---|
[7604] | 77 | REMR3DECL(int) REMR3NotifyCodePageChanged(PVM pVM, RTGCPTR pvCodePage);
|
---|
[6546] | 78 | REMR3DECL(void) REMR3NotifyPhysRamRegister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, unsigned fFlags);
|
---|
| 79 | #ifndef VBOX_WITH_NEW_PHYS_CODE
|
---|
[1] | 80 | REMR3DECL(void) REMR3NotifyPhysRamChunkRegister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, RTHCUINTPTR pvRam, unsigned fFlags);
|
---|
[6546] | 81 | #endif
|
---|
[4388] | 82 | REMR3DECL(void) REMR3NotifyPhysRomRegister(PVM pVM, RTGCPHYS GCPhys, RTUINT cb, void *pvCopy, bool fShadow);
|
---|
[1] | 83 | REMR3DECL(void) REMR3NotifyPhysReserve(PVM pVM, RTGCPHYS GCPhys, RTUINT cb);
|
---|
| 84 | REMR3DECL(void) REMR3NotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
|
---|
[4616] | 85 | REMR3DECL(void) REMR3NotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
|
---|
[4615] | 86 | REMR3DECL(void) REMR3NotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
|
---|
[1] | 87 | REMR3DECL(void) REMR3NotifyPendingInterrupt(PVM pVM, uint8_t u8Interrupt);
|
---|
| 88 | REMR3DECL(uint32_t) REMR3QueryPendingInterrupt(PVM pVM);
|
---|
| 89 | REMR3DECL(void) REMR3NotifyInterruptSet(PVM pVM);
|
---|
| 90 | REMR3DECL(void) REMR3NotifyInterruptClear(PVM pVM);
|
---|
| 91 | REMR3DECL(void) REMR3NotifyTimerPending(PVM pVM);
|
---|
| 92 | REMR3DECL(void) REMR3NotifyDmaPending(PVM pVM);
|
---|
| 93 | REMR3DECL(void) REMR3NotifyQueuePending(PVM pVM);
|
---|
| 94 | REMR3DECL(void) REMR3NotifyFF(PVM pVM);
|
---|
| 95 | #ifdef VBOX_STRICT
|
---|
[7604] | 96 | REMR3DECL(bool) REMR3IsPageAccessHandled(PVM pVM, RTGCPHYS GCPhys);
|
---|
[1] | 97 | #endif
|
---|
| 98 | /** @} */
|
---|
[7604] | 99 | #endif /* IN_RING3 */
|
---|
[1] | 100 |
|
---|
| 101 |
|
---|
| 102 | /** @} */
|
---|
| 103 | __END_DECLS
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 | #endif
|
---|
[7604] | 107 |
|
---|