Changeset 91955 in vbox for trunk/include
- Timestamp:
- Oct 21, 2021 2:26:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdrv.h
r91945 r91955 1282 1282 const char *pszDesc)); 1283 1283 1284 /** @name Exported PDM Async Completion Functions 1285 * @{ */ 1286 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionTemplateDestroy,(PPDMASYNCCOMPLETIONTEMPLATE pTemplate)); 1287 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionEpCreateForFile,(PPPDMASYNCCOMPLETIONENDPOINT ppEndpoint, 1288 const char *pszFilename, uint32_t fFlags, 1289 PPDMASYNCCOMPLETIONTEMPLATE pTemplate)); 1290 DECLR3CALLBACKMEMBER(void, pfnAsyncCompletionEpClose,(PPDMASYNCCOMPLETIONENDPOINT pEndpoint)); 1291 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionEpGetSize,(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t *pcbSize)); 1292 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionEpSetSize,(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t cbSize)); 1293 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionEpSetBwMgr,(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, const char *pszBwMgr)); 1294 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionEpFlush,(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, void *pvUser, PPPDMASYNCCOMPLETIONTASK ppTask)); 1295 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionEpRead,(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off, 1296 PCRTSGSEG paSegments, unsigned cSegments, 1297 size_t cbRead, void *pvUser, 1298 PPPDMASYNCCOMPLETIONTASK ppTask)); 1299 DECLR3CALLBACKMEMBER(int, pfnAsyncCompletionEpWrite,(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off, 1300 PCRTSGSEG paSegments, unsigned cSegments, 1301 size_t cbWrite, void *pvUser, 1302 PPPDMASYNCCOMPLETIONTASK ppTask)); 1303 /** @} */ 1304 1305 1284 1306 /** 1285 1307 * Attaches network filter driver to a bandwidth group. … … 1421 1443 PFNPDMBLKCACHEXFERENQUEUEDISCARDDRV pfnXferEnqueueDiscard, 1422 1444 const char *pcszId)); 1445 1446 /** @name Exported PDM Block Cache Functions 1447 * @{ */ 1448 DECLR3CALLBACKMEMBER(void, pfnBlkCacheRelease,(PPDMBLKCACHE pBlkCache)); 1449 DECLR3CALLBACKMEMBER(int, pfnBlkCacheClear,(PPDMBLKCACHE pBlkCache)); 1450 DECLR3CALLBACKMEMBER(int, pfnBlkCacheSuspend,(PPDMBLKCACHE pBlkCache)); 1451 DECLR3CALLBACKMEMBER(int, pfnBlkCacheResume,(PPDMBLKCACHE pBlkCache)); 1452 DECLR3CALLBACKMEMBER(void, pfnBlkCacheIoXferComplete,(PPDMBLKCACHE pBlkCache, PPDMBLKCACHEIOXFER hIoXfer, int rcIoXfer)); 1453 DECLR3CALLBACKMEMBER(int, pfnBlkCacheRead,(PPDMBLKCACHE pBlkCache, uint64_t off, PCRTSGBUF pSgBuf, size_t cbRead, void *pvUser)); 1454 DECLR3CALLBACKMEMBER(int, pfnBlkCacheWrite,(PPDMBLKCACHE pBlkCache, uint64_t off, PCRTSGBUF pSgBuf, size_t cbRead, void *pvUser)); 1455 DECLR3CALLBACKMEMBER(int, pfnBlkCacheFlush,(PPDMBLKCACHE pBlkCache, void *pvUser)); 1456 DECLR3CALLBACKMEMBER(int, pfnBlkCacheDiscard,(PPDMBLKCACHE pBlkCache, PCRTRANGE paRanges, unsigned cRanges, void *pvUser)); 1457 /** @} */ 1458 1423 1459 /** 1424 1460 * Gets the reason for the most recent VM suspend. … … 1479 1515 } PDMDRVHLPR3; 1480 1516 /** Current DRVHLP version number. */ 1481 #define PDM_DRVHLPR3_VERSION PDM_VERSION_MAKE(0xf0fb, 1 2, 0)1517 #define PDM_DRVHLPR3_VERSION PDM_VERSION_MAKE(0xf0fb, 13, 0) 1482 1518 1483 1519 … … 2030 2066 { 2031 2067 return pDrvIns->pHlpR3->pfnAsyncCompletionTemplateCreate(pDrvIns, ppTemplate, pfnCompleted, pvTemplateUser, pszDesc); 2068 } 2069 2070 /** 2071 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionTemplateDestroy 2072 */ 2073 DECLINLINE(int) PDMDrvHlpAsyncCompletionTemplateDestroy(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONTEMPLATE pTemplate) 2074 { 2075 return pDrvIns->pHlpR3->pfnAsyncCompletionTemplateDestroy(pTemplate); 2076 } 2077 2078 /** 2079 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpCreateForFile 2080 */ 2081 DECLINLINE(int) PDMDrvHlpAsyncCompletionEpCreateForFile(PPDMDRVINS pDrvIns, PPPDMASYNCCOMPLETIONENDPOINT ppEndpoint, 2082 const char *pszFilename, uint32_t fFlags, 2083 PPDMASYNCCOMPLETIONTEMPLATE pTemplate) 2084 { 2085 return pDrvIns->pHlpR3->pfnAsyncCompletionEpCreateForFile(ppEndpoint, pszFilename, fFlags, pTemplate); 2086 } 2087 2088 /** 2089 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpClose 2090 */ 2091 DECLINLINE(void) PDMDrvHlpAsyncCompletionEpClose(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONENDPOINT pEndpoint) 2092 { 2093 pDrvIns->pHlpR3->pfnAsyncCompletionEpClose(pEndpoint); 2094 } 2095 2096 /** 2097 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpGetSize 2098 */ 2099 DECLINLINE(int) PDMDrvHlpAsyncCompletionEpGetSize(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t *pcbSize) 2100 { 2101 return pDrvIns->pHlpR3->pfnAsyncCompletionEpGetSize(pEndpoint, pcbSize); 2102 } 2103 2104 /** 2105 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpSetSize 2106 */ 2107 DECLINLINE(int) PDMDrvHlpAsyncCompletionEpSetSize(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t cbSize) 2108 { 2109 return pDrvIns->pHlpR3->pfnAsyncCompletionEpSetSize(pEndpoint, cbSize); 2110 } 2111 2112 /** 2113 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpSetBwMgr 2114 */ 2115 DECLINLINE(int) PDMDrvHlpAsyncCompletionEpSetBwMgr(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONENDPOINT pEndpoint, const char *pszBwMgr) 2116 { 2117 return pDrvIns->pHlpR3->pfnAsyncCompletionEpSetBwMgr(pEndpoint, pszBwMgr); 2118 } 2119 2120 /** 2121 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpFlush 2122 */ 2123 DECLINLINE(int) PDMDrvHlpAsyncCompletionEpFlush(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONENDPOINT pEndpoint, void *pvUser, 2124 PPPDMASYNCCOMPLETIONTASK ppTask) 2125 { 2126 return pDrvIns->pHlpR3->pfnAsyncCompletionEpFlush(pEndpoint, pvUser, ppTask); 2127 } 2128 2129 /** 2130 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpRead 2131 */ 2132 DECLINLINE(int) PDMDrvHlpAsyncCompletionEpRead(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off, 2133 PCRTSGSEG paSegments, unsigned cSegments, 2134 size_t cbRead, void *pvUser, 2135 PPPDMASYNCCOMPLETIONTASK ppTask) 2136 { 2137 return pDrvIns->pHlpR3->pfnAsyncCompletionEpRead(pEndpoint, off, paSegments, cSegments, cbRead, pvUser, ppTask); 2138 } 2139 2140 /** 2141 * @copydoc PDMDRVHLPR3::pfnAsyncCompletionEpWrite 2142 */ 2143 DECLINLINE(int) PDMDrvHlpAsyncCompletionEpWrite(PPDMDRVINS pDrvIns, PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off, 2144 PCRTSGSEG paSegments, unsigned cSegments, 2145 size_t cbWrite, void *pvUser, 2146 PPPDMASYNCCOMPLETIONTASK ppTask) 2147 { 2148 return pDrvIns->pHlpR3->pfnAsyncCompletionEpRead(pEndpoint, off, paSegments, cSegments, cbWrite, pvUser, ppTask); 2032 2149 } 2033 2150 # endif … … 2200 2317 2201 2318 /** 2319 * @copydoc PDMDRVHLPR3::pfnBlkCacheRelease 2320 */ 2321 DECLINLINE(void) PDMDrvHlpBlkCacheRelease(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache) 2322 { 2323 pDrvIns->pHlpR3->pfnBlkCacheRelease(pBlkCache); 2324 } 2325 2326 /** 2327 * @copydoc PDMDRVHLPR3::pfnBlkCacheClear 2328 */ 2329 DECLINLINE(int) PDMDrvHlpBlkCacheClear(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache) 2330 { 2331 return pDrvIns->pHlpR3->pfnBlkCacheClear(pBlkCache); 2332 } 2333 2334 /** 2335 * @copydoc PDMDRVHLPR3::pfnBlkCacheSuspend 2336 */ 2337 DECLINLINE(int) PDMDrvHlpBlkCacheSuspend(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache) 2338 { 2339 return pDrvIns->pHlpR3->pfnBlkCacheSuspend(pBlkCache); 2340 } 2341 2342 /** 2343 * @copydoc PDMDRVHLPR3::pfnBlkCacheResume 2344 */ 2345 DECLINLINE(int) PDMDrvHlpBlkCacheResume(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache) 2346 { 2347 return pDrvIns->pHlpR3->pfnBlkCacheResume(pBlkCache); 2348 } 2349 2350 /** 2351 * @copydoc PDMDRVHLPR3::pfnBlkCacheIoXferComplete 2352 */ 2353 DECLINLINE(void) PDMDrvHlpBlkCacheIoXferComplete(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache, 2354 PPDMBLKCACHEIOXFER hIoXfer, int rcIoXfer) 2355 { 2356 return pDrvIns->pHlpR3->pfnBlkCacheIoXferComplete(pBlkCache, hIoXfer, rcIoXfer); 2357 } 2358 2359 /** 2360 * @copydoc PDMDRVHLPR3::pfnBlkCacheRead 2361 */ 2362 DECLINLINE(int) PDMDrvHlpBlkCacheRead(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache, uint64_t off, 2363 PCRTSGBUF pSgBuf, size_t cbRead, void *pvUser) 2364 { 2365 return pDrvIns->pHlpR3->pfnBlkCacheRead(pBlkCache, off, pSgBuf, cbRead, pvUser); 2366 } 2367 2368 /** 2369 * @copydoc PDMDRVHLPR3::pfnBlkCacheWrite 2370 */ 2371 DECLINLINE(int) PDMDrvHlpBlkCacheWrite(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache, uint64_t off, 2372 PCRTSGBUF pSgBuf, size_t cbRead, void *pvUser) 2373 { 2374 return pDrvIns->pHlpR3->pfnBlkCacheWrite(pBlkCache, off, pSgBuf, cbRead, pvUser); 2375 } 2376 2377 /** 2378 * @copydoc PDMDRVHLPR3::pfnBlkCacheFlush 2379 */ 2380 DECLINLINE(int) PDMDrvHlpBlkCacheFlush(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache, void *pvUser) 2381 { 2382 return pDrvIns->pHlpR3->pfnBlkCacheFlush(pBlkCache, pvUser); 2383 } 2384 2385 /** 2386 * @copydoc PDMDRVHLPR3::pfnBlkCacheDiscard 2387 */ 2388 DECLINLINE(int) PDMDrvHlpBlkCacheDiscard(PPDMDRVINS pDrvIns, PPDMBLKCACHE pBlkCache, PCRTRANGE paRanges, 2389 unsigned cRanges, void *pvUser) 2390 { 2391 return pDrvIns->pHlpR3->pfnBlkCacheDiscard(pBlkCache, paRanges, cRanges, pvUser); 2392 } 2393 2394 /** 2202 2395 * @copydoc PDMDRVHLPR3::pfnVMGetSuspendReason 2203 2396 */
Note:
See TracChangeset
for help on using the changeset viewer.