1 | /* $Id: VBoxDD.cpp 55259 2015-04-14 17:59:42Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxDD - Built-in drivers & devices (part 1).
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2015 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 |
|
---|
18 |
|
---|
19 | /*******************************************************************************
|
---|
20 | * Header Files *
|
---|
21 | *******************************************************************************/
|
---|
22 | #define LOG_GROUP LOG_GROUP_DEV
|
---|
23 | #include <VBox/vmm/pdm.h>
|
---|
24 | #include <VBox/version.h>
|
---|
25 | #include <VBox/err.h>
|
---|
26 | #include <VBox/usb.h>
|
---|
27 |
|
---|
28 | #include <VBox/log.h>
|
---|
29 | #include <iprt/assert.h>
|
---|
30 |
|
---|
31 | #include "VBoxDD.h"
|
---|
32 |
|
---|
33 |
|
---|
34 | /*******************************************************************************
|
---|
35 | * Global Variables *
|
---|
36 | *******************************************************************************/
|
---|
37 | const void *g_apvVBoxDDDependencies[] =
|
---|
38 | {
|
---|
39 | NULL,
|
---|
40 | };
|
---|
41 |
|
---|
42 |
|
---|
43 | /**
|
---|
44 | * Register builtin devices.
|
---|
45 | *
|
---|
46 | * @returns VBox status code.
|
---|
47 | * @param pCallbacks Pointer to the callback table.
|
---|
48 | * @param u32Version VBox version number.
|
---|
49 | */
|
---|
50 | extern "C" DECLEXPORT(int) VBoxDevicesRegister(PPDMDEVREGCB pCallbacks, uint32_t u32Version)
|
---|
51 | {
|
---|
52 | LogFlow(("VBoxDevicesRegister: u32Version=%#x\n", u32Version));
|
---|
53 | AssertReleaseMsg(u32Version == VBOX_VERSION, ("u32Version=%#x VBOX_VERSION=%#x\n", u32Version, VBOX_VERSION));
|
---|
54 | int rc;
|
---|
55 |
|
---|
56 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePCI);
|
---|
57 | if (RT_FAILURE(rc))
|
---|
58 | return rc;
|
---|
59 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePciIch9);
|
---|
60 | if (RT_FAILURE(rc))
|
---|
61 | return rc;
|
---|
62 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePcArch);
|
---|
63 | if (RT_FAILURE(rc))
|
---|
64 | return rc;
|
---|
65 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePcBios);
|
---|
66 | if (RT_FAILURE(rc))
|
---|
67 | return rc;
|
---|
68 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePS2KeyboardMouse);
|
---|
69 | if (RT_FAILURE(rc))
|
---|
70 | return rc;
|
---|
71 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePIIX3IDE);
|
---|
72 | if (RT_FAILURE(rc))
|
---|
73 | return rc;
|
---|
74 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceI8254);
|
---|
75 | if (RT_FAILURE(rc))
|
---|
76 | return rc;
|
---|
77 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceI8259);
|
---|
78 | if (RT_FAILURE(rc))
|
---|
79 | return rc;
|
---|
80 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceHPET);
|
---|
81 | if (RT_FAILURE(rc))
|
---|
82 | return rc;
|
---|
83 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceSmc);
|
---|
84 | if (RT_FAILURE(rc))
|
---|
85 | return rc;
|
---|
86 | #ifdef VBOX_WITH_EFI
|
---|
87 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceEFI);
|
---|
88 | if (RT_FAILURE(rc))
|
---|
89 | return rc;
|
---|
90 | #endif
|
---|
91 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceMC146818);
|
---|
92 | if (RT_FAILURE(rc))
|
---|
93 | return rc;
|
---|
94 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceVga);
|
---|
95 | if (RT_FAILURE(rc))
|
---|
96 | return rc;
|
---|
97 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceVMMDev);
|
---|
98 | if (RT_FAILURE(rc))
|
---|
99 | return rc;
|
---|
100 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePCNet);
|
---|
101 | if (RT_FAILURE(rc))
|
---|
102 | return rc;
|
---|
103 | #ifdef VBOX_WITH_E1000
|
---|
104 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceE1000);
|
---|
105 | if (RT_FAILURE(rc))
|
---|
106 | return rc;
|
---|
107 | #endif
|
---|
108 | #ifdef VBOX_WITH_VIRTIO
|
---|
109 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceVirtioNet);
|
---|
110 | if (RT_FAILURE(rc))
|
---|
111 | return rc;
|
---|
112 | #endif
|
---|
113 | #ifdef VBOX_WITH_INIP
|
---|
114 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceINIP);
|
---|
115 | if (RT_FAILURE(rc))
|
---|
116 | return rc;
|
---|
117 | #endif
|
---|
118 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceICHAC97);
|
---|
119 | if (RT_FAILURE(rc))
|
---|
120 | return rc;
|
---|
121 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceSB16);
|
---|
122 | if (RT_FAILURE(rc))
|
---|
123 | return rc;
|
---|
124 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceICH6_HDA);
|
---|
125 | if (RT_FAILURE(rc))
|
---|
126 | return rc;
|
---|
127 | #ifndef VBOX_WITH_PDM_AUDIO_DRIVER
|
---|
128 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceAudioSniffer);
|
---|
129 | if (RT_FAILURE(rc))
|
---|
130 | return rc;
|
---|
131 | #endif
|
---|
132 | #ifdef VBOX_WITH_VUSB
|
---|
133 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceOHCI);
|
---|
134 | if (RT_FAILURE(rc))
|
---|
135 | return rc;
|
---|
136 | #endif
|
---|
137 | #ifdef VBOX_WITH_EHCI_IMPL
|
---|
138 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceEHCI);
|
---|
139 | if (RT_FAILURE(rc))
|
---|
140 | return rc;
|
---|
141 | #endif
|
---|
142 | #ifdef VBOX_WITH_XHCI_IMPL
|
---|
143 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceXHCI);
|
---|
144 | if (RT_FAILURE(rc))
|
---|
145 | return rc;
|
---|
146 | #endif
|
---|
147 | #ifdef VBOX_ACPI
|
---|
148 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceACPI);
|
---|
149 | if (RT_FAILURE(rc))
|
---|
150 | return rc;
|
---|
151 | #endif
|
---|
152 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceDMA);
|
---|
153 | if (RT_FAILURE(rc))
|
---|
154 | return rc;
|
---|
155 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceFloppyController);
|
---|
156 | if (RT_FAILURE(rc))
|
---|
157 | return rc;
|
---|
158 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceSerialPort);
|
---|
159 | if (RT_FAILURE(rc))
|
---|
160 | return rc;
|
---|
161 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceParallelPort);
|
---|
162 | if (RT_FAILURE(rc))
|
---|
163 | return rc;
|
---|
164 | #ifdef VBOX_WITH_AHCI
|
---|
165 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceAHCI);
|
---|
166 | if (RT_FAILURE(rc))
|
---|
167 | return rc;
|
---|
168 | #endif
|
---|
169 | #ifdef VBOX_WITH_BUSLOGIC
|
---|
170 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceBusLogic);
|
---|
171 | if (RT_FAILURE(rc))
|
---|
172 | return rc;
|
---|
173 | #endif
|
---|
174 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePCIBridge);
|
---|
175 | if (RT_FAILURE(rc))
|
---|
176 | return rc;
|
---|
177 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePciIch9Bridge);
|
---|
178 | if (RT_FAILURE(rc))
|
---|
179 | return rc;
|
---|
180 | #ifdef VBOX_WITH_LSILOGIC
|
---|
181 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceLsiLogicSCSI);
|
---|
182 | if (RT_FAILURE(rc))
|
---|
183 | return rc;
|
---|
184 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceLsiLogicSAS);
|
---|
185 | if (RT_FAILURE(rc))
|
---|
186 | return rc;
|
---|
187 | #endif
|
---|
188 | #ifdef VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
189 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevicePciRaw);
|
---|
190 | if (RT_FAILURE(rc))
|
---|
191 | return rc;
|
---|
192 | #endif
|
---|
193 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceGIMDev);
|
---|
194 | if (RT_FAILURE(rc))
|
---|
195 | return rc;
|
---|
196 | #ifdef VBOX_WITH_VIRTUALKD
|
---|
197 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceVirtualKD);
|
---|
198 | if (RT_FAILURE(rc))
|
---|
199 | return rc;
|
---|
200 | #endif
|
---|
201 |
|
---|
202 | return VINF_SUCCESS;
|
---|
203 | }
|
---|
204 |
|
---|
205 |
|
---|
206 | /**
|
---|
207 | * Register builtin drivers.
|
---|
208 | *
|
---|
209 | * @returns VBox status code.
|
---|
210 | * @param pCallbacks Pointer to the callback table.
|
---|
211 | * @param u32Version VBox version number.
|
---|
212 | */
|
---|
213 | extern "C" DECLEXPORT(int) VBoxDriversRegister(PCPDMDRVREGCB pCallbacks, uint32_t u32Version)
|
---|
214 | {
|
---|
215 | LogFlow(("VBoxDriversRegister: u32Version=%#x\n", u32Version));
|
---|
216 | AssertReleaseMsg(u32Version == VBOX_VERSION, ("u32Version=%#x VBOX_VERSION=%#x\n", u32Version, VBOX_VERSION));
|
---|
217 |
|
---|
218 | int rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvMouseQueue);
|
---|
219 | if (RT_FAILURE(rc))
|
---|
220 | return rc;
|
---|
221 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvKeyboardQueue);
|
---|
222 | if (RT_FAILURE(rc))
|
---|
223 | return rc;
|
---|
224 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvBlock);
|
---|
225 | if (RT_FAILURE(rc))
|
---|
226 | return rc;
|
---|
227 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvVD);
|
---|
228 | if (RT_FAILURE(rc))
|
---|
229 | return rc;
|
---|
230 | #if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_WINDOWS) || defined(RT_OS_FREEBSD)
|
---|
231 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostDVD);
|
---|
232 | if (RT_FAILURE(rc))
|
---|
233 | return rc;
|
---|
234 | #endif
|
---|
235 | #if defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS)
|
---|
236 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostFloppy);
|
---|
237 | if (RT_FAILURE(rc))
|
---|
238 | return rc;
|
---|
239 | #endif
|
---|
240 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvMediaISO);
|
---|
241 | if (RT_FAILURE(rc))
|
---|
242 | return rc;
|
---|
243 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvRawImage);
|
---|
244 | if (RT_FAILURE(rc))
|
---|
245 | return rc;
|
---|
246 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNAT);
|
---|
247 | if (RT_FAILURE(rc))
|
---|
248 | return rc;
|
---|
249 | #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)
|
---|
250 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostInterface);
|
---|
251 | if (RT_FAILURE(rc))
|
---|
252 | return rc;
|
---|
253 | #endif
|
---|
254 | #ifdef VBOX_WITH_UDPTUNNEL
|
---|
255 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvUDPTunnel);
|
---|
256 | if (RT_FAILURE(rc))
|
---|
257 | return rc;
|
---|
258 | #endif
|
---|
259 | #ifdef VBOX_WITH_VDE
|
---|
260 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvVDE);
|
---|
261 | if (RT_FAILURE(rc))
|
---|
262 | return rc;
|
---|
263 | #endif
|
---|
264 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvIntNet);
|
---|
265 | if (RT_FAILURE(rc))
|
---|
266 | return rc;
|
---|
267 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvDedicatedNic);
|
---|
268 | if (RT_FAILURE(rc))
|
---|
269 | return rc;
|
---|
270 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNetSniffer);
|
---|
271 | if (RT_FAILURE(rc))
|
---|
272 | return rc;
|
---|
273 | #ifdef VBOX_WITH_NETSHAPER
|
---|
274 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNetShaper);
|
---|
275 | if (RT_FAILURE(rc))
|
---|
276 | return rc;
|
---|
277 | #endif
|
---|
278 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvAUDIO);
|
---|
279 | if (RT_FAILURE(rc))
|
---|
280 | return rc;
|
---|
281 | #ifdef VBOX_WITH_PDM_AUDIO_DRIVER
|
---|
282 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostNullAudio);
|
---|
283 | if (RT_FAILURE(rc))
|
---|
284 | return rc;
|
---|
285 | # if defined(RT_OS_WINDOWS)
|
---|
286 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostDSound);
|
---|
287 | if (RT_FAILURE(rc))
|
---|
288 | return rc;
|
---|
289 | # endif
|
---|
290 | # if defined(RT_OS_LINUX)
|
---|
291 | # ifdef VBOX_WITH_PULSE
|
---|
292 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostPulseAudio);
|
---|
293 | if (RT_FAILURE(rc))
|
---|
294 | return rc;
|
---|
295 | # endif
|
---|
296 | # ifdef VBOX_WITH_ALSA
|
---|
297 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostALSAAudio);
|
---|
298 | if (RT_FAILURE(rc))
|
---|
299 | return rc;
|
---|
300 | # endif
|
---|
301 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostOSSAudio);
|
---|
302 | if (RT_FAILURE(rc))
|
---|
303 | return rc;
|
---|
304 | # endif
|
---|
305 | # if defined(RT_OS_FREEBSD)
|
---|
306 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostOSSAudio);
|
---|
307 | if (RT_FAILURE(rc))
|
---|
308 | return rc;
|
---|
309 | # endif
|
---|
310 | # if defined(RT_OS_DARWIN)
|
---|
311 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostCoreAudio);
|
---|
312 | if (RT_FAILURE(rc))
|
---|
313 | return rc;
|
---|
314 | # endif
|
---|
315 | # if defined(RT_OS_SOLARIS)
|
---|
316 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostOSSAudio);
|
---|
317 | if (RT_FAILURE(rc))
|
---|
318 | return rc;
|
---|
319 | # endif
|
---|
320 | #endif
|
---|
321 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvACPI);
|
---|
322 | if (RT_FAILURE(rc))
|
---|
323 | return rc;
|
---|
324 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvAcpiCpu);
|
---|
325 | if (RT_FAILURE(rc))
|
---|
326 | return rc;
|
---|
327 | #ifdef VBOX_WITH_VUSB
|
---|
328 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvVUSBRootHub);
|
---|
329 | if (RT_FAILURE(rc))
|
---|
330 | return rc;
|
---|
331 | #endif
|
---|
332 | #ifdef VBOX_WITH_USB_VIDEO_IMPL
|
---|
333 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostWebcam);
|
---|
334 | if (RT_FAILURE(rc))
|
---|
335 | return rc;
|
---|
336 | #endif
|
---|
337 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNamedPipe);
|
---|
338 | if (RT_FAILURE(rc))
|
---|
339 | return rc;
|
---|
340 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvTCP);
|
---|
341 | if (RT_FAILURE(rc))
|
---|
342 | return rc;
|
---|
343 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvRawFile);
|
---|
344 | if (RT_FAILURE(rc))
|
---|
345 | return rc;
|
---|
346 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvChar);
|
---|
347 | if (RT_FAILURE(rc))
|
---|
348 | return rc;
|
---|
349 | #if defined(RT_OS_LINUX) || defined(VBOX_WITH_WIN_PARPORT_SUP)
|
---|
350 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostParallel);
|
---|
351 | if (RT_FAILURE(rc))
|
---|
352 | return rc;
|
---|
353 | #endif
|
---|
354 | #if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_WINDOWS) || defined(RT_OS_FREEBSD)
|
---|
355 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostSerial);
|
---|
356 | if (RT_FAILURE(rc))
|
---|
357 | return rc;
|
---|
358 | #endif
|
---|
359 | #ifdef VBOX_WITH_SCSI
|
---|
360 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvSCSI);
|
---|
361 | if (RT_FAILURE(rc))
|
---|
362 | return rc;
|
---|
363 | # if defined(RT_OS_LINUX)
|
---|
364 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvSCSIHost);
|
---|
365 | if (RT_FAILURE(rc))
|
---|
366 | return rc;
|
---|
367 | # endif
|
---|
368 | #endif
|
---|
369 | #ifdef VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
370 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvDiskIntegrity);
|
---|
371 | if (RT_FAILURE(rc))
|
---|
372 | return rc;
|
---|
373 | #endif
|
---|
374 | #ifdef VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
375 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvPciRaw);
|
---|
376 | if (RT_FAILURE(rc))
|
---|
377 | return rc;
|
---|
378 | #endif
|
---|
379 |
|
---|
380 | return VINF_SUCCESS;
|
---|
381 | }
|
---|
382 |
|
---|
383 |
|
---|
384 | /**
|
---|
385 | * Register builtin USB device.
|
---|
386 | *
|
---|
387 | * @returns VBox status code.
|
---|
388 | * @param pCallbacks Pointer to the callback table.
|
---|
389 | * @param u32Version VBox version number.
|
---|
390 | */
|
---|
391 | extern "C" DECLEXPORT(int) VBoxUsbRegister(PCPDMUSBREGCB pCallbacks, uint32_t u32Version)
|
---|
392 | {
|
---|
393 | int rc = VINF_SUCCESS;
|
---|
394 |
|
---|
395 | #ifdef VBOX_WITH_USB
|
---|
396 | rc = pCallbacks->pfnRegister(pCallbacks, &g_UsbDevProxy);
|
---|
397 | if (RT_FAILURE(rc))
|
---|
398 | return rc;
|
---|
399 | # ifdef VBOX_WITH_SCSI
|
---|
400 | rc = pCallbacks->pfnRegister(pCallbacks, &g_UsbMsd);
|
---|
401 | if (RT_FAILURE(rc))
|
---|
402 | return rc;
|
---|
403 | # endif
|
---|
404 | #endif
|
---|
405 | #ifdef VBOX_WITH_VUSB
|
---|
406 | rc = pCallbacks->pfnRegister(pCallbacks, &g_UsbHidKbd);
|
---|
407 | if (RT_FAILURE(rc))
|
---|
408 | return rc;
|
---|
409 | rc = pCallbacks->pfnRegister(pCallbacks, &g_UsbHidMou);
|
---|
410 | if (RT_FAILURE(rc))
|
---|
411 | return rc;
|
---|
412 | #endif
|
---|
413 | #ifdef VBOX_WITH_USB_VIDEO_IMPL
|
---|
414 | rc = pCallbacks->pfnRegister(pCallbacks, &g_DevWebcam);
|
---|
415 | if (RT_FAILURE(rc))
|
---|
416 | return rc;
|
---|
417 | #endif
|
---|
418 |
|
---|
419 | return rc;
|
---|
420 | }
|
---|