summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-10 14:46:12 +1000
committerDave Airlie <airlied@linux.ie>2005-07-10 14:46:12 +1000
commitb84397d6390ef04e8080d66bf528418ab5e75dc0 (patch)
tree39c78eb64f60eee701cf31663e37370f402603d3 /drivers/char/drm/drmP.h
parent2d0f9eaff8e1d08b9707f5d24fe6b0ac95d231e3 (diff)
downloadblackbird-op-linux-b84397d6390ef04e8080d66bf528418ab5e75dc0.tar.gz
blackbird-op-linux-b84397d6390ef04e8080d66bf528418ab5e75dc0.zip
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 5df09cc8c6db..804e622436a9 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -96,6 +96,7 @@
#define DRIVER_IRQ_SHARED 0x80
#define DRIVER_IRQ_VBL 0x100
#define DRIVER_DMA_QUEUE 0x200
+#define DRIVER_FB_DMA 0x400
/***********************************************************************/
/** \name Begin the DRM... */
@@ -474,7 +475,8 @@ typedef struct drm_device_dma {
unsigned long byte_count;
enum {
_DRM_DMA_USE_AGP = 0x01,
- _DRM_DMA_USE_SG = 0x02
+ _DRM_DMA_USE_SG = 0x02,
+ _DRM_DMA_USE_FB = 0x04
} flags;
} drm_device_dma_t;
OpenPOWER on IntegriCloud