Builtins.cpp revision 58dbb1ccf94a9a7661acd2e9d7705f42011d98b3
/* $Id$ */
/** @file
* Built-in drivers & devices (part 1)
*/
/*
* Copyright (C) 2006-2008 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_DEV
#include "Builtins.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;
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_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_USB
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 (VBOX_FAILURE(rc))
return rc;
#endif
if (VBOX_FAILURE(rc))
return rc;
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 (RT_FAILURE(rc))
return rc;
#if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) || defined(RT_OS_WINDOWS)
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;
#ifdef VBOX_WITH_ISCSI
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#endif
#ifndef RT_OS_L4
if (RT_FAILURE(rc))
return rc;
#endif
#if defined(RT_OS_L4) || defined(RT_OS_LINUX) || defined(RT_OS_OS2) || (defined(RT_OS_SOLARIS) && !defined(RT_OS_SOLARIS_10)) || 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 (RT_FAILURE(rc))
return rc;
#ifdef VBOX_WITH_USB
if (RT_FAILURE(rc))
return rc;
#endif
#if !defined(RT_OS_L4)
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 (RT_FAILURE(rc))
return rc;
#endif
#if defined(VBOX_WITH_PDM_ASYNC_COMPLETION)
if (RT_FAILURE(rc))
return rc;
if (RT_FAILURE(rc))
return rc;
#endif
#ifdef VBOX_WITH_SCSI
if (VBOX_FAILURE(rc))
return rc;
#if defined(RT_OS_LINUX)
if (VBOX_FAILURE(rc))
return rc;
#endif
#endif
return VINF_SUCCESS;
}
#ifdef VBOX_WITH_USB
/**
* Register builtin USB device.
*
* @returns VBox status code.
* @param pCallbacks Pointer to the callback table.
* @param u32Version VBox version number.
*/
{
if (RT_FAILURE(rc))
return rc;
return VINF_SUCCESS;
}
#endif