Changeset 28319 in vbox
- Timestamp:
- Apr 14, 2010 6:25:23 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdmdev.h
r27935 r28319 3196 3196 3197 3197 /** 3198 * Gets the VM state. 3199 * 3200 * @returns VM state. 3201 * @param pDevIns The device instance. 3202 * @thread Any thread (just keep in mind that it's volatile info). 3203 */ 3204 DECLRCCALLBACKMEMBER(VMSTATE, pfnVMState, (PPDMDEVINS pDevIns)); 3205 3206 /** 3198 3207 * Set the VM error message 3199 3208 * … … 3340 3349 */ 3341 3350 DECLR0CALLBACKMEMBER(bool, pfnA20IsEnabled,(PPDMDEVINS pDevIns)); 3351 3352 /** 3353 * Gets the VM state. 3354 * 3355 * @returns VM state. 3356 * @param pDevIns The device instance. 3357 * @thread Any thread (just keep in mind that it's volatile info). 3358 */ 3359 DECLR0CALLBACKMEMBER(VMSTATE, pfnVMState, (PPDMDEVINS pDevIns)); 3342 3360 3343 3361 /** … … 3912 3930 pDevIns->pHlpR3->pfnMMHeapFree(pDevIns, pv); 3913 3931 } 3932 #endif /* IN_RING3 */ 3914 3933 3915 3934 /** … … 3918 3937 DECLINLINE(VMSTATE) PDMDevHlpVMState(PPDMDEVINS pDevIns) 3919 3938 { 3920 return pDevIns->pHlpR3->pfnVMState(pDevIns); 3921 } 3922 3939 return pDevIns->CTX_SUFF(pHlp)->pfnVMState(pDevIns); 3940 } 3941 3942 #ifdef IN_RING3 3923 3943 /** 3924 3944 * @copydoc PDMDEVHLPR3::pfnVMTeleportedAndNotFullyResumedYet … … 3928 3948 return pDevIns->pHlpR3->pfnVMTeleportedAndNotFullyResumedYet(pDevIns); 3929 3949 } 3930 3931 3950 #endif /* IN_RING3 */ 3932 3951 -
trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp
r26376 r28319 160 160 161 161 162 /** @interface_method_impl{PDMDEVHLPRC,pfnVMState} */ 163 static DECLCALLBACK(VMSTATE) pdmRCDevHlp_VMState(PPDMDEVINS pDevIns) 164 { 165 PDMDEV_ASSERT_DEVINS(pDevIns); 166 167 VMSTATE enmVMState = pDevIns->Internal.s.pVMRC->enmVMState; 168 169 LogFlow(("pdmRCDevHlp_VMState: caller=%p/%d: returns %d\n", pDevIns, pDevIns->iInstance, enmVMState)); 170 return enmVMState; 171 } 172 173 162 174 /** @interface_method_impl{PDMDEVHLPRC,pfnVMSetError} */ 163 175 static DECLCALLBACK(int) pdmRCDevHlp_VMSetError(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) … … 241 253 pdmRCDevHlp_PhysWrite, 242 254 pdmRCDevHlp_A20IsEnabled, 255 pdmRCDevHlp_VMState, 243 256 pdmRCDevHlp_VMSetError, 244 257 pdmRCDevHlp_VMSetErrorV, -
trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp
r26376 r28319 162 162 163 163 164 /** @interface_method_impl{PDMDEVHLPR0,pfnVMState} */ 165 static DECLCALLBACK(VMSTATE) pdmR0DevHlp_VMState(PPDMDEVINS pDevIns) 166 { 167 PDMDEV_ASSERT_DEVINS(pDevIns); 168 169 VMSTATE enmVMState = pDevIns->Internal.s.pVMR0->enmVMState; 170 171 LogFlow(("pdmR0DevHlp_VMState: caller=%p/%d: returns %d\n", pDevIns, pDevIns->iInstance, enmVMState)); 172 return enmVMState; 173 } 174 175 164 176 /** @interface_method_impl{PDMDEVHLPR0,pfnVMSetError} */ 165 177 static DECLCALLBACK(int) pdmR0DevHlp_VMSetError(PPDMDEVINS pDevIns, int rc, RT_SRC_POS_DECL, const char *pszFormat, ...) … … 255 267 pdmR0DevHlp_PhysWrite, 256 268 pdmR0DevHlp_A20IsEnabled, 269 pdmR0DevHlp_VMState, 257 270 pdmR0DevHlp_VMSetError, 258 271 pdmR0DevHlp_VMSetErrorV,
Note:
See TracChangeset
for help on using the changeset viewer.