VBoxDD.cpp revision 5f80794f0fac6c6ae43bf4d2baaef60babb2a7c7
/* $Id$ */
/** @file
* VBoxDD - Built-in drivers & devices (part 1).
*/
/*
* Copyright (C) 2006-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_DEV
#include "VBoxDD.h"
/*******************************************************************************
* Global Variables *
*******************************************************************************/
const void *g_apvVBoxDDDependencies[] =
{
NULL,
};
/**
* Register builtin devices.
*
* @returns VBox status code.
* @param pCallbacks Pointer to the callback table.
* @param u32Version VBox version number.
*/
{
AssertReleaseMsg(u32Version == VBOX_VERSION, ("u32Version=%#x VBOX_VERSION=%#x\n", u32Version, VBOX_VERSION));
int rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_SMC_NEW
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_EFI
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_E1000
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_VIRTIO
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_INIP
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
//rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceAudioVRDE);
//if (RT_FAILURE(rc))
// return rc;
#else
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_VUSB
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_EHCI_IMPL
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_ACPI
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_AHCI
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_BUSLOGIC
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_LSILOGIC
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
#endif
return VINF_SUCCESS;
}
/**
* Register builtin drivers.
*
* @returns VBox status code.
* @param pCallbacks Pointer to the callback table.
* @param u32Version VBox version number.
*/
{
AssertReleaseMsg(u32Version == VBOX_VERSION, ("u32Version=%#x VBOX_VERSION=%#x\n", u32Version, VBOX_VERSION));
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_WINDOWS) || defined(RT_OS_FREEBSD)
if (RT_FAILURE(rc))
return rc;
#endif
#if defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS)
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_UDPTUNNEL
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_VDE
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_NETSHAPER
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_PDM_AUDIO_DRIVER
# if defined(RT_OS_WINDOWS)
if (RT_FAILURE(rc))
return rc;
# endif
# if defined(RT_OS_LINUX)
if (RT_FAILURE(rc))
return rc;
# endif
# if defined(RT_OS_FREEBSD)
if (RT_FAILURE(rc))
return rc;
# endif
# if defined(RT_OS_DARWIN)
if (RT_FAILURE(rc))
return rc;
# endif
# if defined(RT_OS_SOLARIS)
if (RT_FAILURE(rc))
return rc;
# endif
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_VUSB
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_USB_VIDEO_IMPL
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#if defined(RT_OS_LINUX) || defined(VBOX_WITH_WIN_PARPORT_SUP)
if (RT_FAILURE(rc))
return rc;
#endif
#if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_WINDOWS) || defined(RT_OS_FREEBSD)
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_SCSI
if (RT_FAILURE(rc))
return rc;
# if defined(RT_OS_LINUX)
if (RT_FAILURE(rc))
return rc;
# endif
#endif
#ifdef VBOX_WITH_DRV_DISK_INTEGRITY
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
#endif
return VINF_SUCCESS;
}
/**
* Register builtin USB device.
*
* @returns VBox status code.
* @param pCallbacks Pointer to the callback table.
* @param u32Version VBox version number.
*/
{
int rc = VINF_SUCCESS;
#ifdef VBOX_WITH_USB
if (RT_FAILURE(rc))
return rc;
# ifdef VBOX_WITH_SCSI
if (RT_FAILURE(rc))
return rc;
# endif
#endif
#ifdef VBOX_WITH_VUSB
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_USB_VIDEO_IMPL
if (RT_FAILURE(rc))
return rc;
#endif
return rc;
}