VirtualBox

source: vbox/trunk/src/VBox/Devices/Builtins2.cpp@ 21205

Last change on this file since 21205 was 11825, checked in by vboxsync, 16 years ago

VBOX_WITH_VMI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1/* $Id $ */
2/** @file
3 * Built-in drivers & devices (part 2).
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
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 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22
23/*******************************************************************************
24* Header Files *
25*******************************************************************************/
26#define LOG_GROUP LOG_GROUP_DEV
27#include <VBox/pdm.h>
28#include <VBox/version.h>
29#include <VBox/err.h>
30
31#include <VBox/log.h>
32#include <iprt/assert.h>
33
34#include "Builtins2.h"
35
36
37/*******************************************************************************
38* Global Variables *
39*******************************************************************************/
40const void *g_apvVBoxDDDependencies2[] =
41{
42 (void *)&g_abPcBiosBinary,
43 (void *)&g_abVgaBiosBinary,
44 (void *)&g_abNetBiosBinary,
45#ifdef VBOX_WITH_VMI
46 (void *)&g_abVmiBiosBinary,
47#endif
48};
49
50
51/**
52 * Register builtin devices.
53 *
54 * @returns VBox status code.
55 * @param pCallbacks Pointer to the callback table.
56 * @param u32Version VBox version number.
57 */
58extern "C" DECLEXPORT(int) VBoxDevicesRegister(PPDMDEVREGCB pCallbacks, uint32_t u32Version)
59{
60 LogFlow(("VBoxDevicesRegister: u32Version=%#x\n", u32Version));
61 AssertReleaseMsg(u32Version == VBOX_VERSION, ("u32Version=%#x VBOX_VERSION=%#x\n", u32Version, VBOX_VERSION));
62 int rc;
63
64 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceAPIC);
65 if (RT_FAILURE(rc))
66 return rc;
67 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceIOAPIC);
68 if (RT_FAILURE(rc))
69 return rc;
70
71 return VINF_SUCCESS;
72}
73
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use