VirtualBox

Changeset 13832 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 5, 2008 2:01:12 AM (16 years ago)
Author:
vboxsync
Message:

IN_GC -> IN_RC.

Location:
trunk/include/VBox
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cpum.h

    r13830 r13832  
    975975#endif /* IN_RING3 */
    976976
    977 #ifdef IN_GC
     977#ifdef IN_RC
    978978/** @defgroup grp_cpum_gc    The CPU Monitor(/Manager) API
    979979 * @ingroup grp_cpum
     
    998998
    999999/** @} */
    1000 #endif /* IN_GC */
     1000#endif /* IN_RC */
    10011001
    10021002#ifdef IN_RING0
  • trunk/include/VBox/dbgf.h

    r13005 r13832  
    4545 */
    4646
    47 #ifdef IN_GC
     47#ifdef IN_RC
    4848/** @addgroup grp_dbgf_gc  The GC DBGF API
    4949 * @ingroup grp_dbgf
  • trunk/include/VBox/em.h

    r13778 r13832  
    202202
    203203
    204 #ifdef IN_GC
     204#ifdef IN_RC
    205205/** @defgroup grp_em_gc     The EM Guest Context API
    206206 * @ingroup grp_em
     
    215215VMMRCDECL(uint32_t) EMGCEmulateXAdd(RTRCPTR pu32Param1, uint32_t *pu32Param2, size_t cbSize, uint32_t *pEflags);
    216216/** @} */
    217 #endif /* IN_GC */
     217#endif /* IN_RC */
    218218
    219219/** @} */
  • trunk/include/VBox/hwaccm.h

    r13800 r13832  
    6969VMMDECL(bool)   HWACCMHasPendingIrq(PVM pVM);
    7070
    71 #ifndef IN_GC
     71#ifndef IN_RC
    7272VMMDECL(int)     HWACCMFlushTLB(PVM pVM);
    7373VMMDECL(int)     HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys);
  • trunk/include/VBox/iom.h

    r13414 r13832  
    217217VMMDECL(int)  IOMMMIOResetRegion(PVM pVM, RTGCPHYS GCPhys);
    218218
    219 #ifdef IN_GC
     219#ifdef IN_RC
    220220/** @defgroup grp_iom_gc    The IOM Guest Context API
    221221 * @ingroup grp_iom
     
    224224VMMRCDECL(int) IOMGCIOPortHandler(PVM pVM, PCPUMCTXCORE pRegFrame, PDISCPUSTATE pCpu);
    225225/** @} */
    226 #endif /* IN_GC */
     226#endif /* IN_RC */
    227227
    228228
  • trunk/include/VBox/mm.h

    r13827 r13832  
    238238
    239239
    240 #ifndef IN_GC
     240#ifndef IN_RC
    241241VMMDECL(void *)     MMHyperRCToCC(PVM pVM, RTRCPTR RCPtr);
    242242#else
     
    268268#endif
    269269
    270 #ifndef IN_GC
     270#ifndef IN_RC
    271271VMMDECL(RTRCPTR)    MMHyperCCToRC(PVM pVM, void *pv);
    272272#else
     
    299299/** @def MMHYPER_RC_ASSERT_RCPTR
    300300 * Asserts that an address is either NULL or inside the hypervisor memory area.
    301  * This assertion only works while IN_GC, it's a NOP everywhere else.
     301 * This assertion only works while IN_RC, it's a NOP everywhere else.
    302302 * @thread  The Emulation Thread.
    303303 */
    304 #ifdef IN_GC
     304#ifdef IN_RC
    305305# define MMHYPER_RC_ASSERT_RCPTR(pVM, RCPtr)   Assert(MMHyperIsInsideArea((pVM), (RTRCUINTPTR)(RCPtr)) || !(RCPtr))
    306306#else
     
    405405
    406406
    407 #ifdef IN_GC
     407#ifdef IN_RC
    408408/** @defgroup grp_mm_gc    The MM Guest Context API
    409409 * @ingroup grp_mm
     
    419419
    420420/** @} */
    421 #endif /* IN_GC */
     421#endif /* IN_RC */
    422422
    423423/** @} */
  • trunk/include/VBox/patm.h

    r12989 r13832  
    292292#endif
    293293
    294 #ifdef IN_GC
     294#ifdef IN_RC
    295295/** @defgroup grp_patm_gc    The Patch Manager API
    296296 * @ingroup grp_patm
  • trunk/include/VBox/pdmapi.h

    r13020 r13832  
    120120
    121121
    122 #ifdef IN_GC
     122#ifdef IN_RC
    123123/** @defgroup grp_pdm_gc    The PDM Guest Context API
    124124 * @ingroup grp_pdm
  • trunk/include/VBox/pdmins.h

    r13005 r13832  
    3939 * Macro for declaring a callback which is static in HC and exported in GC.
    4040 */
    41 #if defined(IN_GC) || defined(IN_RING0)
     41#if defined(IN_RC) || defined(IN_RING0)
    4242# define PDMBOTHCBDECL(type)    DECLEXPORT(type)
    4343#else
  • trunk/include/VBox/pgm.h

    r13778 r13832  
    385385{
    386386    /** @todo see PGMPhysIsPageMappingLockValid for possibly incorrect assumptions */
    387 #ifdef IN_GC
     387#ifdef IN_RC
    388388    /** Just a dummy for the time being. */
    389389    uint32_t    u32Dummy;
     
    413413{
    414414    /** @todo -> complete/change this  */
    415 #ifdef IN_GC
     415#ifdef IN_RC
    416416    return !!(pLock->u32Dummy);
    417417#else
     
    426426VMMDECL(void)       PGMPhysRead(PVM pVM, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead);
    427427VMMDECL(void)       PGMPhysWrite(PVM pVM, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite);
    428 #ifndef IN_GC /* Only ring 0 & 3. */
     428#ifndef IN_RC /* Only ring 0 & 3. */
    429429VMMDECL(int)        PGMPhysSimpleReadGCPhys(PVM pVM, void *pvDst, RTGCPHYS GCPhysSrc, size_t cb);
    430430VMMDECL(int)        PGMPhysSimpleWriteGCPhys(PVM pVM, RTGCPHYS GCPhysDst, const void *pvSrc, size_t cb);
     
    434434VMMDECL(int)        PGMPhysWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb);
    435435VMMDECL(int)        PGMPhysSimpleDirtyWriteGCPtr(PVM pVM, RTGCPTR GCPtrDst, const void *pvSrc, size_t cb);
    436 #endif /* !IN_GC */
     436#endif /* !IN_RC */
    437437VMMDECL(int)        PGMPhysInterpretedRead(PVM pVM, PCPUMCTXCORE pCtxCore, void *pvDst, RTGCUINTPTR GCPtrSrc, size_t cb);
    438438#ifdef VBOX_STRICT
     
    442442#endif /* VBOX_STRICT */
    443443
    444 #if defined(IN_GC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE)
     444#if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE)
    445445VMMDECL(int)        PGMDynMapGCPage(PVM pVM, RTGCPHYS GCPhys, void **ppv);
    446446VMMDECL(int)        PGMDynMapGCPageOff(PVM pVM, RTGCPHYS GCPhys, void **ppv);
     
    450450
    451451
    452 #ifdef IN_GC
     452#ifdef IN_RC
    453453/** @defgroup grp_pgm_gc  The PGM Guest Context API
    454454 * @ingroup grp_pgm
     
    456456 */
    457457/** @} */
    458 #endif /* IN_GC */
     458#endif /* IN_RC */
    459459
    460460
  • trunk/include/VBox/rem.h

    r13565 r13832  
    4747
    4848
    49 #if defined(IN_RING0) || defined(IN_GC)
     49#if defined(IN_RING0) || defined(IN_RC)
    5050VMMDECL(int)  REMNotifyInvalidatePage(PVM pVM, RTGCPTR GCPtrPage);
    5151VMMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler);
    5252VMMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
    5353VMMDECL(void) REMNotifyHandlerPhysicalModify(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhysOld, RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM);
    54 #endif /* IN_RING0 || IN_GC */
     54#endif /* IN_RING0 || IN_RC */
    5555VMMDECL(void) REMFlushTBs(PVM pVM);
    5656
  • trunk/include/VBox/trpm.h

    r13635 r13832  
    114114
    115115
    116 #ifdef IN_GC
     116#ifdef IN_RC
    117117/** @defgroup grp_trpm_gc    The TRPM Guest Context API
    118118 * @ingroup grp_trpm
  • trunk/include/VBox/vm.h

    r13831 r13832  
    359359 *          code to let threads other than EMT mess around with the VM.
    360360 */
    361 #ifdef IN_GC
     361#ifdef IN_RC
    362362# define VM_IS_EMT(pVM)                     true
    363363#elif defined(IN_RING0)
     
    371371 * Asserts that the current thread IS the emulation thread (EMT).
    372372 */
    373 #ifdef IN_GC
     373#ifdef IN_RC
    374374# define VM_ASSERT_EMT(pVM)                 Assert(VM_IS_EMT(pVM))
    375375#elif defined(IN_RING0)
     
    384384 * Asserts that the current thread IS the emulation thread (EMT) and returns if it isn't.
    385385 */
    386 #ifdef IN_GC
     386#ifdef IN_RC
    387387# define VM_ASSERT_EMT_RETURN(pVM, rc)      AssertReturn(VM_IS_EMT(pVM), (rc))
    388388#elif defined(IN_RING0)
     
    400400 * @todo r=bird: See VMMGetCpuId().
    401401 */
    402 #ifdef IN_GC
     402#ifdef IN_RC
    403403# define VM_GET_VMCPUID(pVM)                0
    404404#elif defined(IN_RING0)
     
    788788
    789789
    790 #ifdef IN_GC
     790#ifdef IN_RC
    791791__BEGIN_DECLS
    792792
  • trunk/include/VBox/vmapi.h

    r13830 r13832  
    6868 * @param   pvInVM  CC pointer within the VM.
    6969 */
    70 #ifdef IN_GC
     70#ifdef IN_RC
    7171# define VM_R3_ADDR(pVM, pvInVM)       ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) )
    7272#elif defined(IN_RING0)
     
    8585 * @param   pvInVM  CC pointer within the VM.
    8686 */
    87 #ifdef IN_GC
     87#ifdef IN_RC
    8888# define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) )
    8989#elif defined(IN_RING3)
     
    313313
    314314
    315 #ifndef IN_GC
     315#ifndef IN_RC
    316316/** @defgroup grp_vmm_apis_hc  VM Host Context API
    317317 * @ingroup grp_vm
     
    425425
    426426
    427 #ifdef IN_GC
     427#ifdef IN_RC
    428428/** @defgroup grp_vmm_apis_gc  VM Guest Context APIs
    429429 * @ingroup grp_vm
  • trunk/include/VBox/vmm.h

    r13813 r13832  
    284284
    285285
    286 #ifdef IN_GC
     286#ifdef IN_RC
    287287/** @defgroup grp_vmm_rc    The VMM Raw-Mode Context API
    288288 * @ingroup grp_vmm
  • trunk/include/VBox/vrdpapi.h

    r12297 r13832  
    3838# error "There are no VRDP APIs available in Ring-0 Host Context!"
    3939#endif
    40 #ifdef IN_GC
     40#ifdef IN_RC
    4141# error "There are no VRDP APIs available Guest Context!"
    4242#endif
     
    338338#define VRDP_USB_XFER_BO    (10)
    339339#define VRDP_USB_XFER_BU    (11)
    340 #define VRDP_USB_XFER_ERR   (12) /* VBox protocol error. */ 
     340#define VRDP_USB_XFER_ERR   (12) /* VBox protocol error. */
    341341
    342342#define VRDP_USB_REAP_FLAG_CONTINUED (0x0)
     
    472472{
    473473    uint8_t flags;
    474     uint32_t u32Version; /* This field presents only if the VRDP_USB_CAPS2_FLAG_VERSION flag is set. */ 
     474    uint32_t u32Version; /* This field presents only if the VRDP_USB_CAPS2_FLAG_VERSION flag is set. */
    475475} VRDPUSBREQNEGOTIATERET_2;
    476476#pragma pack()
     
    611611     * @param hServer     The server instance handle.
    612612     * @param u32ClientId The client identifier.
    613      * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the 
     613     * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the
    614614     *                    client before disconnecting.
    615615     *
     
    747747} VRDPENTRYPOINTS_1;
    748748
    749 /** The VRDP server entry points. Interface version 2. 
     749/** The VRDP server entry points. Interface version 2.
    750750 *  A new entry point VRDPRedirect has been added relative to version 1.
    751751 */
     
    778778     * @param hServer     The server instance handle.
    779779     * @param u32ClientId The client identifier.
    780      * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the 
     780     * @param fReconnect  Whether to send a "REDIRECT to the same server" packet to the
    781781     *                    client before disconnecting.
    782782     *
     
    10121012
    10131013    /* A client is logging in, the application must decide whether
    1014      * to let to connect the client. The server will drop the connection, 
     1014     * to let to connect the client. The server will drop the connection,
    10151015     * when an error code is returned by the callback.
    10161016     *
     
    11511151    DECLR3CALLBACKMEMBER(void, VRDPCallbackVideoModeHint,(void *pvCallback,
    11521152                                                        unsigned cWidth,
    1153                                                         unsigned cHeight, 
     1153                                                        unsigned cHeight,
    11541154                                                        unsigned cBitsPerPixel,
    11551155                                                        unsigned uScreenId));
  • trunk/include/VBox/vrdpusb.h

    r8155 r13832  
    3838# error "There are no VRDP APIs available in Ring-0 Host Context!"
    3939#endif
    40 #ifdef IN_GC
     40#ifdef IN_RC
    4141# error "There are no VRDP APIs available Guest Context!"
    4242#endif
Note: See TracChangeset for help on using the changeset viewer.

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