1 | /* $Id: tstDeviceVMMInternal.h 69183 2017-10-23 18:47:18Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * tstDevice - Test framework for PDM devices/drivers, definitions of VMM internal types.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2017 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 | #ifndef ___tstDeviceVMMInternal_h
|
---|
18 | #define ___tstDeviceVMMInternal_h
|
---|
19 |
|
---|
20 | #include <VBox/types.h>
|
---|
21 | #include <VBox/vmm/tm.h>
|
---|
22 | #include <iprt/critsect.h>
|
---|
23 | #include <iprt/list.h>
|
---|
24 |
|
---|
25 | RT_C_DECLS_BEGIN
|
---|
26 |
|
---|
27 | /** Pointer to a VMM callback table. */
|
---|
28 | typedef struct TSTDEVVMMCALLBACKS *PTSTDEVVMMCALLBACKS;
|
---|
29 | /** Pointer to a constant VMM callback table. */
|
---|
30 | typedef const struct TSTDEVVMMCALLBACKS *PCTSTDEVVMMCALLBACKS;
|
---|
31 |
|
---|
32 | /** Pointer to the internal device under test instance. */
|
---|
33 | typedef struct TSTDEVDUTINT *PTSTDEVDUTINT;
|
---|
34 | /** Pointer to a constant device under test instance. */
|
---|
35 | typedef const struct TSTDEVDUTINT *PCTSTDEVDUTINT;
|
---|
36 |
|
---|
37 | /**
|
---|
38 | * Private device instance data.
|
---|
39 | */
|
---|
40 | typedef struct PDMDEVINSINT
|
---|
41 | {
|
---|
42 | /** Pointer to the callback table. */
|
---|
43 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
44 | /** Pointer to the device under test the PDM device instance is for. */
|
---|
45 | PTSTDEVDUTINT pDut;
|
---|
46 | } PDMDEVINSINT;
|
---|
47 | AssertCompile(sizeof(PDMDEVINSINT) <= (HC_ARCH_BITS == 32 ? 72 : 112 + 0x28));
|
---|
48 |
|
---|
49 | /**
|
---|
50 | * CFGM node structure.
|
---|
51 | */
|
---|
52 | typedef struct CFGMNODE
|
---|
53 | {
|
---|
54 | /** Pointer to the callback table. */
|
---|
55 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
56 | /** Device under test this CFGM node is for. */
|
---|
57 | PTSTDEVDUTINT pDut;
|
---|
58 | /** @todo: */
|
---|
59 | } CFGMNODE;
|
---|
60 |
|
---|
61 | /**
|
---|
62 | * PDM queue structure.
|
---|
63 | */
|
---|
64 | typedef struct PDMQUEUE
|
---|
65 | {
|
---|
66 | /** Pointer to the callback table. */
|
---|
67 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
68 | /** @todo: */
|
---|
69 | } PDMQUEUE;
|
---|
70 |
|
---|
71 | /**
|
---|
72 | * TM timer structure.
|
---|
73 | */
|
---|
74 | typedef struct TMTIMER
|
---|
75 | {
|
---|
76 | /** Pointer to the callback table. */
|
---|
77 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
78 | /** List of timers created by the device. */
|
---|
79 | RTLISTNODE NdDevTimers;
|
---|
80 | /** Clock this timer belongs to. */
|
---|
81 | TMCLOCK enmClock;
|
---|
82 | /** Callback to call when the timer expires. */
|
---|
83 | PFNTMTIMERDEV pfnCallbackDev;
|
---|
84 | /** Opaque user data to pass to the callback. */
|
---|
85 | void *pvUser;
|
---|
86 | /** Flags. */
|
---|
87 | uint32_t fFlags;
|
---|
88 | /** @todo: */
|
---|
89 | } TMTIMER;
|
---|
90 |
|
---|
91 | /**
|
---|
92 | * Internal VMM structure of VMCPU
|
---|
93 | */
|
---|
94 | typedef struct VMMCPU
|
---|
95 | {
|
---|
96 | /** Pointer to the callback table. */
|
---|
97 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
98 | /** @todo: */
|
---|
99 | } VMMCPU;
|
---|
100 | AssertCompile(sizeof(VMMCPU) <= 704);
|
---|
101 |
|
---|
102 | /**
|
---|
103 | * Internal VMM structure of VM
|
---|
104 | */
|
---|
105 | typedef struct VMM
|
---|
106 | {
|
---|
107 | /** Pointer to the callback table. */
|
---|
108 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
109 | /** @todo: */
|
---|
110 | } VMM;
|
---|
111 | AssertCompile(sizeof(VMM) <= 1600);
|
---|
112 |
|
---|
113 | /**
|
---|
114 | * Internal VM structure of VM
|
---|
115 | */
|
---|
116 | typedef struct VMINT
|
---|
117 | {
|
---|
118 | /** Pointer to the callback table. */
|
---|
119 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
120 | /** @todo: */
|
---|
121 | } VMINT;
|
---|
122 | AssertCompile(sizeof(VMINT) <= 24);
|
---|
123 |
|
---|
124 | /**
|
---|
125 | * Internal per vCPU user VM structure.
|
---|
126 | */
|
---|
127 | typedef struct VMINTUSERPERVMCPU
|
---|
128 | {
|
---|
129 | /** Pointer to the callback table. */
|
---|
130 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
131 | /** @todo: */
|
---|
132 | } VMINTUSERPERVMCPU;
|
---|
133 | AssertCompile(sizeof(VMINTUSERPERVMCPU) <= 512);
|
---|
134 |
|
---|
135 | /**
|
---|
136 | * Internal user VM structure.
|
---|
137 | */
|
---|
138 | typedef struct VMINTUSERPERVM
|
---|
139 | {
|
---|
140 | /** Pointer to the callback table. */
|
---|
141 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
142 | /** @todo: */
|
---|
143 | } VMINTUSERPERVM;
|
---|
144 | AssertCompile(sizeof(VMINTUSERPERVM) <= 512);
|
---|
145 |
|
---|
146 | /**
|
---|
147 | * Internal PDM critical section structure.
|
---|
148 | */
|
---|
149 | typedef struct PDMCRITSECTINT
|
---|
150 | {
|
---|
151 | /** Pointer to the callback table. */
|
---|
152 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
153 | /** The actual critical section used for emulation. */
|
---|
154 | RTCRITSECT CritSect;
|
---|
155 | } PDMCRITSECTINT;
|
---|
156 | AssertCompile(sizeof(PDMCRITSECTINT) <= (HC_ARCH_BITS == 32 ? 0x80 : 0xc0));
|
---|
157 |
|
---|
158 | /**
|
---|
159 | * Internal PDM thread instance data.
|
---|
160 | */
|
---|
161 | typedef struct PDMTHREADINT
|
---|
162 | {
|
---|
163 | /** Pointer to the callback table. */
|
---|
164 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
165 | /** Pointer to the device under test. */
|
---|
166 | PTSTDEVDUTINT pDut;
|
---|
167 | /** Node for the list of PDM threads. */
|
---|
168 | RTLISTNODE NdPdmThreads;
|
---|
169 | } PDMTHREADINT;
|
---|
170 | AssertCompile(sizeof(PDMTHREADINT) <= 64);
|
---|
171 |
|
---|
172 | /**
|
---|
173 | * MM Heap allocation.
|
---|
174 | */
|
---|
175 | typedef struct TSTDEVMMHEAPALLOC
|
---|
176 | {
|
---|
177 | /** Node for the list of allocations. */
|
---|
178 | RTLISTNODE NdMmHeap;
|
---|
179 | /** Pointer to the callback table. */
|
---|
180 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
181 | /** Pointer to the device under test the allocation was made for. */
|
---|
182 | PTSTDEVDUTINT pDut;
|
---|
183 | /** Size of the allocation. */
|
---|
184 | size_t cbAlloc;
|
---|
185 | /** Align the next member on a 16byte boundary. */
|
---|
186 | size_t uAlignment0;
|
---|
187 | /** Start of the real allocation. */
|
---|
188 | uint8_t abAlloc[RT_FLEXIBLE_ARRAY];
|
---|
189 | } TSTDEVMMHEAPALLOC;
|
---|
190 | /** Pointer to a MM Heap allocation. */
|
---|
191 | typedef TSTDEVMMHEAPALLOC *PTSTDEVMMHEAPALLOC;
|
---|
192 | /** Pointer to a const MM Heap allocation. */
|
---|
193 | typedef const TSTDEVMMHEAPALLOC *PCTSTDEVMMHEAPALLOC;
|
---|
194 |
|
---|
195 | AssertCompileMemberAlignment(TSTDEVMMHEAPALLOC, abAlloc, HC_ARCH_BITS == 64 ? 16 : 8);
|
---|
196 |
|
---|
197 | #if 0
|
---|
198 | /**
|
---|
199 | * Internal PDM netshaper filter instance data.
|
---|
200 | */
|
---|
201 | typedef struct PDMNSFILTER
|
---|
202 | {
|
---|
203 | /** Pointer to the callback table. */
|
---|
204 | PCTSTDEVVMMCALLBACKS pVmmCallbacks;
|
---|
205 | /** @todo: */
|
---|
206 | } PDMNSFILTER;
|
---|
207 | #endif
|
---|
208 |
|
---|
209 | #define PDMCRITSECTINT_DECLARED
|
---|
210 | #define PDMTHREADINT_DECLARED
|
---|
211 | #define PDMDEVINSINT_DECLARED
|
---|
212 | #define ___VMInternal_h
|
---|
213 | #define ___VMMInternal_h
|
---|
214 | RT_C_DECLS_END
|
---|
215 | #include <VBox/vmm/pdmcritsect.h>
|
---|
216 | #include <VBox/vmm/vm.h>
|
---|
217 | #include <VBox/vmm/uvm.h>
|
---|
218 | #include <VBox/vmm/cfgm.h>
|
---|
219 | #include <VBox/vmm/tm.h>
|
---|
220 | #include <VBox/vmm/pdmblkcache.h>
|
---|
221 | #include <VBox/vmm/pdmdev.h>
|
---|
222 | #include <VBox/vmm/pdmqueue.h>
|
---|
223 | #include <VBox/vmm/pdmthread.h>
|
---|
224 | #include <VBox/vmm/cfgm.h>
|
---|
225 | #include <VBox/vmm/mm.h>
|
---|
226 | #include <VBox/vmm/pdmasynccompletion.h>
|
---|
227 | #include <VBox/vmm/pdmnetshaper.h>
|
---|
228 | #include <VBox/vmm/pgm.h>
|
---|
229 | RT_C_DECLS_BEGIN
|
---|
230 |
|
---|
231 |
|
---|
232 | /**
|
---|
233 | * Callback table from the VMM shim library to the PDM test framework.
|
---|
234 | */
|
---|
235 | typedef struct TSTDEVVMMCALLBACKS
|
---|
236 | {
|
---|
237 | DECLR3CALLBACKMEMBER(bool, pfnCFGMR3AreValuesValid, (PCFGMNODE pNode, const char *pszzValid));
|
---|
238 | DECLR3CALLBACKMEMBER(void, pfnCFGMR3Dump, (PCFGMNODE pRoot));
|
---|
239 | DECLR3CALLBACKMEMBER(PCFGMNODE, pfnCFGMR3GetChild, (PCFGMNODE pNode, const char *pszPath));
|
---|
240 | DECLR3CALLBACKMEMBER(PCFGMNODE, pfnCFGMR3GetChildFV, (PCFGMNODE pNode, const char *pszPathFormat, va_list Args));
|
---|
241 | DECLR3CALLBACKMEMBER(PCFGMNODE, pfnCFGMR3GetFirstChild, (PCFGMNODE pNode));
|
---|
242 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3GetName, (PCFGMNODE pCur, char *pszName, size_t cchName));
|
---|
243 | DECLR3CALLBACKMEMBER(PCFGMNODE, pfnCFGMR3GetNextChild, (PCFGMNODE pCur));
|
---|
244 | DECLR3CALLBACKMEMBER(PCFGMNODE, pfnCFGMR3GetParent, (PCFGMNODE pNode));
|
---|
245 | DECLR3CALLBACKMEMBER(PCFGMNODE, pfnCFGMR3GetRoot, (PVM pVM));
|
---|
246 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3InsertNode, (PCFGMNODE pNode, const char *pszName, PCFGMNODE *ppChild));
|
---|
247 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3InsertNodeFV, (PCFGMNODE pNode, PCFGMNODE *ppChild,
|
---|
248 | const char *pszNameFormat, va_list Args));
|
---|
249 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3InsertString, (PCFGMNODE pNode, const char *pszName, const char *pszString));
|
---|
250 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3QueryBytes, (PCFGMNODE pNode, const char *pszName, void *pvData, size_t cbData));
|
---|
251 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3QueryInteger, (PCFGMNODE pNode, const char *pszName, uint64_t *pu64));
|
---|
252 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3QuerySize, (PCFGMNODE pNode, const char *pszName, size_t *pcb));
|
---|
253 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3QueryString, (PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString));
|
---|
254 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3QueryStringAlloc, (PCFGMNODE pNode, const char *pszName, char **ppszString));
|
---|
255 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3QueryStringAllocDef, (PCFGMNODE pNode, const char *pszName, char **ppszString, const char *pszDef));
|
---|
256 | DECLR3CALLBACKMEMBER(void, pfnCFGMR3RemoveNode, (PCFGMNODE pNode));
|
---|
257 | DECLR3CALLBACKMEMBER(int, pfnCFGMR3ValidateConfig, (PCFGMNODE pNode, const char *pszNode,
|
---|
258 | const char *pszValidValues, const char *pszValidNodes,
|
---|
259 | const char *pszWho, uint32_t uInstance));
|
---|
260 |
|
---|
261 | DECLR3CALLBACKMEMBER(int, pfnIOMIOPortWrite, (PVM pVM, PVMCPU pVCpu, RTIOPORT Port, uint32_t u32Value, size_t cbValue));
|
---|
262 | DECLR3CALLBACKMEMBER(int, pfnIOMMMIOMapMMIO2Page, (PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysRemapped, uint64_t fPageFlags));
|
---|
263 | DECLR3CALLBACKMEMBER(int, pfnIOMMMIOResetRegion, (PVM pVM, RTGCPHYS GCPhys));
|
---|
264 | DECLR3CALLBACKMEMBER(int, pfnMMHyperAlloc, (PVM pVM, size_t cb, uint32_t uAlignment, MMTAG enmTag, void **ppv));
|
---|
265 | DECLR3CALLBACKMEMBER(int, pfnMMHyperFree, (PVM pVM, void *pv));
|
---|
266 | DECLR3CALLBACKMEMBER(RTR0PTR, pfnMMHyperR3ToR0, (PVM pVM, RTR3PTR R3Ptr));
|
---|
267 | DECLR3CALLBACKMEMBER(RTRCPTR, pfnMMHyperR3ToRC, (PVM pVM, RTR3PTR R3Ptr));
|
---|
268 | DECLR3CALLBACKMEMBER(void, pfnMMR3HeapFree, (void *pv));
|
---|
269 | DECLR3CALLBACKMEMBER(int, pfnMMR3HyperAllocOnceNoRel, (PVM pVM, size_t cb, uint32_t uAlignment, MMTAG enmTag, void **ppv));
|
---|
270 | DECLR3CALLBACKMEMBER(uint64_t, pfnMMR3PhysGetRamSize, (PVM pVM));
|
---|
271 | DECLR3CALLBACKMEMBER(uint64_t, pfnMMR3PhysGetRamSizeAbove4GB, (PVM pVM));
|
---|
272 | DECLR3CALLBACKMEMBER(uint32_t, pfnMMR3PhysGetRamSizeBelow4GB, (PVM pVM));
|
---|
273 | DECLR3CALLBACKMEMBER(int, pfnPDMCritSectEnterDebug, (PPDMCRITSECT pCritSect, int rcBusy, RTHCUINTPTR uId, RT_SRC_POS_DECL));
|
---|
274 | DECLR3CALLBACKMEMBER(bool, pfnPDMCritSectIsInitialized, (PCPDMCRITSECT pCritSect));
|
---|
275 | DECLR3CALLBACKMEMBER(bool, pfnPDMCritSectIsOwner, (PCPDMCRITSECT pCritSect));
|
---|
276 | DECLR3CALLBACKMEMBER(int, pfnPDMCritSectLeave, (PPDMCRITSECT pCritSect));
|
---|
277 | DECLR3CALLBACKMEMBER(int, pfnPDMCritSectTryEnterDebug, (PPDMCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL));
|
---|
278 | DECLR3CALLBACKMEMBER(int, pfnPDMHCCritSectScheduleExitEvent, (PPDMCRITSECT pCritSect, SUPSEMEVENT hEventToSignal));
|
---|
279 | DECLR3CALLBACKMEMBER(bool, pfnPDMNsAllocateBandwidth, (PPDMNSFILTER pFilter, size_t cbTransfer));
|
---|
280 | DECLR3CALLBACKMEMBER(PPDMQUEUEITEMCORE, pfnPDMQueueAlloc, (PPDMQUEUE pQueue));
|
---|
281 | DECLR3CALLBACKMEMBER(bool, pfnPDMQueueFlushIfNecessary, (PPDMQUEUE pQueue));
|
---|
282 | DECLR3CALLBACKMEMBER(void, pfnPDMQueueInsert, (PPDMQUEUE pQueue, PPDMQUEUEITEMCORE pItem));
|
---|
283 | DECLR3CALLBACKMEMBER(R0PTRTYPE(PPDMQUEUE), pfnPDMQueueR0Ptr, (PPDMQUEUE pQueue));
|
---|
284 | DECLR3CALLBACKMEMBER(RCPTRTYPE(PPDMQUEUE), pfnPDMQueueRCPtr, (PPDMQUEUE pQueue));
|
---|
285 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpClose, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint));
|
---|
286 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpCreateForFile, (PPPDMASYNCCOMPLETIONENDPOINT ppEndpoint,
|
---|
287 | const char *pszFilename, uint32_t fFlags,
|
---|
288 | PPDMASYNCCOMPLETIONTEMPLATE pTemplate));
|
---|
289 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpFlush, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, void *pvUser,
|
---|
290 | PPPDMASYNCCOMPLETIONTASK ppTask));
|
---|
291 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpGetSize, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t *pcbSize));
|
---|
292 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpRead, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off,
|
---|
293 | PCRTSGSEG paSegments, unsigned cSegments,
|
---|
294 | size_t cbRead, void *pvUser,
|
---|
295 | PPPDMASYNCCOMPLETIONTASK ppTask));
|
---|
296 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpSetBwMgr, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, const char *pszBwMgr));
|
---|
297 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpSetSize, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t cbSize));
|
---|
298 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionEpWrite, (PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off,
|
---|
299 | PCRTSGSEG paSegments, unsigned cSegments,
|
---|
300 | size_t cbWrite, void *pvUser,
|
---|
301 | PPPDMASYNCCOMPLETIONTASK ppTask));
|
---|
302 | DECLR3CALLBACKMEMBER(int, pfnPDMR3AsyncCompletionTemplateDestroy, (PPDMASYNCCOMPLETIONTEMPLATE pTemplate));
|
---|
303 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheClear, (PPDMBLKCACHE pBlkCache));
|
---|
304 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheDiscard, (PPDMBLKCACHE pBlkCache, PCRTRANGE paRanges,
|
---|
305 | unsigned cRanges, void *pvUser));
|
---|
306 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheFlush, (PPDMBLKCACHE pBlkCache, void *pvUser));
|
---|
307 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheIoXferComplete, (PPDMBLKCACHE pBlkCache, PPDMBLKCACHEIOXFER hIoXfer, int rcIoXfer));
|
---|
308 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheRead, (PPDMBLKCACHE pBlkCache, uint64_t off, PCRTSGBUF pSgBuf, size_t cbRead, void *pvUser));
|
---|
309 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheRelease, (PPDMBLKCACHE pBlkCache));
|
---|
310 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheResume, (PPDMBLKCACHE pBlkCache));
|
---|
311 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheSuspend, (PPDMBLKCACHE pBlkCache));
|
---|
312 | DECLR3CALLBACKMEMBER(int, pfnPDMR3BlkCacheWrite, (PPDMBLKCACHE pBlkCache, uint64_t off, PCRTSGBUF pSgBuf, size_t cbWrite, void *pvUser));
|
---|
313 | DECLR3CALLBACKMEMBER(int, pfnPDMR3CritSectDelete, (PPDMCRITSECT pCritSect));
|
---|
314 | DECLR3CALLBACKMEMBER(int, pfnPDMR3QueryLun, (PUVM pUVM, const char *pszDevice, unsigned iInstance, unsigned iLun, PPPDMIBASE ppBase));
|
---|
315 | DECLR3CALLBACKMEMBER(int, pfnPDMR3ThreadDestroy, (PPDMTHREAD pThread, int *pRcThread));
|
---|
316 | DECLR3CALLBACKMEMBER(int, pfnPDMR3ThreadResume, (PPDMTHREAD pThread));
|
---|
317 | DECLR3CALLBACKMEMBER(int, pfnPDMR3ThreadSleep, (PPDMTHREAD pThread, RTMSINTERVAL cMillies));
|
---|
318 | DECLR3CALLBACKMEMBER(int, pfnPDMR3ThreadSuspend, (PPDMTHREAD pThread));
|
---|
319 | DECLR3CALLBACKMEMBER(uint64_t, pfnTMCpuTicksPerSecond, (PVM pVM));
|
---|
320 | DECLR3CALLBACKMEMBER(int, pfnTMR3TimerDestroy, (PTMTIMER pTimer));
|
---|
321 | DECLR3CALLBACKMEMBER(int, pfnTMR3TimerLoad, (PTMTIMERR3 pTimer, PSSMHANDLE pSSM));
|
---|
322 | DECLR3CALLBACKMEMBER(int, pfnTMR3TimerSave, (PTMTIMERR3 pTimer, PSSMHANDLE pSSM));
|
---|
323 | DECLR3CALLBACKMEMBER(int, pfnTMR3TimerSetCritSect, (PTMTIMERR3 pTimer, PPDMCRITSECT pCritSect));
|
---|
324 | DECLR3CALLBACKMEMBER(uint64_t, pfnTMTimerFromMilli, (PTMTIMER pTimer, uint64_t cMilliSecs));
|
---|
325 | DECLR3CALLBACKMEMBER(uint64_t, pfnTMTimerFromNano, (PTMTIMER pTimer, uint64_t cNanoSecs));
|
---|
326 | DECLR3CALLBACKMEMBER(uint64_t, pfnTMTimerGet, (PTMTIMER pTimer));
|
---|
327 | DECLR3CALLBACKMEMBER(uint64_t, pfnTMTimerGetFreq, (PTMTIMER pTimer));
|
---|
328 | DECLR3CALLBACKMEMBER(uint64_t, pfnTMTimerGetNano, (PTMTIMER pTimer));
|
---|
329 | DECLR3CALLBACKMEMBER(bool, pfnTMTimerIsActive, (PTMTIMER pTimer));
|
---|
330 | DECLR3CALLBACKMEMBER(bool, pfnTMTimerIsLockOwner, (PTMTIMER pTimer));
|
---|
331 | DECLR3CALLBACKMEMBER(int, pfnTMTimerLock, (PTMTIMER pTimer, int rcBusy));
|
---|
332 | DECLR3CALLBACKMEMBER(PTMTIMERR0, pfnTMTimerR0Ptr, (PTMTIMER pTimer));
|
---|
333 | DECLR3CALLBACKMEMBER(PTMTIMERRC, pfnTMTimerRCPtr, (PTMTIMER pTimer));
|
---|
334 | DECLR3CALLBACKMEMBER(int, pfnTMTimerSet, (PTMTIMER pTimer, uint64_t u64Expire));
|
---|
335 | DECLR3CALLBACKMEMBER(int, pfnTMTimerSetFrequencyHint, (PTMTIMER pTimer, uint32_t uHz));
|
---|
336 | DECLR3CALLBACKMEMBER(int, pfnTMTimerSetMicro, (PTMTIMER pTimer, uint64_t cMicrosToNext));
|
---|
337 | DECLR3CALLBACKMEMBER(int, pfnTMTimerSetMillies, (PTMTIMER pTimer, uint32_t cMilliesToNext));
|
---|
338 | DECLR3CALLBACKMEMBER(int, pfnTMTimerSetNano, (PTMTIMER pTimer, uint64_t cNanosToNext));
|
---|
339 | DECLR3CALLBACKMEMBER(int, pfnTMTimerStop, (PTMTIMER pTimer));
|
---|
340 | DECLR3CALLBACKMEMBER(void, pfnTMTimerUnlock, (PTMTIMER pTimer));
|
---|
341 | DECLR3CALLBACKMEMBER(PVMCPU, pfnVMMGetCpu, (PVM pVM));
|
---|
342 | DECLR3CALLBACKMEMBER(VMCPUID, pfnVMMGetCpuId, (PVM pVM));
|
---|
343 | DECLR3CALLBACKMEMBER(int, pfnVMMR3DeregisterPatchMemory, (PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem));
|
---|
344 | DECLR3CALLBACKMEMBER(int, pfnVMMR3RegisterPatchMemory, (PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem));
|
---|
345 | DECLR3CALLBACKMEMBER(RTNATIVETHREAD, pfnVMR3GetVMCPUNativeThread, (PVM pVM));
|
---|
346 | DECLR3CALLBACKMEMBER(int, pfnVMR3NotifyCpuDeviceReady, (PVM pVM, VMCPUID idCpu));
|
---|
347 | DECLR3CALLBACKMEMBER(int, pfnVMR3ReqCallNoWait, (PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...));
|
---|
348 | DECLR3CALLBACKMEMBER(int, pfnVMR3ReqCallVoidNoWait, (PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...));
|
---|
349 | DECLR3CALLBACKMEMBER(int, pfnVMR3ReqPriorityCallWait, (PVM pVM, VMCPUID idDstCpu, PFNRT pfnFunction, unsigned cArgs, ...));
|
---|
350 | DECLR3CALLBACKMEMBER(int, pfnVMR3WaitForDeviceReady, (PVM pVM, VMCPUID idCpu));
|
---|
351 | } TSTDEVVMMCALLBACKS;
|
---|
352 |
|
---|
353 |
|
---|
354 | extern const PDMDEVHLPR3 g_tstDevPdmDevHlpR3;
|
---|
355 | extern const TSTDEVVMMCALLBACKS g_tstDevVmmCallbacks;
|
---|
356 |
|
---|
357 | RT_C_DECLS_END
|
---|
358 |
|
---|
359 | #endif
|
---|
360 |
|
---|