Changeset 94369 in vbox
- Timestamp:
- Mar 25, 2022 7:42:32 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150675
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cfgm.h
r93444 r94369 185 185 VMMR3DECL(int) CFGMR3QuerySInt( PCFGMNODE pNode, const char *pszName, signed int *pi); 186 186 VMMR3DECL(int) CFGMR3QuerySIntDef( PCFGMNODE pNode, const char *pszName, signed int *pi, signed int iDef); 187 VMMR3DECL(int) CFGMR3QueryPtr( PCFGMNODE pNode, const char *pszName, void **ppv);188 VMMR3DECL(int) CFGMR3QueryPtrDef( PCFGMNODE pNode, const char *pszName, void **ppv, void *pvDef);189 187 VMMR3DECL(int) CFGMR3QueryGCPtr( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr); 190 188 VMMR3DECL(int) CFGMR3QueryGCPtrDef( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr, RTGCPTR GCPtrDef); -
trunk/include/VBox/vmm/pdmdev.h
r93650 r94369 2425 2425 2426 2426 /** Current PDMDEVHLPR3 version number. */ 2427 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 6 4, 0)2427 #define PDM_DEVHLPR3_VERSION PDM_VERSION_MAKE_PP(0xffe7, 65, 0) 2428 2428 2429 2429 /** … … 3076 3076 DECLR3CALLBACKMEMBER(int, pfnCFGMQuerySInt,( PCFGMNODE pNode, const char *pszName, signed int *pi)); 3077 3077 DECLR3CALLBACKMEMBER(int, pfnCFGMQuerySIntDef,( PCFGMNODE pNode, const char *pszName, signed int *pi, signed int iDef)); 3078 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryPtr,( PCFGMNODE pNode, const char *pszName, void **ppv));3079 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryPtrDef,( PCFGMNODE pNode, const char *pszName, void **ppv, void *pvDef));3080 3078 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryGCPtr,( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr)); 3081 3079 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryGCPtrDef,( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr, RTGCPTR GCPtrDef)); -
trunk/include/VBox/vmm/pdmdrv.h
r93912 r94369 1052 1052 DECLR3CALLBACKMEMBER(int, pfnCFGMQuerySInt,( PCFGMNODE pNode, const char *pszName, signed int *pi)); 1053 1053 DECLR3CALLBACKMEMBER(int, pfnCFGMQuerySIntDef,( PCFGMNODE pNode, const char *pszName, signed int *pi, signed int iDef)); 1054 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryPtr,( PCFGMNODE pNode, const char *pszName, void **ppv));1055 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryPtrDef,( PCFGMNODE pNode, const char *pszName, void **ppv, void *pvDef));1056 1054 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryGCPtr,( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr)); 1057 1055 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryGCPtrDef,( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr, RTGCPTR GCPtrDef)); … … 1527 1525 } PDMDRVHLPR3; 1528 1526 /** Current DRVHLP version number. */ 1529 #define PDM_DRVHLPR3_VERSION PDM_VERSION_MAKE(0xf0fb, 1 5, 0)1527 #define PDM_DRVHLPR3_VERSION PDM_VERSION_MAKE(0xf0fb, 16, 0) 1530 1528 1531 1529 -
trunk/include/VBox/vmm/pdmusb.h
r94342 r94369 714 714 DECLR3CALLBACKMEMBER(int, pfnCFGMQuerySInt,( PCFGMNODE pNode, const char *pszName, signed int *pi)); 715 715 DECLR3CALLBACKMEMBER(int, pfnCFGMQuerySIntDef,( PCFGMNODE pNode, const char *pszName, signed int *pi, signed int iDef)); 716 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryPtr,( PCFGMNODE pNode, const char *pszName, void **ppv));717 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryPtrDef,( PCFGMNODE pNode, const char *pszName, void **ppv, void *pvDef));718 716 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryGCPtr,( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr)); 719 717 DECLR3CALLBACKMEMBER(int, pfnCFGMQueryGCPtrDef,( PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr, RTGCPTR GCPtrDef)); … … 948 946 949 947 /** Current USBHLP version number. */ 950 #define PDM_USBHLP_VERSION PDM_VERSION_MAKE(0xeefe, 6, 1)948 #define PDM_USBHLP_VERSION PDM_VERSION_MAKE(0xeefe, 7, 0) 951 949 952 950 #endif /* IN_RING3 */ -
trunk/include/VBox/vmm/vmmr3vtable-def.h
r93609 r94369 173 173 VTABLE_ENTRY(CFGMR3QuerySInt) 174 174 VTABLE_ENTRY(CFGMR3QuerySIntDef) 175 VTABLE_ENTRY(CFGMR3QueryPtr)176 VTABLE_ENTRY(CFGMR3QueryPtrDef)177 175 VTABLE_ENTRY(CFGMR3QueryGCPtr) 178 176 VTABLE_ENTRY(CFGMR3QueryGCPtrDef) -
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r93470 r94369 3024 3024 AssertCompileSize(signed int, 4); 3025 3025 return CFGMR3QueryS32Def(pNode, pszName, (int32_t *)pi, iDef); 3026 }3027 3028 3029 /**3030 * Query pointer integer value.3031 *3032 * @returns VBox status code.3033 * @param pNode Which node to search for pszName in.3034 * @param pszName Name of an integer value.3035 * @param ppv Where to store the value.3036 */3037 VMMR3DECL(int) CFGMR3QueryPtr(PCFGMNODE pNode, const char *pszName, void **ppv)3038 {3039 uint64_t u64;3040 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);3041 if (RT_SUCCESS(rc))3042 {3043 uintptr_t u = (uintptr_t)u64;3044 if (u64 == u)3045 *ppv = (void *)u;3046 else3047 rc = VERR_CFGM_INTEGER_TOO_BIG;3048 }3049 return rc;3050 }3051 3052 3053 /**3054 * Query pointer integer value with default.3055 *3056 * @returns VBox status code.3057 * @param pNode Which node to search for pszName in.3058 * @param pszName Name of an integer value.3059 * @param ppv Where to store the value. Set to default on failure.3060 * @param pvDef The default value.3061 */3062 VMMR3DECL(int) CFGMR3QueryPtrDef(PCFGMNODE pNode, const char *pszName, void **ppv, void *pvDef)3063 {3064 uint64_t u64;3065 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, (uintptr_t)pvDef);3066 if (RT_SUCCESS(rc))3067 {3068 uintptr_t u = (uintptr_t)u64;3069 if (u64 == u)3070 *ppv = (void *)u;3071 else3072 rc = VERR_CFGM_INTEGER_TOO_BIG;3073 }3074 if (RT_FAILURE(rc))3075 *ppv = pvDef;3076 return rc;3077 3026 } 3078 3027 -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r93901 r94369 4981 4981 CFGMR3QuerySInt, 4982 4982 CFGMR3QuerySIntDef, 4983 CFGMR3QueryPtr,4984 CFGMR3QueryPtrDef,4985 4983 CFGMR3QueryGCPtr, 4986 4984 CFGMR3QueryGCPtrDef, … … 5380 5378 CFGMR3QuerySInt, 5381 5379 CFGMR3QuerySIntDef, 5382 CFGMR3QueryPtr,5383 CFGMR3QueryPtrDef,5384 5380 CFGMR3QueryGCPtr, 5385 5381 CFGMR3QueryGCPtrDef, … … 6099 6095 CFGMR3QuerySInt, 6100 6096 CFGMR3QuerySIntDef, 6101 CFGMR3QueryPtr,6102 CFGMR3QueryPtrDef,6103 6097 CFGMR3QueryGCPtr, 6104 6098 CFGMR3QueryGCPtrDef, -
trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
r93912 r94369 2236 2236 CFGMR3QuerySInt, 2237 2237 CFGMR3QuerySIntDef, 2238 CFGMR3QueryPtr,2239 CFGMR3QueryPtrDef,2240 2238 CFGMR3QueryGCPtr, 2241 2239 CFGMR3QueryGCPtrDef, -
trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp
r94342 r94369 2335 2335 CFGMR3QuerySInt, 2336 2336 CFGMR3QuerySIntDef, 2337 CFGMR3QueryPtr,2338 CFGMR3QueryPtrDef,2339 2337 CFGMR3QueryGCPtr, 2340 2338 CFGMR3QueryGCPtrDef, -
trunk/src/VBox/VMM/VMMR3/VMMR3.def
r93115 r94369 49 49 CFGMR3QueryGCPtrUDef 50 50 CFGMR3QueryGCPtrDef 51 CFGMR3QueryPtrDef52 51 CFGMR3QueryBoolDef 53 52 CFGMR3QueryS8Def … … 66 65 CFGMR3QueryGCPtrU 67 66 CFGMR3QueryGCPtr 68 CFGMR3QueryPtr69 67 CFGMR3QueryBool 70 68 CFGMR3QueryS8
Note:
See TracChangeset
for help on using the changeset viewer.