aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-10 00:46:12 -0400
committerDave Airlie <airlied@linux.ie>2005-07-10 00:46:12 -0400
commitb84397d6390ef04e8080d66bf528418ab5e75dc0 (patch)
tree39c78eb64f60eee701cf31663e37370f402603d3 /drivers/char/drm/drmP.h
parent2d0f9eaff8e1d08b9707f5d24fe6b0ac95d231e3 (diff)
drm: add framebuffer maps
The patch makes drmAddBufs/drmMapBufs can handle buffers in video memory The attached patch adds a new buffer type DRM_FB_BUFFER. It works like AGP memory but uses video memory. From: Austin Yuan <austinyuan@viatech.com.cn> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index 5df09cc8c6d..804e622436a 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -96,6 +96,7 @@
96#define DRIVER_IRQ_SHARED 0x80 96#define DRIVER_IRQ_SHARED 0x80
97#define DRIVER_IRQ_VBL 0x100 97#define DRIVER_IRQ_VBL 0x100
98#define DRIVER_DMA_QUEUE 0x200 98#define DRIVER_DMA_QUEUE 0x200
99#define DRIVER_FB_DMA 0x400
99 100
100/***********************************************************************/ 101/***********************************************************************/
101/** \name Begin the DRM... */ 102/** \name Begin the DRM... */
@@ -474,7 +475,8 @@ typedef struct drm_device_dma {
474 unsigned long byte_count; 475 unsigned long byte_count;
475 enum { 476 enum {
476 _DRM_DMA_USE_AGP = 0x01, 477 _DRM_DMA_USE_AGP = 0x01,
477 _DRM_DMA_USE_SG = 0x02 478 _DRM_DMA_USE_SG = 0x02,
479 _DRM_DMA_USE_FB = 0x04
478 } flags; 480 } flags;
479 481
480} drm_device_dma_t; 482} drm_device_dma_t;