VirtualBox

Changeset 25995 in vbox for trunk/src/VBox/VMM/VMMGC


Ignore:
Timestamp:
Jan 25, 2010 11:33:03 AM (15 years ago)
Author:
vboxsync
Message:

VMM: PDM infrastructure for HPET

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp

    r24139 r25995  
    4949extern DECLEXPORT(const PDMIOAPICHLPRC) g_pdmRCIoApicHlp;
    5050extern DECLEXPORT(const PDMPCIHLPRC)    g_pdmRCPciHlp;
     51extern DECLEXPORT(const PDMHPETHLPRC)   g_pdmRCHpetHlp;
    5152RT_C_DECLS_END
    5253
     
    112113static DECLCALLBACK(int) pdmRCPciHlp_Lock(PPDMDEVINS pDevIns, int rc);
    113114static DECLCALLBACK(void) pdmRCPciHlp_Unlock(PPDMDEVINS pDevIns);
     115/** @} */
     116
     117
     118/** @name HPET RC Helpers
     119 * @{
     120 */
     121static DECLCALLBACK(int) pdmRCHpetHlp_Lock(PPDMDEVINS pDevIns, int rc);
     122static DECLCALLBACK(void) pdmRCHpetHlp_Unlock(PPDMDEVINS pDevIns);
    114123/** @} */
    115124
     
    197206};
    198207
    199 
     208/**
     209 * The Raw-Mode Context HPET Helper Callbacks.
     210 */
     211extern DECLEXPORT(const PDMHPETHLPRC) g_pdmRCHpetHlp =
     212{
     213    PDM_HPETHLPRC_VERSION,
     214    pdmRCHpetHlp_Lock,
     215    pdmRCHpetHlp_Unlock,
     216    PDM_HPETHLPRC_VERSION, /* the end */
     217};
    200218
    201219
     
    683701    }
    684702}
     703
     704
     705/** @copydoc PDMHPETHLPRC::pfnLock */
     706static DECLCALLBACK(int) pdmRCHpetHlp_Lock(PPDMDEVINS pDevIns, int rc)
     707{
     708    PDMDEV_ASSERT_DEVINS(pDevIns);
     709    return pdmLockEx(pDevIns->Internal.s.pVMRC, rc);
     710}
     711
     712
     713/** @copydoc PDMHPETHLPRC::pfnUnlock */
     714static DECLCALLBACK(void) pdmRCHpetHlp_Unlock(PPDMDEVINS pDevIns)
     715{
     716    PDMDEV_ASSERT_DEVINS(pDevIns);
     717    pdmUnlock(pDevIns->Internal.s.pVMRC);
     718}
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