linux/drivers/char/drm
Dave Airlie 6795c985a6 Add support for PCI MGA cards to MGA DRM.
This patch adds serveral new ioctls and a new query to get_param query to
support PCI MGA cards.

Two ioctls were added to implement interrupt based waiting.  With this change,
the client-side driver no longer needs to map the primary DMA region or the
MMIO region.  Previously, end-of-frame waiting was done by busy waiting in the
client-side driver until one of the MMIO registers (the current DMA pointer)
matched a pointer to the end of primary DMA space.  By using interrupts, the
busy waiting and the extra mappings are removed.

A third ioctl was added to bootstrap DMA.  This ioctl, which is used by the
X-server, moves a *LOT* of code from the X-server into the kernel.  This allows
the kernel to do whatever needs to be done to setup DMA buffers.  The entire
process and the locations of the buffers are hidden from user-mode.

Additionally, a get_param query was added to differentiate between G4x0 cards
and G550 cards.  A gap was left in the numbering sequence so that, if needed,
G450 cards could be distinguished from G400 cards.  According to Ville
Syrjälä, the G4x0 cards and the G550 cards handle anisotropic filtering
differently.  This seems the most compatible way to let the client-side driver
know which card it's own.  Doing this very small change now eliminates the
need to bump the DRM minor version twice.

http://marc.theaimsgroup.com/?l=dri-devel&m=106625815319773&w=2

(airlied - this may not work at this point, I think the follow on buffer
 cleanup patches will be needed)

From: Ian Romanick <idr@us.ibm.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
2005-07-10 18:20:09 +10:00
..
ati_pcigart.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
drm_agpsupport.c drm: make drm_alloc_agp take a dev arg. 2005-07-10 18:17:42 +10:00
drm_auth.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
drm_bufs.c drm: destatic exported function. 2005-07-10 17:07:23 +10:00
drm_context.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
drm_core.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_dma.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_drawable.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_drv.c drm: fix minor function header issue 2005-07-10 16:58:40 +10:00
drm_fops.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
drm_init.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_ioc32.c drm: 32/64-bit DRM ioctl compatibility patch 2005-06-23 21:29:18 +10:00
drm_ioctl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_irq.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
drm_lock.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
drm_memory_debug.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_memory.c drm: make drm_alloc_agp take a dev arg. 2005-07-10 18:17:42 +10:00
drm_memory.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_os_linux.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_pci.c drm: update support for drm pci buffers 2005-07-10 15:38:56 +10:00
drm_pciids.h drm: add new mga ids and types 2005-07-10 17:45:34 +10:00
drm_proc.c drm: add _DRM_CONSISTENT map type 2005-07-10 14:34:13 +10:00
drm_sarea.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_scatter.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_stub.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
drm_sysfs.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
drm_vm.c drm: update support for drm pci buffers 2005-07-10 15:38:56 +10:00
drm.h drm: add framebuffer maps 2005-07-10 14:46:12 +10:00
drmP.h drm: make drm_alloc_agp take a dev arg. 2005-07-10 18:17:42 +10:00
ffb_context.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ffb_drv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ffb_drv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_context.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_dma.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_drm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_drv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_drv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_lists.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_lock.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gamma_old_dma.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i810_dma.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i810_drm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i810_drv.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i810_drv.h drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i830_dma.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i830_drm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i830_drv.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i830_drv.h drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i830_irq.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
i915_dma.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i915_drm.h Add missing license texts from Tungsten Graphics. 2005-06-23 22:46:46 +10:00
i915_drv.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i915_drv.h drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
i915_ioc32.c drm: add 32/64 support for MGA/R128/i915 2005-07-07 21:51:26 +10:00
i915_irq.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
i915_mem.c Add missing license texts from Tungsten Graphics. 2005-06-23 22:46:46 +10:00
Kconfig Add support for PCI MGA cards to MGA DRM. 2005-07-10 18:20:09 +10:00
Makefile Merge head 'drm-3264' of master.kernel.org:/pub/scm/linux/kernel/git/airlied/drm-2.6 2005-07-09 09:58:47 -07:00
mga_dma.c Add support for PCI MGA cards to MGA DRM. 2005-07-10 18:20:09 +10:00
mga_drm.h Add support for PCI MGA cards to MGA DRM. 2005-07-10 18:20:09 +10:00
mga_drv.c drm: add test for AGP devices and driver override for it. 2005-07-10 17:31:26 +10:00
mga_drv.h Add support for PCI MGA cards to MGA DRM. 2005-07-10 18:20:09 +10:00
mga_ioc32.c drm: add 32/64 support for MGA/R128/i915 2005-07-07 21:51:26 +10:00
mga_irq.c Add support for PCI MGA cards to MGA DRM. 2005-07-10 18:20:09 +10:00
mga_state.c Add support for PCI MGA cards to MGA DRM. 2005-07-10 18:20:09 +10:00
mga_ucode.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mga_warp.c Add support for PCI MGA cards to MGA DRM. 2005-07-10 18:20:09 +10:00
r128_cce.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
r128_drm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
r128_drv.c drm: add 32/64 support for MGA/R128/i915 2005-07-07 21:51:26 +10:00
r128_drv.h drm: add 32/64 support for MGA/R128/i915 2005-07-07 21:51:26 +10:00
r128_ioc32.c drm: add 32/64 support for MGA/R128/i915 2005-07-07 21:51:26 +10:00
r128_irq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
r128_state.c drm: misc cleanup 2005-07-07 21:03:38 +10:00
radeon_cp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
radeon_drm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
radeon_drv.c drm: 32/64-bit DRM ioctl compatibility patch 2005-06-23 21:29:18 +10:00
radeon_drv.h drm: 32/64-bit DRM ioctl compatibility patch 2005-06-23 21:29:18 +10:00
radeon_ioc32.c drm: 32/64-bit DRM ioctl compatibility patch 2005-06-23 21:29:18 +10:00
radeon_irq.c drm: fix radeon irq properly 2005-06-26 21:05:59 +10:00
radeon_mem.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
radeon_state.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
README.drm Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sis_drm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sis_drv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sis_drv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sis_ds.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sis_ds.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sis_mm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tdfx_drv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tdfx_drv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
via_3d_reg.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_dma.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_drm.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_drv.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_drv.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_ds.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_ds.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_irq.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_map.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_mm.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_mm.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_verifier.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_verifier.h drm: Add via unichrome support 2005-06-28 22:48:56 +10:00
via_video.c drm: Add via unichrome support 2005-06-28 22:48:56 +10:00

************************************************************
* 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/                          *
************************************************************