diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-07-10 14:46:12 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-07-10 14:46:12 +1000 |
commit | b84397d6390ef04e8080d66bf528418ab5e75dc0 (patch) | |
tree | 39c78eb64f60eee701cf31663e37370f402603d3 /drivers/char/drm/drm.h | |
parent | 2d0f9eaff8e1d08b9707f5d24fe6b0ac95d231e3 (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/drm.h')
-rw-r--r-- | drivers/char/drm/drm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/drm/drm.h b/drivers/char/drm/drm.h index 50c4d981c497..3a4745f76cf0 100644 --- a/drivers/char/drm/drm.h +++ b/drivers/char/drm/drm.h @@ -369,7 +369,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 |