Changeset 44792 in vbox for trunk/src/VBox/Devices/VMMDev
- Timestamp:
- Feb 21, 2013 6:14:07 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83907
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp
r44725 r44792 47 47 * Structures and Typedefs * 48 48 *******************************************************************************/ 49 typedef enum _VBOXHGCMCMDTYPE49 typedef enum VBOXHGCMCMDTYPE 50 50 { 51 51 VBOXHGCMCMDTYPE_LOADSTATE = 0, … … 59 59 * Information about a linear ptr parameter. 60 60 */ 61 typedef struct _VBOXHGCMLINPTR61 typedef struct VBOXHGCMLINPTR 62 62 { 63 63 /** Index of the parameter. */ … … 118 118 VBOXHGCMLINPTR *paLinPtrs; 119 119 }; 120 121 120 122 121 123 static int vmmdevHGCMCmdListLock (PVMMDEV pThis) … … 1768 1770 } 1769 1771 1770 #define PDMIHGCMPORT_2_VMMDEVSTATE(pInterface) ( (VMMDevState *) ((uintptr_t)pInterface - RT_OFFSETOF(VMMDevState, IHGCMPort)) )1771 1772 1772 DECLCALLBACK(void) hgcmCompletedWorker (PPDMIHGCMPORT pInterface, int32_t result, PVBOXHGCMCMD pCmd) 1773 1773 { 1774 PVMMDEV pThis = PDMIHGCMPORT_2_VMMDEVSTATE(pInterface);1774 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDevState, IHGCMPort); 1775 1775 #ifdef VBOX_WITH_DTRACE 1776 1776 uint32_t idFunction = 0; … … 1840 1840 * 3.0 blocker.) 1841 1841 */ 1842 /** @todo s/pThis/pThis/g */1843 1842 /** @todo It would be faster if this interface would use MMIO2 memory and we 1844 1843 * didn't have to mess around with PDMDevHlpPhysRead/Write. We're … … 2221 2220 DECLCALLBACK(void) hgcmCompleted (PPDMIHGCMPORT pInterface, int32_t result, PVBOXHGCMCMD pCmd) 2222 2221 { 2223 PVMMDEV pThis = PDMIHGCMPORT_2_VMMDEVSTATE(pInterface);2222 PVMMDEV pThis = RT_FROM_MEMBER(pInterface, VMMDevState, IHGCMPort); 2224 2223 2225 2224 VBOXDD_HGCMCALL_COMPLETED_REQ(pCmd, result); … … 2233 2232 } 2234 2233 2235 /* @thread EMT */2234 /** @thread EMT */ 2236 2235 int vmmdevHGCMSaveState(PVMMDEV pThis, PSSMHANDLE pSSM) 2237 2236 { … … 2521 2520 } 2522 2521 2523 /* @thread EMT */2522 /** @thread EMT */ 2524 2523 int vmmdevHGCMLoadStateDone(PVMMDEV pThis, PSSMHANDLE pSSM) 2525 2524 {
Note:
See TracChangeset
for help on using the changeset viewer.