VirtualBox

Changeset 7517 in vbox for trunk/include


Ignore:
Timestamp:
Mar 22, 2008 11:15:44 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28986
Message:

Additions/FreeBSD: initial commit

Mostly tested on FreeBSD 7.0.

Working: the additions kernel module

VBoxService (working on FreeBSD 6.2 too)
vboxvideo

Partially working: vboxmouse - 100% CPU usage and clicking does not work yet
Not tested: xclient
TODO: shared folder module is currently a stub

Installer and startup scripts

File:
1 edited

Legend:

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

    r7464 r7517  
    6767/** device name */
    6868# define VBOXGUEST_DEVICE_NAME_DOS    L"\\DosDevices\\VBoxGuest"
     69
     70#elif defined(RT_OS_FREEBSD)
     71/** The support device name. */
     72# define VBOXGUEST_DEVICE_NAME        "/dev/vboxguest"
    6973
    7074#else
     
    10151019# define VBOXGUEST_IOCTL_STRIP_SIZE(Code)       VBOXGUEST_IOCTL_CODE(_IOC_NR((Code)), 0)
    10161020
    1017 #elif 0 /* BSD style - needs some adjusting since _IORW takes a type and not a size. */
     1021#elif defined(RT_OS_FREEBSD)
    10181022# include <sys/ioccom.h>
    1019 # define VBOXGUEST_IOCTL_CODE(Function, Size)   _IORW('V', (Function) | VBOXGUEST_IOCTL_FLAG, (Size))
     1023
     1024# define VBOXGUEST_IOCTL_CODE(Function, Size)   _IOWR('V', (Function) | VBOXGUEST_IOCTL_FLAG, VBGLBIGREQ)
    10201025# define VBOXGUEST_IOCTL_CODE_FAST(Function)    _IO(  'V', (Function) | VBOXGUEST_IOCTL_FLAG)
    10211026# define VBOXGUEST_IOCTL_STRIP_SIZE(Code)       IOCBASECMD(Code)
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