Changeset 3670 in vbox
- Timestamp:
- Jul 17, 2007 9:19:36 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22946
- Location:
- trunk/src/VBox
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/audio.c
r3666 r3670 75 75 &dsound_audio_driver, 76 76 #endif 77 #ifdef __L4ENV__77 #ifdef RT_OS_L4 78 78 &oss_audio_driver, 79 79 #endif -
trunk/src/VBox/Devices/Audio/ossaudio.c
r3539 r3670 45 45 int nfrags; 46 46 int fragsize; 47 #ifndef __L4ENV__47 #ifndef RT_OS_L4 48 48 int mmapped; 49 49 #endif … … 61 61 62 62 static struct { 63 #ifndef __L4ENV__63 #ifndef RT_OS_L4 64 64 int try_mmap; 65 65 #endif … … 70 70 int debug; 71 71 } conf = { 72 #ifndef __L4ENV__72 #ifndef RT_OS_L4 73 73 INIT_FIELD (try_mmap =) 0, 74 74 #endif … … 341 341 st_sample_t *src; 342 342 struct audio_buf_info abinfo; 343 #ifndef __L4ENV__343 #ifndef RT_OS_L4 344 344 struct count_info cntinfo; 345 345 #endif … … 353 353 bufsize = hw->samples << hw->info.shift; 354 354 355 #ifndef __L4ENV__355 #ifndef RT_OS_L4 356 356 if (oss->mmapped) { 357 357 int bytes; … … 408 408 return 0; 409 409 } 410 #ifndef __L4ENV__410 #ifndef RT_OS_L4 411 411 } 412 412 #endif … … 422 422 423 423 hw->clip (dst, src, convert_samples); 424 #ifdef __L4ENV__424 #ifdef RT_OS_L4 425 425 { 426 426 #else … … 466 466 } 467 467 468 #ifndef __L4ENV__468 #ifndef RT_OS_L4 469 469 if (oss->mmapped) { 470 470 oss->old_optr = cntinfo.ptr; … … 478 478 static void oss_fini_out (HWVoiceOut *hw) 479 479 { 480 #ifndef __L4ENV__480 #ifndef RT_OS_L4 481 481 int err; 482 482 #endif … … 490 490 491 491 if (oss->pcm_buf) { 492 #ifdef __L4ENV__492 #ifdef RT_OS_L4 493 493 qemu_free (oss->pcm_buf); 494 494 #else … … 555 555 hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift; 556 556 557 #ifndef __L4ENV__557 #ifndef RT_OS_L4 558 558 oss->mmapped = 0; 559 559 if (conf.try_mmap) { … … 599 599 #endif 600 600 601 #ifndef __L4ENV__601 #ifndef RT_OS_L4 602 602 if (!oss->mmapped) { 603 603 #endif … … 619 619 return -1; 620 620 } 621 #ifndef __L4ENV__621 #ifndef RT_OS_L4 622 622 } 623 623 #endif … … 632 632 OSSVoiceOut *oss = (OSSVoiceOut *) hw; 633 633 634 #ifdef __L4ENV__634 #ifdef RT_OS_L4 635 635 return 0; 636 636 #else … … 847 847 {"NFRAGS", AUD_OPT_INT, &conf.nfrags, 848 848 "Number of fragments", NULL, 0}, 849 #ifndef __L4ENV__849 #ifndef RT_OS_L4 850 850 {"MMAP", AUD_OPT_BOOL, &conf.try_mmap, 851 851 "Try using memory mapped access", NULL, 0}, -
trunk/src/VBox/Devices/Builtins.cpp
r3666 r3670 156 156 if (VBOX_FAILURE(rc)) 157 157 return rc; 158 #ifndef __L4ENV__158 #ifndef RT_OS_L4 159 159 rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvVmdkHDD); 160 160 if (VBOX_FAILURE(rc)) … … 190 190 return rc; 191 191 #endif 192 #ifndef __L4ENV__192 #ifndef RT_OS_L4 193 193 rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNAT); 194 194 if (VBOX_FAILURE(rc)) 195 195 return rc; 196 196 #endif 197 #if defined( __L4ENV__) || defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS)197 #if defined(RT_OS_L4) || defined(RT_OS_LINUX) || defined(RT_OS_WINDOWS) 198 198 rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostInterface); 199 199 if (VBOX_FAILURE(rc)) … … 219 219 #endif 220 220 221 #if !defined( __L4ENV__)221 #if !defined(RT_OS_L4) 222 222 rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNamedPipe); 223 223 if (VBOX_FAILURE(rc)) -
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r3666 r3670 38 38 # include <VBox/scsi.h> 39 39 40 #elif defined( __L4ENV__)40 #elif defined(RT_OS_L4) 41 41 /* Nothing special requires... yeah, right. */ 42 42 -
trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp
r3666 r3670 37 37 # define USE_MEDIA_POLLING 38 38 39 #elif defined( __L4ENV__)39 #elif defined(RT_OS_L4) 40 40 /* nothing (yet). */ 41 41 … … 353 353 } 354 354 355 #elif defined( __L4ENV__)355 #elif defined(RT_OS_L4) 356 356 /* Not really ported to L4 yet. */ 357 357 rc = VERR_INTERNAL_ERROR; … … 519 519 */ 520 520 521 #ifndef __L4ENV__/* Passthrough is not supported on L4 yet */521 #ifndef RT_OS_L4 /* Passthrough is not supported on L4 yet */ 522 522 bool fPassthrough; 523 523 rc = CFGMR3QueryBool(pCfgHandle, "Passthrough", &fPassthrough); … … 528 528 pThis->fReadOnlyConfig = false; 529 529 } 530 #endif /* ! __L4ENV__*/530 #endif /* !RT_OS_L4 */ 531 531 532 532 pThis->IMount.pfnUnmount = drvHostDvdUnmount; -
trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp
r3666 r3670 36 36 # include <dbt.h> 37 37 38 #elif defined( __L4ENV__)39 40 #else /* !RT_OS_WINDOWS nor RT_OS_LINUX nor __L4ENV__*/38 #elif defined(RT_OS_L4) 39 40 #else /* !RT_OS_WINDOWS nor RT_OS_LINUX nor RT_OS_L4 */ 41 41 # error "Unsupported Platform." 42 #endif /* !RT_OS_WINDOWS nor RT_OS_LINUX nor __L4ENV__*/42 #endif /* !RT_OS_WINDOWS nor RT_OS_LINUX nor RT_OS_L4 */ 43 43 44 44 #include <VBox/pdm.h> -
trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp
r3110 r3670 41 41 #include <iprt/asm.h> 42 42 43 #ifdef __L4__43 #ifdef RT_OS_L4 44 44 #include <stdio.h> 45 45 #include <l4/util/util.h> … … 396 396 while(!mFramebuffer) 397 397 { 398 #if __L4__398 #if RT_OS_L4 399 399 asm volatile ("nop":::"memory"); 400 400 l4_sleep(5); -
trunk/src/VBox/Frontends/VBoxBFE/HostUSBImpl.cpp
r2981 r3670 91 91 mUSBProxyService = new USBProxyServiceWin32 (this); 92 92 */ 93 #ifdef __L4__93 #ifdef RT_OS_L4 94 94 mUSBProxyService = new USBProxyServiceLinux (this); 95 95 #else -
trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.h
r2981 r3670 55 55 int setAbsoluteCoordinates(bool fAbsolute); 56 56 int setNeedsHostCursor(bool fNeedsHostCursor); 57 #ifdef __L4ENV__57 #ifdef RT_OS_L4 58 58 // So far L4Con does not support an own mouse pointer. 59 59 bool getAbsoluteCoordinates() { return false; } -
trunk/src/VBox/Frontends/VBoxBFE/USBProxyService.h
r3669 r3670 178 178 179 179 180 #if defined(RT_OS_LINUX) || defined( __L4__)180 #if defined(RT_OS_LINUX) || defined(RT_OS_L4) 181 181 #include <stdio.h> 182 182 -
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r3669 r3670 65 65 #include <errno.h> 66 66 67 #if defined(RT_OS_LINUX) || defined( __L4__)67 #if defined(RT_OS_LINUX) || defined(RT_OS_L4) 68 68 #include <fcntl.h> 69 69 #include <net/if.h> … … 72 72 #endif 73 73 74 #ifndef __L4ENV__74 #ifndef RT_OS_L4 75 75 #include <vector> 76 76 #endif … … 88 88 #endif 89 89 90 #if defined(USE_SDL) && ! defined( __L4__)90 #if defined(USE_SDL) && ! defined(RT_OS_L4) 91 91 #include "SDLConsole.h" 92 92 #include "SDLFramebuffer.h" 93 93 #endif 94 94 95 #ifdef __L4__95 #ifdef RT_OS_L4 96 96 #include "L4Console.h" 97 97 #include "L4Framebuffer.h" 98 98 #endif 99 99 100 #ifdef __L4ENV__100 #ifdef RT_OS_L4 101 101 # ifndef L4API_l4v2onv4 102 102 # include <l4/sys/ktrace.h> … … 145 145 146 146 /** flag whether keyboard/mouse events are grabbed */ 147 #ifdef __L4__147 #ifdef RT_OS_L4 148 148 /** see <l4/input/macros.h> for key definitions */ 149 149 int gHostKey; /* not used */ … … 321 321 " -[no]csam Enable or disable CSAM\n" 322 322 #endif 323 #ifdef __L4ENV__323 #ifdef RT_OS_L4 324 324 " -env <var=value> Set the given environment variable to \"value\"\n" 325 325 #endif … … 331 331 int main(int argc, char **argv) 332 332 { 333 #ifdef __L4ENV__333 #ifdef RT_OS_L4 334 334 #ifndef L4API_l4v2onv4 335 335 /* clear Fiasco kernel trace buffer */ … … 347 347 return SyntaxError("Error setting environment string %s.\n", argv[i]); 348 348 } 349 #endif /* __L4ENV__*/349 #endif /* RT_OS_L4 */ 350 350 351 351 /* … … 632 632 g_fCSAM = false; 633 633 #endif /* VBOXSDL_ADVANCED_OPTIONS */ 634 #ifdef __L4__634 #ifdef RT_OS_L4 635 635 else if (strcmp(pszArg, "-env") == 0) 636 636 ++curArg; 637 #endif /* __L4__*/637 #endif /* RT_OS_L4 */ 638 638 /* just show the help screen */ 639 639 else … … 655 655 gConsole = new SDLConsole(); 656 656 gFramebuffer = new SDLFramebuffer(); 657 #elif defined( __L4ENV__)657 #elif defined(RT_OS_L4) 658 658 gConsole = new L4Console(); 659 659 gFramebuffer = new L4Framebuffer(); … … 725 725 gConsole->updateTitlebar(); 726 726 727 #ifdef __L4__727 #ifdef RT_OS_L4 728 728 /* The L4 console provides (currently) a fixed resolution. */ 729 729 if (g_u32VRamSizeMB * _1M >= gFramebuffer->getHostXres() … … 996 996 #endif /* VBOXBFE_WITH_USB */ 997 997 998 #ifdef __L4ENV__998 #ifdef RT_OS_L4 999 999 /* L4 console cannot draw a host cursor */ 1000 1000 gMouse->setHostCursor(false); … … 1343 1343 rc = CFGMR3InsertInteger(pCfg, "VRamSize", g_u32VRamSizeMB * _1M); UPDATE_RC(); 1344 1344 1345 #ifdef __L4ENV__1345 #ifdef RT_OS_L4 1346 1346 /* XXX hard-coded */ 1347 1347 rc = CFGMR3InsertInteger(pCfg, "HeightReduction", 18); UPDATE_RC(); … … 1490 1490 #endif 1491 1491 { 1492 #if defined (RT_OS_LINUX) || defined ( __L4__)1492 #if defined (RT_OS_LINUX) || defined (RT_OS_L4) 1493 1493 /* 1494 1494 * Create/Open the TAP the device. … … 1550 1550 1551 1551 1552 #else /* !RT_OS_LINUX && ! __L4__*/1552 #else /* !RT_OS_LINUX && !RT_OS_L4 */ 1553 1553 FatalError("Name based HIF devices not implemented yet for this host platform\n"); 1554 1554 return VERR_NOT_IMPLEMENTED; … … 1604 1604 #elif defined(RT_OS_LINUX) 1605 1605 rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss"); UPDATE_RC(); 1606 #elif defined( __L4ENV__)1606 #elif defined(RT_OS_L4) 1607 1607 rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss"); UPDATE_RC(); 1608 1608 #else /* portme */ -
trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.cpp
r3584 r3670 43 43 #include "ConsoleImpl.h" 44 44 45 #ifdef __L4__45 #ifdef RT_OS_L4 46 46 #include <l4/util/util.h> /* for l4_sleep */ 47 47 #endif -
trunk/src/VBox/Main/MouseImpl.cpp
r3155 r3670 87 87 mParent = parent; 88 88 89 #ifdef __L4ENV__89 #ifdef RT_OS_L4 90 90 /* L4 console has no own mouse cursor */ 91 91 uHostCaps = VMMDEV_MOUSEHOSTCANNOTHWPOINTER;
Note:
See TracChangeset
for help on using the changeset viewer.