3
* Main driver registration.
7
* Copyright (C) 2006-2012 Oracle Corporation
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.
19
/*******************************************************************************
21
*******************************************************************************/
22
#include "MouseImpl.h"
23
#include "KeyboardImpl.h"
24
#include "DisplayImpl.h"
26
#include "AudioSnifferInterface.h"
28
#include "UsbWebcamInterface.h"
29
#ifdef VBOX_WITH_USB_CARDREADER
30
# include "UsbCardReader.h"
32
#include "ConsoleImpl.h"
33
#ifdef VBOX_WITH_PCI_PASSTHROUGH
34
# include "PCIRawDevImpl.h"
39
#include <VBox/vmm/pdmdrv.h>
40
#include <VBox/version.h>
43
* Register the main drivers.
45
* @returns VBox status code.
46
* @param pCallbacks Pointer to the callback table.
47
* @param u32Version VBox version number.
49
extern "C" DECLEXPORT(int) VBoxDriversRegister(PCPDMDRVREGCB pCallbacks, uint32_t u32Version)
51
LogFlow(("VBoxDriversRegister: u32Version=%#x\n", u32Version));
52
AssertReleaseMsg(u32Version == VBOX_VERSION, ("u32Version=%#x VBOX_VERSION=%#x\n", u32Version, VBOX_VERSION));
54
int rc = pCallbacks->pfnRegister(pCallbacks, &Mouse::DrvReg);
58
rc = pCallbacks->pfnRegister(pCallbacks, &Keyboard::DrvReg);
62
rc = pCallbacks->pfnRegister(pCallbacks, &Display::DrvReg);
66
rc = pCallbacks->pfnRegister(pCallbacks, &VMMDev::DrvReg);
70
rc = pCallbacks->pfnRegister(pCallbacks, &AudioSniffer::DrvReg);
74
rc = pCallbacks->pfnRegister(pCallbacks, &Nvram::DrvReg);
78
rc = pCallbacks->pfnRegister(pCallbacks, &EmWebcam::DrvReg);
82
#ifdef VBOX_WITH_USB_CARDREADER
83
rc = pCallbacks->pfnRegister(pCallbacks, &UsbCardReader::DrvReg);
88
rc = pCallbacks->pfnRegister(pCallbacks, &Console::DrvStatusReg);
92
#ifdef VBOX_WITH_PCI_PASSTHROUGH
93
rc = pCallbacks->pfnRegister(pCallbacks, &PCIRawDev::DrvReg);
100
/* vi: set tabstop=4 shiftwidth=4 expandtab: */