diff options
author | Dave Airlie <airlied@linux.ie> | 2005-01-16 05:40:12 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-01-16 05:40:12 +0000 |
commit | 354dd17d2505fd3b9754f6ccc960671e1f9363d9 (patch) | |
tree | 43351403eceef4946e00ae3f25e1e64121e86565 /linux-core/drmP.h | |
parent | 9514ee39f7e5063383b99de580e7e3115645e886 (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 'linux-core/drmP.h')
-rw-r--r-- | linux-core/drmP.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 80c6c19e..bbc7a237 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -100,11 +100,12 @@ #define DRIVER_USE_MTRR 0x4 #define DRIVER_PCI_DMA 0x8 #define DRIVER_SG 0x10 -#define DRIVER_HAVE_DMA 0x20 -#define DRIVER_HAVE_IRQ 0x40 -#define DRIVER_IRQ_SHARED 0x80 -#define DRIVER_IRQ_VBL 0x100 -#define DRIVER_DMA_QUEUE 0x200 +#define DRIVER_FB_DMA 0x20 +#define DRIVER_HAVE_DMA 0x40 +#define DRIVER_HAVE_IRQ 0x80 +#define DRIVER_IRQ_SHARED 0x100 +#define DRIVER_IRQ_VBL 0x200 +#define DRIVER_DMA_QUEUE 0x400 /*@}*/ @@ -427,7 +428,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; |