VirtualBox

Changeset 3670 in vbox for trunk/src/VBox/Frontends/VBoxBFE


Ignore:
Timestamp:
Jul 17, 2007 9:19:36 AM (17 years ago)
Author:
vboxsync
Message:

RT_OS_L4

Location:
trunk/src/VBox/Frontends/VBoxBFE
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp

    r3110 r3670  
    4141#include <iprt/asm.h>
    4242
    43 #ifdef __L4__
     43#ifdef RT_OS_L4
    4444#include <stdio.h>
    4545#include <l4/util/util.h>
     
    396396    while(!mFramebuffer)
    397397    {
    398 #if __L4__
     398#if RT_OS_L4
    399399      asm volatile ("nop":::"memory");
    400400      l4_sleep(5);
  • trunk/src/VBox/Frontends/VBoxBFE/HostUSBImpl.cpp

    r2981 r3670  
    9191    mUSBProxyService = new USBProxyServiceWin32 (this);
    9292*/
    93 #ifdef __L4__
     93#ifdef RT_OS_L4
    9494    mUSBProxyService = new USBProxyServiceLinux (this);
    9595#else
  • trunk/src/VBox/Frontends/VBoxBFE/MouseImpl.h

    r2981 r3670  
    5555    int  setAbsoluteCoordinates(bool fAbsolute);
    5656    int  setNeedsHostCursor(bool fNeedsHostCursor);
    57 #ifdef __L4ENV__
     57#ifdef RT_OS_L4
    5858    // So far L4Con does not support an own mouse pointer.
    5959    bool getAbsoluteCoordinates() { return false; }
  • trunk/src/VBox/Frontends/VBoxBFE/USBProxyService.h

    r3669 r3670  
    178178
    179179
    180 #if defined(RT_OS_LINUX) || defined(__L4__)
     180#if defined(RT_OS_LINUX) || defined(RT_OS_L4)
    181181#include <stdio.h>
    182182
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r3669 r3670  
    6565#include <errno.h>
    6666
    67 #if defined(RT_OS_LINUX) || defined(__L4__)
     67#if defined(RT_OS_LINUX) || defined(RT_OS_L4)
    6868#include <fcntl.h>
    6969#include <net/if.h>
     
    7272#endif
    7373
    74 #ifndef __L4ENV__
     74#ifndef RT_OS_L4
    7575#include <vector>
    7676#endif
     
    8888#endif
    8989
    90 #if defined(USE_SDL) && ! defined(__L4__)
     90#if defined(USE_SDL) && ! defined(RT_OS_L4)
    9191#include "SDLConsole.h"
    9292#include "SDLFramebuffer.h"
    9393#endif
    9494
    95 #ifdef __L4__
     95#ifdef RT_OS_L4
    9696#include "L4Console.h"
    9797#include "L4Framebuffer.h"
    9898#endif
    9999
    100 #ifdef __L4ENV__
     100#ifdef RT_OS_L4
    101101# ifndef L4API_l4v2onv4
    102102#  include <l4/sys/ktrace.h>
     
    145145
    146146/** flag whether keyboard/mouse events are grabbed */
    147 #ifdef __L4__
     147#ifdef RT_OS_L4
    148148/** see <l4/input/macros.h> for key definitions */
    149149int gHostKey; /* not used */
     
    321321             "  -[no]csam          Enable or disable CSAM\n"
    322322#endif
    323 #ifdef __L4ENV__
     323#ifdef RT_OS_L4
    324324             "  -env <var=value>   Set the given environment variable to \"value\"\n"
    325325#endif
     
    331331int main(int argc, char **argv)
    332332{
    333 #ifdef __L4ENV__
     333#ifdef RT_OS_L4
    334334#ifndef L4API_l4v2onv4
    335335    /* clear Fiasco kernel trace buffer */
     
    347347                return SyntaxError("Error setting environment string %s.\n", argv[i]);
    348348        }
    349 #endif /* __L4ENV__ */
     349#endif /* RT_OS_L4 */
    350350
    351351    /*
     
    632632            g_fCSAM = false;
    633633#endif /* VBOXSDL_ADVANCED_OPTIONS */
    634 #ifdef __L4__
     634#ifdef RT_OS_L4
    635635        else if (strcmp(pszArg, "-env") == 0)
    636636            ++curArg;
    637 #endif /* __L4__ */
     637#endif /* RT_OS_L4 */
    638638        /* just show the help screen */
    639639        else
     
    655655    gConsole = new SDLConsole();
    656656    gFramebuffer = new SDLFramebuffer();
    657 #elif defined(__L4ENV__)
     657#elif defined(RT_OS_L4)
    658658    gConsole = new L4Console();
    659659    gFramebuffer = new L4Framebuffer();
     
    725725    gConsole->updateTitlebar();
    726726
    727 #ifdef __L4__
     727#ifdef RT_OS_L4
    728728    /* The L4 console provides (currently) a fixed resolution. */
    729729    if (g_u32VRamSizeMB * _1M >=   gFramebuffer->getHostXres()
     
    996996#endif /* VBOXBFE_WITH_USB */
    997997
    998 #ifdef __L4ENV__
     998#ifdef RT_OS_L4
    999999    /* L4 console cannot draw a host cursor */
    10001000    gMouse->setHostCursor(false);
     
    13431343    rc = CFGMR3InsertInteger(pCfg,  "VRamSize",       g_u32VRamSizeMB * _1M);       UPDATE_RC();
    13441344
    1345 #ifdef __L4ENV__
     1345#ifdef RT_OS_L4
    13461346    /* XXX hard-coded */
    13471347    rc = CFGMR3InsertInteger(pCfg,  "HeightReduction", 18);                         UPDATE_RC();
     
    14901490#endif
    14911491                {
    1492 #if defined (RT_OS_LINUX) || defined (__L4__)
     1492#if defined (RT_OS_LINUX) || defined (RT_OS_L4)
    14931493                    /*
    14941494                     * Create/Open the TAP the device.
     
    15501550
    15511551
    1552 #else /* !RT_OS_LINUX && !__L4__ */
     1552#else /* !RT_OS_LINUX && !RT_OS_L4 */
    15531553                    FatalError("Name based HIF devices not implemented yet for this host platform\n");
    15541554                    return VERR_NOT_IMPLEMENTED;
     
    16041604#elif defined(RT_OS_LINUX)
    16051605        rc = CFGMR3InsertString(pCfg, "AudioDriver",      "oss");                   UPDATE_RC();
    1606 #elif defined(__L4ENV__)
     1606#elif defined(RT_OS_L4)
    16071607        rc = CFGMR3InsertString(pCfg, "AudioDriver",      "oss");                   UPDATE_RC();
    16081608#else /* portme */
  • trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.cpp

    r3584 r3670  
    4343#include "ConsoleImpl.h"
    4444
    45 #ifdef __L4__
     45#ifdef RT_OS_L4
    4646#include <l4/util/util.h> /* for l4_sleep */
    4747#endif
Note: See TracChangeset for help on using the changeset viewer.

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