- Timestamp:
- May 17, 2010 10:15:48 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Builtins.cpp
r29326 r29522 83 83 return rc; 84 84 #endif 85 #ifdef VBOX_WITH_SMC86 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceSMC);87 if (RT_FAILURE(rc))88 return rc;89 #endif90 #ifdef VBOX_WITH_LPC91 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceLPC);92 if (RT_FAILURE(rc))93 return rc;94 #endif95 85 #ifdef VBOX_WITH_EFI 96 86 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceEFI); -
trunk/src/VBox/Devices/Builtins.h
r29326 r29522 80 80 extern const PDMDEVREG g_DeviceLsiLogicSAS; 81 81 #endif 82 #ifdef VBOX_WITH_SMC83 extern const PDMDEVREG g_DeviceSMC;84 #endif85 #ifdef VBOX_WITH_LPC86 extern const PDMDEVREG g_DeviceLPC;87 #endif88 82 #ifdef VBOX_WITH_EFI 89 83 extern const PDMDEVREG g_DeviceEFI; -
trunk/src/VBox/Devices/Builtins2.cpp
r29332 r29522 1 1 /* $Id $ */ 2 2 /** @file 3 * Built-in drivers & devices (part 2).3 * Built-in drivers & devices part 2. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2010 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 61 61 if (RT_FAILURE(rc)) 62 62 return rc; 63 #ifdef VBOX_WITH_SMC 64 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceSMC); 65 if (RT_FAILURE(rc)) 66 return rc; 67 #endif 68 #ifdef VBOX_WITH_LPC 69 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceLPC); 70 if (RT_FAILURE(rc)) 71 return rc; 72 #endif 63 73 64 74 return VINF_SUCCESS; -
trunk/src/VBox/Devices/Makefile.kmk
r29332 r29522 180 180 VBoxDD_DEFS += VBOX_WITH_SMC 181 181 endif 182 ifdef VBOX_WITH_LPC183 VBoxDD_DEFS += VBOX_WITH_LPC184 endif185 182 ifdef VBOX_WITH_EFI 186 183 VBoxDD_DEFS += VBOX_WITH_EFI … … 250 247 VBoxDD_LDFLAGS.l4 = -Wl,--no-undefined 251 248 249 252 250 # 253 251 # VBoxDD2 (shared object) … … 260 258 Builtins2.cpp \ 261 259 PC/DevAPIC.cpp 260 ifdef VBOX_WITH_SMC 261 VBoxDD2_DEFS += VBOX_WITH_SMC 262 VBoxDD2_SOURCES += PC/DevSMC.cpp 263 endif 264 ifdef VBOX_WITH_LPC 265 VBoxDD2_DEFS += VBOX_WITH_LPC 266 VBoxDD2_SOURCES += PC/DevLPC.cpp 267 endif 262 268 VBoxDD2_LIBS = \ 263 269 $(PATH_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \ … … 425 431 endif 426 432 427 ifdef VBOX_WITH_SMC428 DevicesR3_DEFS += VBOX_WITH_SMC429 DevicesR3_SOURCES += PC/DevSMC.cpp430 endif431 432 ifdef VBOX_WITH_LPC433 DevicesR3_DEFS += VBOX_WITH_LPC434 DevicesR3_SOURCES += PC/DevLPC.cpp435 endif436 437 433 ifdef VBOX_WITH_EFI 438 434 DevicesR3_DEFS += VBOX_WITH_EFI … … 796 792 VBoxDD2R0_SOURCES = \ 797 793 PC/DevAPIC.cpp 794 795 ifdef VBOX_WITH_SMC 796 VBoxDD2R0_DEFS += VBOX_WITH_SMC 797 VBoxDD2R0_SOURCES += PC/DevSMC.cpp 798 endif 799 798 800 if1of ($(VBOX_LDR_FMT), pe lx) 799 801 VBoxDD2R0_LIBS = $(PATH_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) -
trunk/src/VBox/Devices/PC/DevLPC.cpp
r29085 r29522 3 3 * DevLPC - LPC device emulation 4 4 */ 5 5 6 /* 6 7 * Copyright (C) 2006-2010 Oracle Corporation … … 53 54 #include <iprt/string.h> 54 55 55 #include "../Builtins .h"56 #include "../Builtins2.h" 56 57 57 58 #define RCBA_BASE 0xFED1C000 … … 314 315 "lpc", 315 316 /* szRCMod */ 316 "VBoxDD GC.gc",317 "VBoxDD2GC.gc", 317 318 /* szR0Mod */ 318 "VBoxDD R0.r0",319 "VBoxDD2R0.r0", 319 320 /* pszDescription */ 320 " 321 "Low Pin Count (LPC) Bus", 321 322 /* fFlags */ 322 323 PDM_DEVREG_FLAGS_HOST_BITS_DEFAULT | PDM_DEVREG_FLAGS_GUEST_BITS_32_64 | PDM_DEVREG_FLAGS_PAE36, -
trunk/src/VBox/Devices/PC/DevSMC.cpp
r29085 r29522 1 1 /* $Id$ */ 2 /** 3 * @file 2 /** @file 4 3 * DevSMC - SMC device emulation. 5 4 */ 5 6 6 /* 7 7 * Copyright (C) 2006-2010 Oracle Corporation … … 57 57 #include <iprt/string.h> 58 58 59 #include "../Builtins .h"59 #include "../Builtins2.h" 60 60 61 61 /* data port used by Apple SMC */ … … 438 438 "smc", 439 439 /* szRCMod */ 440 "VBoxDD GC.gc",440 "VBoxDD2GC.gc", 441 441 /* szR0Mod */ 442 "VBoxDD R0.r0",442 "VBoxDD2R0.r0", 443 443 /* pszDescription */ 444 " 444 "System Management Controller (SMC) Device", 445 445 /* fFlags */ 446 446 PDM_DEVREG_FLAGS_HOST_BITS_DEFAULT | PDM_DEVREG_FLAGS_GUEST_BITS_32_64 | PDM_DEVREG_FLAGS_PAE36,
Note:
See TracChangeset
for help on using the changeset viewer.