Builtins.cpp revision 185b845e9aa9820ace6116eef915f39e35fcd1be
/* $Id$ */
/** @file
* Built-in drivers & devices (part 1)
*/
/*
* Copyright (C) 2006-2010 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 "Builtins.h"
/*******************************************************************************
* Global Variables *
*******************************************************************************/
const void *g_apvVBoxDDDependencies[] =
{
#ifdef VBOX_WITH_EFI
&g_abEfiThunkBinary[0],
#endif
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;
#ifdef VBOX_WITH_HPET
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;
#ifdef VBOX_WITH_AUDIO_INTELHD
if (RT_FAILURE(rc))
return rc;
#endif
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_VUSB
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_EHCI
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;
#ifdef VBOX_WITH_LSILOGIC
if (RT_FAILURE(rc))
return rc;
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;
#ifndef RT_OS_L4
if (RT_FAILURE(rc))
return rc;
#endif
#if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)
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;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_VUSB
if (RT_FAILURE(rc))
return rc;
#endif
#if !defined(RT_OS_L4)
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#endif
#if defined(RT_OS_LINUX)
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
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
return rc;
}