VirtualBox

Changeset 18085 in vbox for trunk/src


Ignore:
Timestamp:
Mar 19, 2009 10:32:58 AM (16 years ago)
Author:
vboxsync
Message:

Solaris/DRM: bits.

Location:
trunk/src/VBox/Additions/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/DRM/vboxvideo_drm.c

    r18057 r18085  
    2424*   Header Files                                                               *
    2525*******************************************************************************/
    26 #include <sys/conf.h>
    27 #include <sys/modctl.h>
    28 #include <sys/mutex.h>
    29 #include <sys/pci.h>
    30 #include <sys/stat.h>
    31 #include <sys/ddi.h>
    32 #include <sys/ddi_intr.h>
    33 #include <sys/sunddi.h>
    34 #include <sys/open.h>
     26#undef offsetof     /* This gets redefined in drmP.h */
     27#include "include/drmP.h"
     28#include "include/drm.h"
     29
     30#undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */
    3531
    3632#include <VBox/log.h>
    3733#include <VBox/version.h>
    38 
    39 #include "include/drmP.h"
    40 #include "include/drm.h"
    41 
    42 #undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */
    4334
    4435
     
    367358
    368359
    369 static int vboxVideoSolarisLoad(drm_driver_t *pDriver, unsigned long fFlag)
     360static int vboxVideoSolarisLoad(drm_device_t *pDevice, unsigned long fFlag)
    370361{
    371362    return 0;
    372363}
    373364
    374 static int vboxVideoSolarisUnload(drm_driver_t *pDriver)
     365static int vboxVideoSolarisUnload(drm_device_t *pDevice)
    375366{
    376367    return 0;
    377368}
    378369
    379 static int vboxVideoSolarisPreClose(drm_driver_t *pDriver, drm_file_t *pFile)
    380 {
    381     return 0;
     370static void vboxVideoSolarisLastClose(drm_device_t *pDevice)
     371{
     372}
     373
     374static void vboxVideoSolarisPreClose(drm_device_t *pDevice, drm_file_t *pFile)
     375{
    382376}
    383377
     
    392386    pDriver->unload             = vboxVideoSolarisUnload;
    393387    pDriver->preclose           = vboxVideoSolarisPreClose;
    394     pDriver->lastclose          = vboxVideoSolarisUnload;
     388    pDriver->lastclose          = vboxVideoSolarisLastClose;
    395389    pDriver->device_is_agp      = drm_device_is_agp;
    396390#if 0
  • trunk/src/VBox/Additions/solaris/Makefile.kmk

    r17698 r18085  
    2929ifeq ($(KBUILD_HOST),solaris)
    3030 include $(PATH_SUB_CURRENT)/SharedFolders/Makefile.kmk
     31 include $(PATH_SUB_CURRENT)/DRM/Makefile.kmk
    3132endif
    3233
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