Changeset 5040 in vbox for trunk/include/VBox
- Timestamp:
- Sep 26, 2007 9:03:00 AM (17 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r4662 r5040 107 107 #define VMMDEV_VERSION_MINOR (0x4) 108 108 #define VMMDEV_VERSION ((VMMDEV_VERSION_MAJOR << 16) | VMMDEV_VERSION_MINOR) 109 110 /* Maximum request packet size */ 111 #define VMMDEV_MAX_VMMDEVREQ_SIZE _1M 109 112 110 113 /** -
trunk/include/VBox/pdmdev.h
r4787 r5040 2343 2343 2344 2344 /** 2345 * Convert a guest physical address to a host virtual address. 2345 * Convert a guest physical address to a host virtual address. (OBSOLETE) 2346 2346 * 2347 2347 * @returns VBox status code. … … 2355 2355 * @remark Do not use the mapping after you return to the caller! (it could get invalidated/changed) 2356 2356 */ 2357 DECLR3CALLBACKMEMBER(int, pfn Phys2HCVirt,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTUINT cbRange, PRTHCPTR ppvHC));2358 2359 /** 2360 * Convert a guest virtual address to a host virtual address. 2357 DECLR3CALLBACKMEMBER(int, pfnObsoletePhys2HCVirt,(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTUINT cbRange, PRTHCPTR ppvHC)); 2358 2359 /** 2360 * Convert a guest virtual address to a host virtual address. (OBSOLETE) 2361 2361 * 2362 2362 * @returns VBox status code. … … 2369 2369 * @remark Do not use the mapping after you return to the caller! (it could get invalidated/changed) 2370 2370 */ 2371 DECLR3CALLBACKMEMBER(int, pfn PhysGCPtr2HCPtr,(PPDMDEVINS pDevIns, RTGCPTR GCPtr, PRTHCPTR pHCPtr));2371 DECLR3CALLBACKMEMBER(int, pfnObsoletePhysGCPtr2HCPtr,(PPDMDEVINS pDevIns, RTGCPTR GCPtr, PRTHCPTR pHCPtr)); 2372 2372 2373 2373 /** … … 3207 3207 3208 3208 /** 3209 * @copydoc PDMDEVHLP::pfnPhys2HCVirt3210 */3211 DECLINLINE(int) PDMDevHlpPhys2HCVirt(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTUINT cbRange, PRTHCPTR ppvHC)3212 {3213 return pDevIns->pDevHlp->pfnPhys2HCVirt(pDevIns, GCPhys, cbRange, ppvHC);3214 }3215 3216 /**3217 * @copydoc PDMDEVHLP::pfnPhysGCPtr2HCPtr3218 */3219 DECLINLINE(int) PDMDevHlpPhysGCPtr2HCPtr(PPDMDEVINS pDevIns, RTGCPTR GCPtr, PRTHCPTR pHCPtr)3220 {3221 return pDevIns->pDevHlp->pfnPhysGCPtr2HCPtr(pDevIns, GCPtr, pHCPtr);3222 }3223 3224 /**3225 3209 * @copydoc PDMDEVHLP::pfnPhysGCPtr2GCPhys 3226 3210 */ -
trunk/include/VBox/pgm.h
r4787 r5040 837 837 typedef struct PGMPAGEMAPLOCK 838 838 { 839 /** @todo see PGMPhysIsPageMappingLockValid for possibly incorrect assumptions */ 839 840 #ifdef IN_GC 840 841 /** Just a dummy for the time being. */ … … 965 966 PGMDECL(void) PGMPhysReleasePageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock); 966 967 968 969 /** 970 * Checks if the lock structure is valid 971 * 972 * @param pVM The VM handle. 973 * @param pLock The lock structure initialized by the mapping function. 974 */ 975 DECLINLINE(bool) PGMPhysIsPageMappingLockValid(PVM pVM, PPGMPAGEMAPLOCK pLock) 976 { 977 /** @todo -> complete/change this */ 978 #ifdef IN_GC 979 return !!(pLock->u32Dummy); 980 #else 981 return !!(pLock->pvPage); 982 #endif 983 } 984 967 985 /** 968 986 * Converts a GC physical address to a HC pointer. … … 977 995 * @param cbRange Physical range 978 996 * @param pHCPtr Where to store the HC pointer on success. 997 * 998 * @remark Do *not* assume this mapping will be around forever! 979 999 */ 980 1000 PGMDECL(int) PGMPhysGCPhys2HCPtr(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, PRTHCPTR pHCPtr); … … 989 1009 * @param GCPtr The guest pointer to convert. 990 1010 * @param pHCPtr Where to store the HC virtual address. 1011 * 1012 * @remark Do *not* assume this mapping will be around forever! 991 1013 */ 992 1014 PGMDECL(int) PGMPhysGCPtr2HCPtr(PVM pVM, RTGCPTR GCPtr, PRTHCPTR pHCPtr); … … 1002 1024 * @param pHCPtr Where to store the HC pointer. 1003 1025 * 1026 * @remark Do *not* assume this mapping will be around forever! 1004 1027 * @remark This function is used by the REM at a time where PGM could 1005 1028 * potentially not be in sync. It could also be used by a
Note:
See TracChangeset
for help on using the changeset viewer.