VirtualBox

Changeset 44792 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Feb 21, 2013 6:14:07 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83907
Message:

Some nits, use RT_FROM_MEMBER now that we've finally got it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r44725 r44792  
    4747*   Structures and Typedefs                                                    *
    4848*******************************************************************************/
    49 typedef enum _VBOXHGCMCMDTYPE
     49typedef enum VBOXHGCMCMDTYPE
    5050{
    5151    VBOXHGCMCMDTYPE_LOADSTATE = 0,
     
    5959 * Information about a linear ptr parameter.
    6060 */
    61 typedef struct _VBOXHGCMLINPTR
     61typedef struct VBOXHGCMLINPTR
    6262{
    6363    /** Index of the parameter. */
     
    118118    VBOXHGCMLINPTR *paLinPtrs;
    119119};
     120
     121
    120122
    121123static int vmmdevHGCMCmdListLock (PVMMDEV pThis)
     
    17681770}
    17691771
    1770 #define PDMIHGCMPORT_2_VMMDEVSTATE(pInterface) ( (VMMDevState *) ((uintptr_t)pInterface - RT_OFFSETOF(VMMDevState, IHGCMPort)) )
    1771 
    17721772DECLCALLBACK(void) hgcmCompletedWorker (PPDMIHGCMPORT pInterface, int32_t result, PVBOXHGCMCMD pCmd)
    17731773{
    1774     PVMMDEV pThis = PDMIHGCMPORT_2_VMMDEVSTATE(pInterface);
     1774    PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDevState, IHGCMPort);
    17751775#ifdef VBOX_WITH_DTRACE
    17761776    uint32_t idFunction = 0;
     
    18401840         * 3.0 blocker.)
    18411841         */
    1842         /** @todo s/pThis/pThis/g */
    18431842        /** @todo It would be faster if this interface would use MMIO2 memory and we
    18441843         *        didn't have to mess around with PDMDevHlpPhysRead/Write. We're
     
    22212220DECLCALLBACK(void) hgcmCompleted (PPDMIHGCMPORT pInterface, int32_t result, PVBOXHGCMCMD pCmd)
    22222221{
    2223     PVMMDEV pThis = PDMIHGCMPORT_2_VMMDEVSTATE(pInterface);
     2222    PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDevState, IHGCMPort);
    22242223
    22252224    VBOXDD_HGCMCALL_COMPLETED_REQ(pCmd, result);
     
    22332232}
    22342233
    2235 /* @thread EMT */
     2234/** @thread EMT */
    22362235int vmmdevHGCMSaveState(PVMMDEV pThis, PSSMHANDLE pSSM)
    22372236{
     
    25212520}
    25222521
    2523 /* @thread EMT */
     2522/** @thread EMT */
    25242523int vmmdevHGCMLoadStateDone(PVMMDEV pThis, PSSMHANDLE pSSM)
    25252524{
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