VirtualBox

Ignore:
Timestamp:
Oct 6, 2008 2:15:39 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37424
Message:

VMM + VBox/cdefs.h: consolidated all the XYZ*DECLS of the VMM into VMM*DECL. Removed dead DECL and IN_XYZ* macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r12549 r12989  
    5555 * @param   pVM         Pointer to the shared VM structure.
    5656 */
    57 TMDECL(void) TMNotifyStartOfExecution(PVM pVM)
     57VMMDECL(void) TMNotifyStartOfExecution(PVM pVM)
    5858{
    5959    if (pVM->tm.s.fTSCTiedToExecution)
     
    7272 * @param   pVM         Pointer to the shared VM structure.
    7373 */
    74 TMDECL(void) TMNotifyEndOfExecution(PVM pVM)
     74VMMDECL(void) TMNotifyEndOfExecution(PVM pVM)
    7575{
    7676    if (pVM->tm.s.fTSCTiedToExecution)
     
    8989 * @param   pVM         Pointer to the shared VM structure.
    9090 */
    91 TMDECL(void) TMNotifyStartOfHalt(PVM pVM)
     91VMMDECL(void) TMNotifyStartOfHalt(PVM pVM)
    9292{
    9393    if (    pVM->tm.s.fTSCTiedToExecution
     
    107107 * @param   pVM         Pointer to the shared VM structure.
    108108 */
    109 TMDECL(void) TMNotifyEndOfHalt(PVM pVM)
     109VMMDECL(void) TMNotifyEndOfHalt(PVM pVM)
    110110{
    111111    if (    pVM->tm.s.fTSCTiedToExecution
     
    216216 * @thread  The emulation thread.
    217217 */
    218 TMDECL(uint64_t) TMTimerPoll(PVM pVM)
     218VMMDECL(uint64_t) TMTimerPoll(PVM pVM)
    219219{
    220220    /*
     
    310310 * @thread  The emulation thread.
    311311 */
    312 TMDECL(uint64_t) TMTimerPollGIP(PVM pVM, uint64_t *pu64Delta)
     312VMMDECL(uint64_t) TMTimerPollGIP(PVM pVM, uint64_t *pu64Delta)
    313313{
    314314    /*
     
    413413 * @param   pTimer      Timer handle as returned by one of the create functions.
    414414 */
    415 TMDECL(PTMTIMERR3) TMTimerR3Ptr(PTMTIMER pTimer)
     415VMMDECL(PTMTIMERR3) TMTimerR3Ptr(PTMTIMER pTimer)
    416416{
    417417    return (PTMTIMERR3)MMHyperCCToR3(pTimer->CTXALLSUFF(pVM), pTimer);
     
    425425 * @param   pTimer      Timer handle as returned by one of the create functions.
    426426 */
    427 TMDECL(PTMTIMERR0) TMTimerR0Ptr(PTMTIMER pTimer)
     427VMMDECL(PTMTIMERR0) TMTimerR0Ptr(PTMTIMER pTimer)
    428428{
    429429    return (PTMTIMERR0)MMHyperCCToR0(pTimer->CTXALLSUFF(pVM), pTimer);
     
    437437 * @param   pTimer      Timer handle as returned by one of the create functions.
    438438 */
    439 TMDECL(PTMTIMERRC) TMTimerRCPtr(PTMTIMER pTimer)
     439VMMDECL(PTMTIMERRC) TMTimerRCPtr(PTMTIMER pTimer)
    440440{
    441441    return (PTMTIMERRC)MMHyperCCToRC(pTimer->CTXALLSUFF(pVM), pTimer);
     
    449449 * @param   pTimer          Timer handle as returned by one of the create functions.
    450450 */
    451 TMDECL(int) TMTimerDestroy(PTMTIMER pTimer)
     451VMMDECL(int) TMTimerDestroy(PTMTIMER pTimer)
    452452{
    453453    int cRetries = 1000;
     
    547547 * @param   u64Expire       New expire time.
    548548 */
    549 TMDECL(int) TMTimerSet(PTMTIMER pTimer, uint64_t u64Expire)
     549VMMDECL(int) TMTimerSet(PTMTIMER pTimer, uint64_t u64Expire)
    550550{
    551551    STAM_PROFILE_START(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerSet), a);
     
    657657 * @param   cMilliesToNext  Number of millieseconds to the next tick.
    658658 */
    659 TMDECL(int) TMTimerSetMillies(PTMTIMER pTimer, uint32_t cMilliesToNext)
     659VMMDECL(int) TMTimerSetMillies(PTMTIMER pTimer, uint32_t cMilliesToNext)
    660660{
    661661    PVM pVM = pTimer->CTXALLSUFF(pVM);
     
    686686 * @param   cMicrosToNext   Number of microseconds to the next tick.
    687687 */
    688 TMDECL(int) TMTimerSetMicro(PTMTIMER pTimer, uint64_t cMicrosToNext)
     688VMMDECL(int) TMTimerSetMicro(PTMTIMER pTimer, uint64_t cMicrosToNext)
    689689{
    690690    PVM pVM = pTimer->CTXALLSUFF(pVM);
     
    720720 * @param   cNanosToNext    Number of nanoseconds to the next tick.
    721721 */
    722 TMDECL(int) TMTimerSetNano(PTMTIMER pTimer, uint64_t cNanosToNext)
     722VMMDECL(int) TMTimerSetNano(PTMTIMER pTimer, uint64_t cNanosToNext)
    723723{
    724724    PVM pVM = pTimer->CTXALLSUFF(pVM);
     
    754754 * @param   pTimer          Timer handle as returned by one of the create functions.
    755755 */
    756 TMDECL(int) TMTimerStop(PTMTIMER pTimer)
     756VMMDECL(int) TMTimerStop(PTMTIMER pTimer)
    757757{
    758758    STAM_PROFILE_START(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerStop), a);
     
    844844 * @param   pTimer          Timer handle as returned by one of the create functions.
    845845 */
    846 TMDECL(uint64_t) TMTimerGet(PTMTIMER pTimer)
     846VMMDECL(uint64_t) TMTimerGet(PTMTIMER pTimer)
    847847{
    848848    uint64_t u64;
     
    879879 * @param   pTimer          Timer handle as returned by one of the create functions.
    880880 */
    881 TMDECL(uint64_t) TMTimerGetFreq(PTMTIMER pTimer)
     881VMMDECL(uint64_t) TMTimerGetFreq(PTMTIMER pTimer)
    882882{
    883883    switch (pTimer->enmClock)
     
    906906 * @param   pTimer          Timer handle as returned by one of the create functions.
    907907 */
    908 TMDECL(uint64_t) TMTimerGetNano(PTMTIMER pTimer)
     908VMMDECL(uint64_t) TMTimerGetNano(PTMTIMER pTimer)
    909909{
    910910    return TMTimerToNano(pTimer, TMTimerGet(pTimer));
     
    918918 * @param   pTimer          Timer handle as returned by one of the create functions.
    919919 */
    920 TMDECL(uint64_t) TMTimerGetMicro(PTMTIMER pTimer)
     920VMMDECL(uint64_t) TMTimerGetMicro(PTMTIMER pTimer)
    921921{
    922922    return TMTimerToMicro(pTimer, TMTimerGet(pTimer));
     
    930930 * @param   pTimer          Timer handle as returned by one of the create functions.
    931931 */
    932 TMDECL(uint64_t) TMTimerGetMilli(PTMTIMER pTimer)
     932VMMDECL(uint64_t) TMTimerGetMilli(PTMTIMER pTimer)
    933933{
    934934    return TMTimerToMilli(pTimer, TMTimerGet(pTimer));
     
    945945 *          without any adjustments.
    946946 */
    947 TMDECL(uint64_t) TMTimerToNano(PTMTIMER pTimer, uint64_t u64Ticks)
     947VMMDECL(uint64_t) TMTimerToNano(PTMTIMER pTimer, uint64_t u64Ticks)
    948948{
    949949    switch (pTimer->enmClock)
     
    978978 *          without any adjustments.
    979979 */
    980 TMDECL(uint64_t) TMTimerToMicro(PTMTIMER pTimer, uint64_t u64Ticks)
     980VMMDECL(uint64_t) TMTimerToMicro(PTMTIMER pTimer, uint64_t u64Ticks)
    981981{
    982982    switch (pTimer->enmClock)
     
    10111011 *          without any adjustments.
    10121012 */
    1013 TMDECL(uint64_t) TMTimerToMilli(PTMTIMER pTimer, uint64_t u64Ticks)
     1013VMMDECL(uint64_t) TMTimerToMilli(PTMTIMER pTimer, uint64_t u64Ticks)
    10141014{
    10151015    switch (pTimer->enmClock)
     
    10431043 * @remark  There could be rounding and overflow errors here.
    10441044 */
    1045 TMDECL(uint64_t) TMTimerFromNano(PTMTIMER pTimer, uint64_t u64NanoTS)
     1045VMMDECL(uint64_t) TMTimerFromNano(PTMTIMER pTimer, uint64_t u64NanoTS)
    10461046{
    10471047    switch (pTimer->enmClock)
     
    10751075 * @remark  There could be rounding and overflow errors here.
    10761076 */
    1077 TMDECL(uint64_t) TMTimerFromMicro(PTMTIMER pTimer, uint64_t u64MicroTS)
     1077VMMDECL(uint64_t) TMTimerFromMicro(PTMTIMER pTimer, uint64_t u64MicroTS)
    10781078{
    10791079    switch (pTimer->enmClock)
     
    11071107 * @remark  There could be rounding and overflow errors here.
    11081108 */
    1109 TMDECL(uint64_t) TMTimerFromMilli(PTMTIMER pTimer, uint64_t u64MilliTS)
     1109VMMDECL(uint64_t) TMTimerFromMilli(PTMTIMER pTimer, uint64_t u64MilliTS)
    11101110{
    11111111    switch (pTimer->enmClock)
     
    11381138 * @param   pTimer          Timer handle as returned by one of the create functions.
    11391139 */
    1140 TMDECL(uint64_t) TMTimerGetExpire(PTMTIMER pTimer)
     1140VMMDECL(uint64_t) TMTimerGetExpire(PTMTIMER pTimer)
    11411141{
    11421142    int cRetries = 1000;
     
    11991199 * @param   pTimer          Timer handle as returned by one of the create functions.
    12001200 */
    1201 TMDECL(bool) TMTimerIsActive(PTMTIMER pTimer)
     1201VMMDECL(bool) TMTimerIsActive(PTMTIMER pTimer)
    12021202{
    12031203    TMTIMERSTATE    enmState = pTimer->enmState;
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