linux/drivers/char/drm
Dave Airlie 22eae947bf drm: rename driver hooks more understandably
Rename the driver hooks in the DRM to something a little more understandable:
preinit         ->      load
postinit        ->      (removed)
presetup        ->      firstopen
postsetup       ->      (removed)
open_helper     ->      open
prerelease      ->      preclose
free_filp_priv  ->      postclose
pretakedown     ->      lastclose
postcleanup     ->      unload
release         ->      reclaim_buffers_locked
version         ->      (removed)

postinit and version were replaced with generic code in the Linux DRM (drivers
now set their version numbers and description in the driver structure, like on
BSD).  postsetup wasn't used at all.  Fixes the savage hooks for
initializing and tearing down mappings at the right times.  Testing involved at
least starting X, running glxgears, killing glxgears, exiting X, and repeating.

Tested on:      FreeBSD (g200, g400, r200, r128)
                Linux (r200, savage4)

From: Eric Anholt <anholt@freebsd.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
2005-11-10 22:16:34 +11:00
..
Kconfig drm: add savage driver 2005-08-07 15:43:54 +10:00
Makefile drm: add initial r300 3D support. 2005-08-16 20:43:16 +10:00
README.drm Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ati_pcigart.c [PATCH] drm fixup pci gart settings 2005-11-09 07:55:51 -08:00
drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drmP.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
drm_agpsupport.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_auth.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_bufs.c drm: fix warning on 64-bit platforms.. 2005-10-24 18:41:39 +10:00
drm_context.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
drm_core.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_dma.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_drawable.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
drm_fops.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
drm_init.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_ioctl.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
drm_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_lock.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_memory.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_memory.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_memory_debug.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_os_linux.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_pci.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_pciids.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_proc.c merge Linus head tree into my drm tree and fix up conflicts 2005-10-20 18:21:33 +10:00
drm_sarea.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_scatter.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
drm_stub.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
drm_sysfs.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
drm_vm.c merge linus head to drm-mm branch 2005-10-22 15:25:01 +10:00
ffb_context.c [PATCH] kfree cleanup: drivers/char 2005-11-07 07:54:02 -08:00
ffb_drv.c [PATCH] kfree cleanup: drivers/char 2005-11-07 07:54:02 -08:00
ffb_drv.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i810_dma.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i810_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i810_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i810_drv.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i830_dma.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i830_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i830_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i830_drv.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i830_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i915_dma.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i915_drm.h Add missing license texts from Tungsten Graphics. 2005-06-23 22:46:46 +10:00
i915_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i915_drv.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
i915_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
i915_irq.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
i915_mem.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_dma.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
mga_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
mga_drv.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
mga_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_state.c merge linus head to drm-mm branch 2005-10-22 15:24:35 +10:00
mga_ucode.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
mga_warp.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_cce.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
r128_drv.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
r128_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
r128_state.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
r300_cmdbuf.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
r300_reg.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_cp.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
radeon_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
radeon_drv.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
radeon_ioc32.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_mem.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
radeon_state.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
savage_bci.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
savage_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
savage_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
savage_drv.h drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
savage_state.c drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
sis_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
sis_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
sis_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
sis_ds.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
sis_ds.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
sis_mm.c drm: fix some lindent damage 2005-09-25 15:07:24 +10:00
tdfx_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
tdfx_drv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
via_3d_reg.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_dma.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_drm.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_drv.c drm: rename driver hooks more understandably 2005-11-10 22:16:34 +11:00
via_drv.h drm: fix all sparse warning on 32-bit x86 2005-09-30 18:37:36 +10:00
via_ds.c [PATCH] drm: via: fix sparse warnings 2005-07-27 16:25:54 -07:00
via_ds.h [PATCH] drm: via: fix sparse warnings 2005-07-27 16:25:54 -07:00
via_irq.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_map.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_mm.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_mm.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_verifier.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_verifier.h drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00
via_video.c drm: lindent the drm directory. 2005-09-25 14:28:13 +10:00

README.drm

************************************************************
* For the very latest on DRI development, please see:      *
*     http://dri.sourceforge.net/                          *
************************************************************

The Direct Rendering Manager (drm) is a device-independent kernel-level
device driver that provides support for the XFree86 Direct Rendering
Infrastructure (DRI).

The DRM supports the Direct Rendering Infrastructure (DRI) in four major
ways:

    1. The DRM provides synchronized access to the graphics hardware via
       the use of an optimized two-tiered lock.

    2. The DRM enforces the DRI security policy for access to the graphics
       hardware by only allowing authenticated X11 clients access to
       restricted regions of memory.

    3. The DRM provides a generic DMA engine, complete with multiple
       queues and the ability to detect the need for an OpenGL context
       switch.

    4. The DRM is extensible via the use of small device-specific modules
       that rely extensively on the API exported by the DRM module.


Documentation on the DRI is available from:
    http://precisioninsight.com/piinsights.html

For specific information about kernel-level support, see:

    The Direct Rendering Manager, Kernel Support for the Direct Rendering
    Infrastructure
    http://precisioninsight.com/dr/drm.html

    Hardware Locking for the Direct Rendering Infrastructure
    http://precisioninsight.com/dr/locking.html

    A Security Analysis of the Direct Rendering Infrastructure
    http://precisioninsight.com/dr/security.html

************************************************************
* For the very latest on DRI development, please see:      *
*     http://dri.sourceforge.net/                          *
************************************************************