VirtualBox

Changeset 53797 in vbox for trunk/include/VBox/vmm/pdmdev.h


Ignore:
Timestamp:
Jan 14, 2015 11:35:59 AM (10 years ago)
Author:
vboxsync
Message:

Finally added PDMDevHlpGetCurrentCpuId.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmdev.h

    r52670 r53797  
    35193519
    35203520    /**
     3521     * The the VM CPU ID of the current thread (restricted API).
     3522     *
     3523     * @returns The VMCPUID of the calling thread, NIL_CPUID if not EMT.
     3524     * @param   pDevIns             The device instance.
     3525     */
     3526    DECLR3CALLBACKMEMBER(VMCPUID, pfnGetCurrentCpuId,(PPDMDEVINS pDevIns));
     3527
     3528    /**
    35213529     * Registers the VMM device heap
    35223530     *
     
    36573665
    36583666/** Current PDMDEVHLPR3 version number. */
    3659 #define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE(0xffe7, 12, 1)
     3667#define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE(0xffe7, 14, 1)
    36603668
    36613669
     
    38283836     */
    38293837    DECLRCCALLBACKMEMBER(PVMCPU, pfnGetVMCPU,(PPDMDEVINS pDevIns));
     3838
     3839    /**
     3840     * The the VM CPU ID of the current thread (restricted API).
     3841     *
     3842     * @returns The VMCPUID of the calling thread, NIL_CPUID if not EMT.
     3843     * @param   pDevIns             The device instance.
     3844     */
     3845    DECLRCCALLBACKMEMBER(VMCPUID, pfnGetCurrentCpuId,(PPDMDEVINS pDevIns));
    38303846
    38313847    /**
     
    38743890
    38753891/** Current PDMDEVHLP version number. */
    3876 #define PDM_DEVHLPRC_VERSION                    PDM_VERSION_MAKE(0xffe6, 3, 1)
     3892#define PDM_DEVHLPRC_VERSION                    PDM_VERSION_MAKE(0xffe6, 4, 1)
    38773893
    38783894
     
    40534069     */
    40544070    DECLR0CALLBACKMEMBER(PVMCPU, pfnGetVMCPU,(PPDMDEVINS pDevIns));
     4071
     4072    /**
     4073     * The the VM CPU ID of the current thread (restricted API).
     4074     *
     4075     * @returns The VMCPUID of the calling thread, NIL_CPUID if not EMT.
     4076     * @param   pDevIns             The device instance.
     4077     */
     4078    DECLR0CALLBACKMEMBER(VMCPUID, pfnGetCurrentCpuId,(PPDMDEVINS pDevIns));
    40554079
    40564080    /**
     
    40994123
    41004124/** Current PDMDEVHLP version number. */
    4101 #define PDM_DEVHLPR0_VERSION                    PDM_VERSION_MAKE(0xffe5, 3, 1)
     4125#define PDM_DEVHLPR0_VERSION                    PDM_VERSION_MAKE(0xffe5, 4, 1)
    41024126
    41034127
     
    51565180
    51575181/**
     5182 * @copydoc PDMDEVHLPR3::pfnGetCurrentCpuId
     5183 */
     5184DECLINLINE(VMCPUID) PDMDevHlpGetCurrentCpuId(PPDMDEVINS pDevIns)
     5185{
     5186    return pDevIns->CTX_SUFF(pHlp)->pfnGetCurrentCpuId(pDevIns);
     5187}
     5188
     5189/**
    51585190 * @copydoc PDMDEVHLPR3::pfnTMTimeVirtGet
    51595191 */
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