VirtualBox

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

Solaris/DRM: bits.

File:
1 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
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