Logo Search packages:      
Sourcecode: linux version File versions  Download package

drm_drv.c File Reference


Detailed Description

Generic driver template

Author:
Rickard E. (Rik) Faith <faith@valinux.com>

Gareth Hughes <gareth@valinux.com>

To use this template, you must at least define the following (samples given for the MGA driver):

 #define DRIVER_AUTHOR  "VA Linux Systems, Inc."

 #define DRIVER_NAME          "mga"
 #define DRIVER_DESC          "Matrox G200/G400"
 #define DRIVER_DATE          "20001127"

 #define drm_x          mga_##x

Definition in file drm_drv.c.

#include "drmP.h"
#include "drm_core.h"

Go to the source code of this file.

Defines

#define DRM_CORE_IOCTL_COUNT   ARRAY_SIZE( drm_ioctls )

Functions

static void drm_cleanup (struct drm_device *dev)
static void __exit drm_core_exit (void)
static int __init drm_core_init (void)
void drm_exit (struct drm_driver *driver)
drm_local_map_t * drm_getsarea (struct drm_device *dev)
int drm_init (struct drm_driver *driver)
int drm_ioctl (struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg)
int drm_lastclose (struct drm_device *dev)
static int drm_version (struct drm_device *dev, void *data, struct drm_file *file_priv)
 EXPORT_SYMBOL (drm_getsarea)
 EXPORT_SYMBOL (drm_ioctl)
 EXPORT_SYMBOL (drm_exit)
 EXPORT_SYMBOL (drm_init)
 module_exit (drm_core_exit)
 module_init (drm_core_init)

Variables

static struct drm_ioctl_desc drm_ioctls []
static struct file_operations drm_stub_fops


Generated by  Doxygen 1.6.0   Back to index