diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-07-10 00:46:12 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-07-10 00:46:12 -0400 |
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 { | |||
369 | enum { | 369 | enum { |
370 | _DRM_PAGE_ALIGN = 0x01, /**< Align on page boundaries for DMA */ | 370 | _DRM_PAGE_ALIGN = 0x01, /**< Align on page boundaries for DMA */ |
371 | _DRM_AGP_BUFFER = 0x02, /**< Buffer is in AGP space */ | 371 | _DRM_AGP_BUFFER = 0x02, /**< Buffer is in AGP space */ |
372 | _DRM_SG_BUFFER = 0x04 /**< Scatter/gather memory buffer */ | 372 | _DRM_SG_BUFFER = 0x04, /**< Scatter/gather memory buffer */ |
373 | _DRM_FB_BUFFER = 0x08 /**< Buffer is in frame buffer */ | ||
373 | } flags; | 374 | } flags; |
374 | unsigned long agp_start; /**< | 375 | unsigned long agp_start; /**< |
375 | * Start address of where the AGP buffers are | 376 | * Start address of where the AGP buffers are |