VirtualBox

Changeset 43363 in vbox for trunk/include


Ignore:
Timestamp:
Sep 20, 2012 9:56:07 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80827
Message:

Haiku Additions.

Location:
trunk/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r41972 r43363  
    66
    77/*
    8  * Copyright (C) 2006-2009 Oracle Corporation
     8 * Copyright (C) 2006-2012 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6262# define VBOXGUEST_DEVICE_NAME_DOS      L"\\DosDevices\\VBoxGuest"
    6363
     64#elif defined(RT_OS_HAIKU)
     65# define VBOXGUEST_DEVICE_NAME          "/dev/misc/vboxguest"
     66
    6467#else /* (PORTME) */
    6568# define VBOXGUEST_DEVICE_NAME          "/dev/vboxguest"
     
    175178# define VBOXGUEST_IOCTL_CODE_FAST_(Function)       _IO(  'V', (Function))
    176179# define VBOXGUEST_IOCTL_STRIP_SIZE(Code)           VBOXGUEST_IOCTL_CODE_(_IOC_NR((Code)), 0)
     180
     181#elif defined(RT_OS_HAIKU)
     182  /* No automatic buffering, size not encoded. */
     183  /** @todo do something better */
     184# define VBOXGUEST_IOCTL_CODE_(Function, Size)      (0x56420000 | (Function))
     185# define VBOXGUEST_IOCTL_CODE_FAST_(Function)       (0x56420000 | (Function))
     186# define VBOXGUEST_IOCTL_STRIP_SIZE(Code)           (Code)
    177187
    178188#elif defined(RT_OS_FREEBSD) /** @todo r=bird: Please do it like SUPDRVIOC to keep it as similar as possible. */
  • trunk/include/VBox/ostypes.h

    r43248 r43363  
    44
    55/*
    6  * Copyright (C) 2006-2011 Oracle Corporation
     6 * Copyright (C) 2006-2012 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    117117    VBOXOSTYPE_MacOS_x64        = 0xB0100,
    118118    VBOXOSTYPE_JRockitVE        = 0xC0000,
     119    VBOXOSTYPE_Haiku            = 0xD0000,
     120    VBOXOSTYPE_Haiku_x64        = 0xD0100,
    119121/** The bit number which indicates 64-bit or 32-bit. */
    120122#define VBOXOSTYPE_x64_BIT       8
  • trunk/include/iprt/assert.h

    r43043 r43363  
    505505 */
    506506#if defined(IN_RING0) \
    507  && (defined(RT_OS_DARWIN) || defined(RT_OS_SOLARIS))
     507 && (defined(RT_OS_DARWIN) || defined(RT_OS_HAIKU) || defined(RT_OS_SOLARIS))
    508508# define RTAssertDoPanic()      RTR0AssertPanicSystem()
    509509#else
  • trunk/include/iprt/thread.h

    r39836 r43363  
    44
    55/*
    6  * Copyright (C) 2006-2007 Oracle Corporation
     6 * Copyright (C) 2006-2012 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    534534    uint8_t         bReserved3;
    535535#   define RTTHREADPREEMPTSTATE_INITIALIZER { NIL_RTCPUID, 255, 0, 0, 0 }
     536#  elif defined(RT_OS_HAIKU)
     537    /** The cpu_state. Don't touch! */
     538    uint32_t        uOldCpuState;
     539#   define RTTHREADPREEMPTSTATE_INITIALIZER { NIL_RTCPUID, 0 }
    536540#  elif defined(RT_OS_SOLARIS)
    537541    /** The Old PIL. Don't touch! */
  • trunk/include/iprt/types.h

    r40946 r43363  
    44
    55/*
    6  * Copyright (C) 2006-2011 Oracle Corporation
     6 * Copyright (C) 2006-2012 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    206206#   endif
    207207#  else
    208 #   if defined(RT_OS_DARWIN) && defined(_STDBOOL_H)
     208#   if (defined(RT_OS_DARWIN) || defined(RT_OS_HAIKU)) && defined(_STDBOOL_H)
    209209#    undef bool
    210210#   endif
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