VirtualBox

Changeset 15940 in vbox


Ignore:
Timestamp:
Jan 14, 2009 1:17:12 PM (16 years ago)
Author:
vboxsync
Message:

added some more PDMDrv helpers

File:
1 edited

Legend:

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

    r13287 r15940  
    808808
    809809#ifdef IN_RING3
     810
     811/**
     812 * @copydoc PDMDRVHLP::pfnPDMQueueCreate
     813 */
     814DECLINLINE(int) PDMDrvHlpPDMQueueCreate(PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
     815                                        PFNPDMQUEUEDRV pfnCallback, PPDMQUEUE *ppQueue)
     816{
     817    return pDrvIns->pDrvHlp->pfnPDMQueueCreate(pDrvIns, cbItem, cItems, cMilliesInterval, pfnCallback, ppQueue);
     818}
     819
     820/**
     821 * @copydoc PDMDRVHLP::pfnGetVirtualFreq
     822 */
     823DECLINLINE(uint64_t) PDMDrvHlpTMGetVirtualFreq(PPDMDRVINS pDrvIns)
     824{
     825    return pDrvIns->pDrvHlp->pfnTMGetVirtualFreq(pDrvIns);
     826}
     827
     828/**
     829 * @copydoc PDMDRVHLP::pfnTMGetVirtualTime
     830 */
     831DECLINLINE(uint64_t) PDMDrvHlpTMGetVirtualTime(PPDMDRVINS pDrvIns)
     832{
     833    return pDrvIns->pDrvHlp->pfnTMGetVirtualTime(pDrvIns);
     834}
     835
     836/**
     837 * @copydoc PDMDRVHLP::pfnTMTimerCreate
     838 */
     839DECLINLINE(int) PDMDrvHlpTMTimerCreate(PPDMDRVINS pDrvIns, TMCLOCK enmClock, PFNTMTIMERDRV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer)
     840{
     841    return pDrvIns->pDrvHlp->pfnTMTimerCreate(pDrvIns, enmClock, pfnCallback, pszDesc, ppTimer);
     842}
     843
    810844/**
    811845 * @copydoc PDMDRVHLP::pfnSSMRegister
     
    818852                                            pfnSavePrep, pfnSaveExec, pfnSaveDone,
    819853                                            pfnLoadPrep, pfnLoadExec, pfnLoadDone);
    820 }
    821 
    822 /**
    823  * @copydoc PDMDRVHLPR3::pfnTMTimerCreate
    824  */
    825 DECLINLINE(int) PDMDrvHlpTMTimerCreate(PPDMDRVINS pDrvIns, TMCLOCK enmClock, PFNTMTIMERDRV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer)
    826 {
    827     return pDrvIns->pDrvHlp->pfnTMTimerCreate(pDrvIns, enmClock, pfnCallback, pszDesc, ppTimer);
    828854}
    829855
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