VirtualBox

Changeset 3670 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 17, 2007 9:19:36 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22946
Message:

RT_OS_L4

Location:
trunk/src/VBox/Devices
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/audio.c

    r3666 r3670  
    7575    &dsound_audio_driver,
    7676#endif
    77 #ifdef __L4ENV__
     77#ifdef RT_OS_L4
    7878    &oss_audio_driver,
    7979#endif
  • trunk/src/VBox/Devices/Audio/ossaudio.c

    r3539 r3670  
    4545    int nfrags;
    4646    int fragsize;
    47 #ifndef __L4ENV__
     47#ifndef RT_OS_L4
    4848    int mmapped;
    4949#endif
     
    6161
    6262static struct {
    63 #ifndef __L4ENV__
     63#ifndef RT_OS_L4
    6464    int try_mmap;
    6565#endif
     
    7070    int debug;
    7171} conf = {
    72 #ifndef __L4ENV__
     72#ifndef RT_OS_L4
    7373    INIT_FIELD (try_mmap    =) 0,
    7474#endif
     
    341341    st_sample_t *src;
    342342    struct audio_buf_info abinfo;
    343 #ifndef __L4ENV__
     343#ifndef RT_OS_L4
    344344    struct count_info cntinfo;
    345345#endif
     
    353353    bufsize = hw->samples << hw->info.shift;
    354354
    355 #ifndef __L4ENV__
     355#ifndef RT_OS_L4
    356356    if (oss->mmapped) {
    357357        int bytes;
     
    408408            return 0;
    409409        }
    410 #ifndef __L4ENV__
     410#ifndef RT_OS_L4
    411411    }
    412412#endif
     
    422422
    423423        hw->clip (dst, src, convert_samples);
    424 #ifdef __L4ENV__
     424#ifdef RT_OS_L4
    425425        {
    426426#else
     
    466466    }
    467467
    468 #ifndef __L4ENV__
     468#ifndef RT_OS_L4
    469469    if (oss->mmapped) {
    470470        oss->old_optr = cntinfo.ptr;
     
    478478static void oss_fini_out (HWVoiceOut *hw)
    479479{
    480 #ifndef __L4ENV__
     480#ifndef RT_OS_L4
    481481    int err;
    482482#endif
     
    490490
    491491    if (oss->pcm_buf) {
    492 #ifdef __L4ENV__
     492#ifdef RT_OS_L4
    493493        qemu_free (oss->pcm_buf);
    494494#else
     
    555555    hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift;
    556556
    557 #ifndef __L4ENV__
     557#ifndef RT_OS_L4
    558558    oss->mmapped = 0;
    559559    if (conf.try_mmap) {
     
    599599#endif
    600600
    601 #ifndef __L4ENV__
     601#ifndef RT_OS_L4
    602602    if (!oss->mmapped) {
    603603#endif
     
    619619            return -1;
    620620        }
    621 #ifndef __L4ENV__
     621#ifndef RT_OS_L4
    622622    }
    623623#endif
     
    632632    OSSVoiceOut *oss = (OSSVoiceOut *) hw;
    633633
    634 #ifdef __L4ENV__
     634#ifdef RT_OS_L4
    635635    return 0;
    636636#else
     
    847847    {"NFRAGS", AUD_OPT_INT, &conf.nfrags,
    848848     "Number of fragments", NULL, 0},
    849 #ifndef __L4ENV__
     849#ifndef RT_OS_L4
    850850    {"MMAP", AUD_OPT_BOOL, &conf.try_mmap,
    851851     "Try using memory mapped access", NULL, 0},
  • trunk/src/VBox/Devices/Builtins.cpp

    r3666 r3670  
    156156    if (VBOX_FAILURE(rc))
    157157        return rc;
    158 #ifndef __L4ENV__
     158#ifndef RT_OS_L4
    159159    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvVmdkHDD);
    160160    if (VBOX_FAILURE(rc))
     
    190190        return rc;
    191191#endif
    192 #ifndef __L4ENV__
     192#ifndef RT_OS_L4
    193193    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNAT);
    194194    if (VBOX_FAILURE(rc))
    195195        return rc;
    196196#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)
    198198    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostInterface);
    199199    if (VBOX_FAILURE(rc))
     
    219219#endif
    220220
    221 #if !defined(__L4ENV__)
     221#if !defined(RT_OS_L4)
    222222    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvNamedPipe);
    223223    if (VBOX_FAILURE(rc))
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r3666 r3670  
    3838# include <VBox/scsi.h>
    3939
    40 #elif defined(__L4ENV__)
     40#elif defined(RT_OS_L4)
    4141  /* Nothing special requires... yeah, right. */
    4242
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r3666 r3670  
    3737# define USE_MEDIA_POLLING
    3838
    39 #elif defined(__L4ENV__)
     39#elif defined(RT_OS_L4)
    4040/* nothing (yet). */
    4141
     
    353353    }
    354354
    355 #elif defined(__L4ENV__)
     355#elif defined(RT_OS_L4)
    356356    /* Not really ported to L4 yet. */
    357357    rc = VERR_INTERNAL_ERROR;
     
    519519         */
    520520
    521 #ifndef __L4ENV__ /* Passthrough is not supported on L4 yet */
     521#ifndef RT_OS_L4 /* Passthrough is not supported on L4 yet */
    522522        bool fPassthrough;
    523523        rc = CFGMR3QueryBool(pCfgHandle, "Passthrough", &fPassthrough);
     
    528528            pThis->fReadOnlyConfig = false;
    529529        }
    530 #endif /* !__L4ENV__ */
     530#endif /* !RT_OS_L4 */
    531531
    532532        pThis->IMount.pfnUnmount = drvHostDvdUnmount;
  • trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp

    r3666 r3670  
    3636# include <dbt.h>
    3737
    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 */
    4141# 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 */
    4343
    4444#include <VBox/pdm.h>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette