1 | /** @file
|
---|
2 | * PDM - Pluggable Device Manager, Core API.
|
---|
3 | *
|
---|
4 | * The 'Core API' has been put in a different header because everyone
|
---|
5 | * is currently including pdm.h. So, pdm.h is for including all of the
|
---|
6 | * PDM stuff, while pdmapi.h is for the core stuff.
|
---|
7 | */
|
---|
8 |
|
---|
9 | /*
|
---|
10 | * Copyright (C) 2006-2020 Oracle Corporation
|
---|
11 | *
|
---|
12 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
13 | * available from http://www.virtualbox.org. This file is free software;
|
---|
14 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
15 | * General Public License (GPL) as published by the Free Software
|
---|
16 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
17 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
18 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
19 | *
|
---|
20 | * The contents of this file may alternatively be used under the terms
|
---|
21 | * of the Common Development and Distribution License Version 1.0
|
---|
22 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
23 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
24 | * CDDL are applicable instead of those of the GPL.
|
---|
25 | *
|
---|
26 | * You may elect to license modified versions of this file under the
|
---|
27 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
28 | */
|
---|
29 |
|
---|
30 | #ifndef VBOX_INCLUDED_vmm_pdmapi_h
|
---|
31 | #define VBOX_INCLUDED_vmm_pdmapi_h
|
---|
32 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
33 | # pragma once
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | #include <VBox/vmm/pdmcommon.h>
|
---|
37 | #ifdef IN_RING3
|
---|
38 | # include <VBox/vmm/vmapi.h>
|
---|
39 | #endif
|
---|
40 | #include <VBox/sup.h>
|
---|
41 |
|
---|
42 | struct PDMDEVMODREGR0;
|
---|
43 |
|
---|
44 | RT_C_DECLS_BEGIN
|
---|
45 |
|
---|
46 | /** @defgroup grp_pdm The Pluggable Device Manager API
|
---|
47 | * @ingroup grp_vmm
|
---|
48 | * @{
|
---|
49 | */
|
---|
50 |
|
---|
51 | VMMDECL(int) PDMGetInterrupt(PVMCPUCC pVCpu, uint8_t *pu8Interrupt);
|
---|
52 | VMMDECL(int) PDMIsaSetIrq(PVMCC pVM, uint8_t u8Irq, uint8_t u8Level, uint32_t uTagSrc);
|
---|
53 | VMM_INT_DECL(bool) PDMHasIoApic(PVM pVM);
|
---|
54 | VMM_INT_DECL(bool) PDMHasApic(PVM pVM);
|
---|
55 | VMM_INT_DECL(int) PDMIoApicSetIrq(PVM pVM, uint8_t u8Irq, uint8_t u8Level, uint32_t uTagSrc);
|
---|
56 | VMM_INT_DECL(VBOXSTRICTRC) PDMIoApicBroadcastEoi(PVM pVM, uint8_t uVector);
|
---|
57 | VMM_INT_DECL(int) PDMIoApicSendMsi(PVM pVM, RTGCPHYS GCAddr, uint32_t uValue, uint32_t uTagSrc);
|
---|
58 | VMM_INT_DECL(int) PDMVmmDevHeapR3ToGCPhys(PVM pVM, RTR3PTR pv, RTGCPHYS *pGCPhys);
|
---|
59 | VMM_INT_DECL(bool) PDMVmmDevHeapIsEnabled(PVM pVM);
|
---|
60 |
|
---|
61 | /**
|
---|
62 | * Mapping/unmapping callback for an VMMDev heap allocation.
|
---|
63 | *
|
---|
64 | * @param pVM The cross context VM structure.
|
---|
65 | * @param pvAllocation The allocation address (ring-3).
|
---|
66 | * @param GCPhysAllocation The guest physical address of the mapping if
|
---|
67 | * it's being mapped, NIL_RTGCPHYS if it's being
|
---|
68 | * unmapped.
|
---|
69 | */
|
---|
70 | typedef DECLCALLBACK(void) FNPDMVMMDEVHEAPNOTIFY(PVM pVM, void *pvAllocation, RTGCPHYS GCPhysAllocation);
|
---|
71 | /** Pointer (ring-3) to a FNPDMVMMDEVHEAPNOTIFY function. */
|
---|
72 | typedef R3PTRTYPE(FNPDMVMMDEVHEAPNOTIFY *) PFNPDMVMMDEVHEAPNOTIFY;
|
---|
73 |
|
---|
74 |
|
---|
75 | #if defined(IN_RING3) || defined(DOXYGEN_RUNNING)
|
---|
76 | /** @defgroup grp_pdm_r3 The PDM Host Context Ring-3 API
|
---|
77 | * @{
|
---|
78 | */
|
---|
79 | VMMR3_INT_DECL(int) PDMR3InitUVM(PUVM pUVM);
|
---|
80 | VMMR3_INT_DECL(int) PDMR3LdrLoadVMMR0U(PUVM pUVM);
|
---|
81 | VMMR3_INT_DECL(int) PDMR3Init(PVM pVM);
|
---|
82 | VMMR3_INT_DECL(int) PDMR3InitCompleted(PVM pVM, VMINITCOMPLETED enmWhat);
|
---|
83 | VMMR3DECL(void) PDMR3PowerOn(PVM pVM);
|
---|
84 | VMMR3_INT_DECL(bool) PDMR3GetResetInfo(PVM pVM, uint32_t fOverride, uint32_t *pfResetFlags);
|
---|
85 | VMMR3_INT_DECL(void) PDMR3ResetCpu(PVMCPU pVCpu);
|
---|
86 | VMMR3_INT_DECL(void) PDMR3Reset(PVM pVM);
|
---|
87 | VMMR3_INT_DECL(void) PDMR3MemSetup(PVM pVM, bool fAtReset);
|
---|
88 | VMMR3_INT_DECL(void) PDMR3SoftReset(PVM pVM, uint32_t fResetFlags);
|
---|
89 | VMMR3_INT_DECL(void) PDMR3Suspend(PVM pVM);
|
---|
90 | VMMR3_INT_DECL(void) PDMR3Resume(PVM pVM);
|
---|
91 | VMMR3DECL(void) PDMR3PowerOff(PVM pVM);
|
---|
92 | VMMR3_INT_DECL(void) PDMR3Relocate(PVM pVM, RTGCINTPTR offDelta);
|
---|
93 | VMMR3_INT_DECL(int) PDMR3Term(PVM pVM);
|
---|
94 | VMMR3_INT_DECL(void) PDMR3TermUVM(PUVM pUVM);
|
---|
95 | VMMR3_INT_DECL(bool) PDMR3HasLoadedState(PVM pVM);
|
---|
96 |
|
---|
97 | /** PDM loader context indicator. */
|
---|
98 | typedef enum PDMLDRCTX
|
---|
99 | {
|
---|
100 | /** Invalid zero value. */
|
---|
101 | PDMLDRCTX_INVALID = 0,
|
---|
102 | /** Ring-0 context. */
|
---|
103 | PDMLDRCTX_RING_0,
|
---|
104 | /** Ring-3 context. */
|
---|
105 | PDMLDRCTX_RING_3,
|
---|
106 | /** Raw-mode context. */
|
---|
107 | PDMLDRCTX_RAW_MODE,
|
---|
108 | /** End of valid context values. */
|
---|
109 | PDMLDRCTX_END,
|
---|
110 | /** 32-bit type hack. */
|
---|
111 | PDMLDRCTX_32BIT_HACK = 0x7fffffff
|
---|
112 | } PDMLDRCTX;
|
---|
113 |
|
---|
114 | /**
|
---|
115 | * Module enumeration callback function.
|
---|
116 | *
|
---|
117 | * @returns VBox status.
|
---|
118 | * Failure will stop the search and return the return code.
|
---|
119 | * Warnings will be ignored and not returned.
|
---|
120 | * @param pVM The cross context VM structure.
|
---|
121 | * @param pszFilename Module filename.
|
---|
122 | * @param pszName Module name. (short and unique)
|
---|
123 | * @param ImageBase Address where to executable image is loaded.
|
---|
124 | * @param cbImage Size of the executable image.
|
---|
125 | * @param enmCtx The context the module is loaded into.
|
---|
126 | * @param pvArg User argument.
|
---|
127 | */
|
---|
128 | typedef DECLCALLBACK(int) FNPDMR3ENUM(PVM pVM, const char *pszFilename, const char *pszName,
|
---|
129 | RTUINTPTR ImageBase, size_t cbImage, PDMLDRCTX enmCtx, void *pvArg);
|
---|
130 | /** Pointer to a FNPDMR3ENUM() function. */
|
---|
131 | typedef FNPDMR3ENUM *PFNPDMR3ENUM;
|
---|
132 | VMMR3DECL(int) PDMR3LdrEnumModules(PVM pVM, PFNPDMR3ENUM pfnCallback, void *pvArg);
|
---|
133 | VMMR3_INT_DECL(void) PDMR3LdrRelocateU(PUVM pUVM, RTGCINTPTR offDelta);
|
---|
134 | VMMR3_INT_DECL(int) PDMR3LdrLoadR0(PUVM pUVM, const char *pszModule, const char *pszSearchPath);
|
---|
135 | VMMR3_INT_DECL(int) PDMR3LdrGetSymbolR3(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue);
|
---|
136 | VMMR3DECL(int) PDMR3LdrGetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue);
|
---|
137 | VMMR3DECL(int) PDMR3LdrGetSymbolR0Lazy(PVM pVM, const char *pszModule, const char *pszSearchPath, const char *pszSymbol, PRTR0PTR ppvValue);
|
---|
138 | VMMR3DECL(int) PDMR3LdrLoadRC(PVM pVM, const char *pszFilename, const char *pszName);
|
---|
139 | VMMR3DECL(int) PDMR3LdrGetSymbolRC(PVM pVM, const char *pszModule, const char *pszSymbol, PRTRCPTR pRCPtrValue);
|
---|
140 | VMMR3DECL(int) PDMR3LdrGetSymbolRCLazy(PVM pVM, const char *pszModule, const char *pszSearchPath, const char *pszSymbol,
|
---|
141 | PRTRCPTR pRCPtrValue);
|
---|
142 | VMMR3_INT_DECL(int) PDMR3LdrQueryRCModFromPC(PVM pVM, RTRCPTR uPC,
|
---|
143 | char *pszModName, size_t cchModName, PRTRCPTR pMod,
|
---|
144 | char *pszNearSym1, size_t cchNearSym1, PRTRCPTR pNearSym1,
|
---|
145 | char *pszNearSym2, size_t cchNearSym2, PRTRCPTR pNearSym2);
|
---|
146 | VMMR3_INT_DECL(int) PDMR3LdrQueryR0ModFromPC(PVM pVM, RTR0PTR uPC,
|
---|
147 | char *pszModName, size_t cchModName, PRTR0PTR pMod,
|
---|
148 | char *pszNearSym1, size_t cchNearSym1, PRTR0PTR pNearSym1,
|
---|
149 | char *pszNearSym2, size_t cchNearSym2, PRTR0PTR pNearSym2);
|
---|
150 | VMMR3_INT_DECL(int) PDMR3LdrGetInterfaceSymbols(PVM pVM, void *pvInterface, size_t cbInterface,
|
---|
151 | const char *pszModule, const char *pszSearchPath,
|
---|
152 | const char *pszSymPrefix, const char *pszSymList,
|
---|
153 | bool fRing0OrRC);
|
---|
154 |
|
---|
155 | VMMR3DECL(int) PDMR3QueryDevice(PUVM pUVM, const char *pszDevice, unsigned iInstance, PPPDMIBASE ppBase);
|
---|
156 | VMMR3DECL(int) PDMR3QueryDeviceLun(PUVM pUVM, const char *pszDevice, unsigned iInstance, unsigned iLun, PPPDMIBASE ppBase);
|
---|
157 | VMMR3DECL(int) PDMR3QueryLun(PUVM pUVM, const char *pszDevice, unsigned iInstance, unsigned iLun, PPPDMIBASE ppBase);
|
---|
158 | VMMR3DECL(int) PDMR3QueryDriverOnLun(PUVM pUVM, const char *pszDevice, unsigned iInstance, unsigned iLun,
|
---|
159 | const char *pszDriver, PPPDMIBASE ppBase);
|
---|
160 | VMMR3DECL(int) PDMR3DeviceAttach(PUVM pUVM, const char *pszDevice, unsigned iInstance, unsigned iLun, uint32_t fFlags,
|
---|
161 | PPDMIBASE *ppBase);
|
---|
162 | VMMR3DECL(int) PDMR3DeviceDetach(PUVM pUVM, const char *pszDevice, unsigned iInstance, unsigned iLun, uint32_t fFlags);
|
---|
163 | VMMR3_INT_DECL(PPDMCRITSECT) PDMR3DevGetCritSect(PVM pVM, PPDMDEVINS pDevIns);
|
---|
164 | VMMR3DECL(int) PDMR3DriverAttach(PUVM pUVM, const char *pszDevice, unsigned iDevIns, unsigned iLun, uint32_t fFlags,
|
---|
165 | PPPDMIBASE ppBase);
|
---|
166 | VMMR3DECL(int) PDMR3DriverDetach(PUVM pUVM, const char *pszDevice, unsigned iDevIns, unsigned iLun,
|
---|
167 | const char *pszDriver, unsigned iOccurrence, uint32_t fFlags);
|
---|
168 | VMMR3DECL(int) PDMR3DriverReattach(PUVM pVM, const char *pszDevice, unsigned iDevIns, unsigned iLun,
|
---|
169 | const char *pszDriver, unsigned iOccurrence, uint32_t fFlags, PCFGMNODE pCfg,
|
---|
170 | PPPDMIBASE ppBase);
|
---|
171 | VMMR3DECL(void) PDMR3DmaRun(PVM pVM);
|
---|
172 | VMMR3_INT_DECL(int) PDMR3LockCall(PVM pVM);
|
---|
173 |
|
---|
174 | VMMR3_INT_DECL(int) PDMR3VmmDevHeapAlloc(PVM pVM, size_t cbSize, PFNPDMVMMDEVHEAPNOTIFY pfnNotify, RTR3PTR *ppv);
|
---|
175 | VMMR3_INT_DECL(int) PDMR3VmmDevHeapFree(PVM pVM, RTR3PTR pv);
|
---|
176 | VMMR3_INT_DECL(int) PDMR3TracingConfig(PVM pVM, const char *pszName, size_t cchName, bool fEnable, bool fApply);
|
---|
177 | VMMR3_INT_DECL(bool) PDMR3TracingAreAll(PVM pVM, bool fEnabled);
|
---|
178 | VMMR3_INT_DECL(int) PDMR3TracingQueryConfig(PVM pVM, char *pszConfig, size_t cbConfig);
|
---|
179 | /** @} */
|
---|
180 | #endif /* IN_RING3 */
|
---|
181 |
|
---|
182 |
|
---|
183 |
|
---|
184 | /** @defgroup grp_pdm_rc The PDM Raw-Mode Context API
|
---|
185 | * @{
|
---|
186 | */
|
---|
187 | /** @} */
|
---|
188 |
|
---|
189 |
|
---|
190 |
|
---|
191 | /** @defgroup grp_pdm_r0 The PDM Ring-0 Context API
|
---|
192 | * @{
|
---|
193 | */
|
---|
194 | VMMR0_INT_DECL(void) PDMR0Init(void *hMod);
|
---|
195 | VMMR0DECL(int) PDMR0DeviceRegisterModule(void *hMod, struct PDMDEVMODREGR0 *pModReg);
|
---|
196 | VMMR0DECL(int) PDMR0DeviceDeregisterModule(void *hMod, struct PDMDEVMODREGR0 *pModReg);
|
---|
197 |
|
---|
198 | VMMR0_INT_DECL(void) PDMR0InitPerVMData(PGVM pGVM);
|
---|
199 | VMMR0_INT_DECL(void) PDMR0CleanupVM(PGVM pGVM);
|
---|
200 |
|
---|
201 | /**
|
---|
202 | * Request buffer for PDMR0DriverCallReqHandler / VMMR0_DO_PDM_DRIVER_CALL_REQ_HANDLER.
|
---|
203 | * @see PDMR0DriverCallReqHandler.
|
---|
204 | */
|
---|
205 | typedef struct PDMDRIVERCALLREQHANDLERREQ
|
---|
206 | {
|
---|
207 | /** The header. */
|
---|
208 | SUPVMMR0REQHDR Hdr;
|
---|
209 | /** The driver instance. */
|
---|
210 | PPDMDRVINSR0 pDrvInsR0;
|
---|
211 | /** The operation. */
|
---|
212 | uint32_t uOperation;
|
---|
213 | /** Explicit alignment padding. */
|
---|
214 | uint32_t u32Alignment;
|
---|
215 | /** Optional 64-bit integer argument. */
|
---|
216 | uint64_t u64Arg;
|
---|
217 | } PDMDRIVERCALLREQHANDLERREQ;
|
---|
218 | /** Pointer to a PDMR0DriverCallReqHandler / VMMR0_DO_PDM_DRIVER_CALL_REQ_HANDLER
|
---|
219 | * request buffer. */
|
---|
220 | typedef PDMDRIVERCALLREQHANDLERREQ *PPDMDRIVERCALLREQHANDLERREQ;
|
---|
221 |
|
---|
222 | VMMR0_INT_DECL(int) PDMR0DriverCallReqHandler(PGVM pGVM, PPDMDRIVERCALLREQHANDLERREQ pReq);
|
---|
223 |
|
---|
224 |
|
---|
225 | /**
|
---|
226 | * Request buffer for PDMR0DeviceCreateReqHandler / VMMR0_DO_PDM_DEVICE_CREATE.
|
---|
227 | * @see PDMR0DeviceCreateReqHandler.
|
---|
228 | */
|
---|
229 | typedef struct PDMDEVICECREATEREQ
|
---|
230 | {
|
---|
231 | /** The header. */
|
---|
232 | SUPVMMR0REQHDR Hdr;
|
---|
233 | /** Out: Where to return the address of the ring-3 device instance. */
|
---|
234 | PPDMDEVINSR3 pDevInsR3;
|
---|
235 |
|
---|
236 | /** Copy of PDMDEVREGR3::fFlags for matching with PDMDEVREGR0::fFlags. */
|
---|
237 | uint32_t fFlags;
|
---|
238 | /** Copy of PDMDEVREGR3::fClass for matching with PDMDEVREGR0::fFlags. */
|
---|
239 | uint32_t fClass;
|
---|
240 | /** Copy of PDMDEVREGR3::cMaxInstances for matching with
|
---|
241 | * PDMDEVREGR0::cMaxInstances. */
|
---|
242 | uint32_t cMaxInstances;
|
---|
243 | /** Copy of PDMDEVREGR3::uSharedVersion for matching with
|
---|
244 | * PDMDEVREGR0::uSharedVersion. */
|
---|
245 | uint32_t uSharedVersion;
|
---|
246 | /** Copy of PDMDEVREGR3::cbInstanceShared for matching with
|
---|
247 | * PDMDEVREGR0::cbInstanceShared. */
|
---|
248 | uint32_t cbInstanceShared;
|
---|
249 | /** Copy of PDMDEVREGR3::cbInstanceCC. */
|
---|
250 | uint32_t cbInstanceR3;
|
---|
251 | /** Copy of PDMDEVREGR3::cbInstanceRC for matching with
|
---|
252 | * PDMDEVREGR0::cbInstanceRC. */
|
---|
253 | uint32_t cbInstanceRC;
|
---|
254 | /** Copy of PDMDEVREGR3::cMaxPciDevices for matching with
|
---|
255 | * PDMDEVREGR0::cMaxPciDevices. */
|
---|
256 | uint16_t cMaxPciDevices;
|
---|
257 | /** Copy of PDMDEVREGR3::cMaxMsixVectors for matching with
|
---|
258 | * PDMDEVREGR0::cMaxMsixVectors. */
|
---|
259 | uint16_t cMaxMsixVectors;
|
---|
260 |
|
---|
261 | /** The device instance ordinal. */
|
---|
262 | uint32_t iInstance;
|
---|
263 | /** Set if the raw-mode component is desired. */
|
---|
264 | bool fRCEnabled;
|
---|
265 | /** Explicit padding. */
|
---|
266 | bool afReserved[3];
|
---|
267 |
|
---|
268 | /** In: Device name. */
|
---|
269 | char szDevName[32];
|
---|
270 | /** In: The module name (no path). */
|
---|
271 | char szModName[32];
|
---|
272 | } PDMDEVICECREATEREQ;
|
---|
273 | /** Pointer to a PDMR0DeviceCreate / VMMR0_DO_PDM_DEVICE_CREATE request buffer. */
|
---|
274 | typedef PDMDEVICECREATEREQ *PPDMDEVICECREATEREQ;
|
---|
275 |
|
---|
276 | VMMR0_INT_DECL(int) PDMR0DeviceCreateReqHandler(PGVM pGVM, PPDMDEVICECREATEREQ pReq);
|
---|
277 |
|
---|
278 | /**
|
---|
279 | * The ring-0 device call to make.
|
---|
280 | */
|
---|
281 | typedef enum PDMDEVICEGENCALL
|
---|
282 | {
|
---|
283 | PDMDEVICEGENCALL_INVALID = 0,
|
---|
284 | PDMDEVICEGENCALL_CONSTRUCT,
|
---|
285 | PDMDEVICEGENCALL_DESTRUCT,
|
---|
286 | PDMDEVICEGENCALL_REQUEST,
|
---|
287 | PDMDEVICEGENCALL_END,
|
---|
288 | PDMDEVICEGENCALL_32BIT_HACK = 0x7fffffff
|
---|
289 | } PDMDEVICEGENCALL;
|
---|
290 |
|
---|
291 | /**
|
---|
292 | * Request buffer for PDMR0DeviceGenCallReqHandler / VMMR0_DO_PDM_DEVICE_GEN_CALL.
|
---|
293 | * @see PDMR0DeviceGenCallReqHandler.
|
---|
294 | */
|
---|
295 | typedef struct PDMDEVICEGENCALLREQ
|
---|
296 | {
|
---|
297 | /** The header. */
|
---|
298 | SUPVMMR0REQHDR Hdr;
|
---|
299 | /** The ring-3 device instance. */
|
---|
300 | PPDMDEVINSR3 pDevInsR3;
|
---|
301 | /** The ring-0 device handle. */
|
---|
302 | uint32_t idxR0Device;
|
---|
303 | /** The call to make. */
|
---|
304 | PDMDEVICEGENCALL enmCall;
|
---|
305 | union
|
---|
306 | {
|
---|
307 | /** PDMDEVICEGENCALL_REQUEST: */
|
---|
308 | struct
|
---|
309 | {
|
---|
310 | /** The request argument. */
|
---|
311 | uint64_t uArg;
|
---|
312 | /** The request number. */
|
---|
313 | uint32_t uReq;
|
---|
314 | } Req;
|
---|
315 | /** Size padding. */
|
---|
316 | uint64_t au64[3];
|
---|
317 | } Params;
|
---|
318 | } PDMDEVICEGENCALLREQ;
|
---|
319 | /** Pointer to a PDMR0DeviceGenCallReqHandler / VMMR0_DO_PDM_DEVICE_GEN_CALL request buffer. */
|
---|
320 | typedef PDMDEVICEGENCALLREQ *PPDMDEVICEGENCALLREQ;
|
---|
321 |
|
---|
322 | VMMR0_INT_DECL(int) PDMR0DeviceGenCallReqHandler(PGVM pGVM, PPDMDEVICEGENCALLREQ pReq, VMCPUID idCpu);
|
---|
323 |
|
---|
324 | /**
|
---|
325 | * Request buffer for PDMR0DeviceCompatSetCritSectReqHandler / VMMR0_DO_PDM_DEVICE_COMPAT_SET_CRITSECT
|
---|
326 | * @see PDMR0DeviceCompatSetCritSectReqHandler.
|
---|
327 | */
|
---|
328 | typedef struct PDMDEVICECOMPATSETCRITSECTREQ
|
---|
329 | {
|
---|
330 | /** The header. */
|
---|
331 | SUPVMMR0REQHDR Hdr;
|
---|
332 | /** The ring-3 device instance. */
|
---|
333 | PPDMDEVINSR3 pDevInsR3;
|
---|
334 | /** The ring-0 device handle. */
|
---|
335 | uint32_t idxR0Device;
|
---|
336 | /** The critical section address (ring-3). */
|
---|
337 | R3PTRTYPE(PPDMCRITSECT) pCritSectR3;
|
---|
338 | } PDMDEVICECOMPATSETCRITSECTREQ;
|
---|
339 | /** Pointer to a PDMR0DeviceGenCallReqHandler / VMMR0_DO_PDM_DEVICE_GEN_CALL request buffer. */
|
---|
340 | typedef PDMDEVICECOMPATSETCRITSECTREQ *PPDMDEVICECOMPATSETCRITSECTREQ;
|
---|
341 |
|
---|
342 | VMMR0_INT_DECL(int) PDMR0DeviceCompatSetCritSectReqHandler(PGVM pGVM, PPDMDEVICECOMPATSETCRITSECTREQ pReq);
|
---|
343 |
|
---|
344 | /** @} */
|
---|
345 |
|
---|
346 | RT_C_DECLS_END
|
---|
347 |
|
---|
348 | /** @} */
|
---|
349 |
|
---|
350 | #endif /* !VBOX_INCLUDED_vmm_pdmapi_h */
|
---|