summaryrefslogtreecommitdiff
path: root/shared-core/drm.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-01-16 05:40:12 +0000
committerDave Airlie <airlied@linux.ie>2005-01-16 05:40:12 +0000
commit354dd17d2505fd3b9754f6ccc960671e1f9363d9 (patch)
tree43351403eceef4946e00ae3f25e1e64121e86565 /shared-core/drm.h
parent9514ee39f7e5063383b99de580e7e3115645e886 (diff)
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: austinyuan@viatech.com.cn (fd.o bug 1668) Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'shared-core/drm.h')
-rw-r--r--shared-core/drm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index f223542e..e0b6e5e1 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -395,7 +395,8 @@ typedef struct drm_buf_desc {
enum {
_DRM_PAGE_ALIGN = 0x01, /**< Align on page boundaries for DMA */
_DRM_AGP_BUFFER = 0x02, /**< Buffer is in AGP space */
- _DRM_SG_BUFFER = 0x04 /**< Scatter/gather memory buffer */
+ _DRM_SG_BUFFER = 0x04, /**< Scatter/gather memory buffer */
+ _DRM_FB_BUFFER = 0x08 /**< Buffer is in frame buffer */
} flags;
unsigned long agp_start; /**<
* Start address of where the AGP buffers are