VirtualBox

Changeset 11155 in vbox


Ignore:
Timestamp:
Aug 5, 2008 11:00:44 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34145
Message:

TMTimerRCPtr and some types.

Location:
trunk
Files:
5 edited

Legend:

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

    r8155 r11155  
    171171TMDECL(PTMTIMERR3) TMTimerR3Ptr(PTMTIMER pTimer);
    172172TMDECL(PTMTIMERR0) TMTimerR0Ptr(PTMTIMER pTimer);
    173 TMDECL(PTMTIMERGC) TMTimerGCPtr(PTMTIMER pTimer);
     173TMDECL(PTMTIMERRC) TMTimerRCPtr(PTMTIMER pTimer);
     174#define TMTimerGCPtr(pTimer) TMTimerRCPtr(pTimer) /**< @deprecated */
    174175TMDECL(int) TMTimerDestroy(PTMTIMER pTimer);
    175176TMDECL(int) TMTimerSet(PTMTIMER pTimer, uint64_t u64Expire);
  • trunk/include/VBox/types.h

    r10963 r11155  
    138138/** R0 pointer to a PDM Device Instance. */
    139139typedef R0PTRTYPE(PPDMDEVINS) PPDMDEVINSR0;
    140 /** GC pointer to a PDM Device Instance. */
    141 typedef RCPTRTYPE(PPDMDEVINS) PPDMDEVINSGC;
     140/** RC pointer to a PDM Device Instance. */
     141typedef RCPTRTYPE(PPDMDEVINS) PPDMDEVINSRC;
     142/** @deprecated */
     143typedef PPDMDEVINSRC PPDMDEVINSGC;
    142144
    143145/** Pointer to a PDM USB Device Instance. */
     
    166168typedef PTMTIMERR0 *PPTMTIMERR0;
    167169
    168 /** GC pointer to a timer. */
    169 typedef RCPTRTYPE(struct TMTIMER *) PTMTIMERGC;
    170 /** Pointer to a GC pointer to a timer. */
    171 typedef PTMTIMERGC *PPTMTIMERGC;
     170/** RC pointer to a timer. */
     171typedef RCPTRTYPE(struct TMTIMER *) PTMTIMERRC;
     172/** Pointer to a RC pointer to a timer. */
     173typedef PTMTIMERRC *PPTMTIMERRC;
     174/** @deprecated */
     175typedef PTMTIMERRC PTMTIMERGC;
    172176
    173177/** Pointer to a timer. */
    174178typedef CTXALLSUFF(PTMTIMER)   PTMTIMER;
    175179/** Pointer to a pointer to a timer. */
    176 typedef CTXALLSUFF(PPTMTIMER)  PPTMTIMER;
     180typedef PTMTIMER              *PPTMTIMER;
    177181
    178182/** SSM Operation handle. */
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r10665 r11155  
    197197    PCPDMAPICHLPGC  pApicHlpGC;
    198198    /** The APIC timer - GC Ptr. */
    199     PTMTIMERGC      pTimerGC;
     199    PTMTIMERRC      pTimerGC;
    200200
    201201    /** Number of attempts made to optimize TPR accesses. */
     
    561561
    562562    APICState *s = PDMINS2DATA(pDevIns, APICState *);
    563     if (!s) 
     563    if (!s)
    564564        return false;
    565565
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r9212 r11155  
    8989    RCPTRTYPE(struct PITState *)    pPitGC;
    9090    /** The timer - HCPtr. */
    91     PTMTIMERGC                      pTimerGC;
     91    PTMTIMERRC                      pTimerGC;
    9292    /** The virtual time stamp at the last reload. (only used in mode 2 for now) */
    9393    uint64_t                        u64ReloadTS;
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r8155 r11155  
    362362
    363363/**
    364  * Gets the GC pointer of the timer.
    365  *
    366  * @returns GC pointer.
     364 * Gets the RC pointer of the timer.
     365 *
     366 * @returns RC pointer.
    367367 * @param   pTimer      Timer handle as returned by one of the create functions.
    368368 */
    369 TMDECL(PTMTIMERGC) TMTimerGCPtr(PTMTIMER pTimer)
    370 {
    371     return (PTMTIMERGC)MMHyperCCToGC(pTimer->CTXALLSUFF(pVM), pTimer);
     369TMDECL(PTMTIMERRC) TMTimerRCPtr(PTMTIMER pTimer)
     370{
     371    return (PTMTIMERRC)MMHyperCCToRC(pTimer->CTXALLSUFF(pVM), pTimer);
    372372}
    373373
Note: See TracChangeset for help on using the changeset viewer.

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