summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2006-10-02 05:46:42 +0300
committerGeorge Sapountzis <gsap7@yahoo.gr>2006-10-02 22:47:23 +0300
commitf3deef730d52c94ce21ada7e4ceb63aa28a8601b (patch)
treee68d16345e3700c9b173397632a0ff9214e4bd5c /shared-core
parent25760c30d4aedb370423d0bb03c014cab47b5d4f (diff)
Bug 6242: [mach64] Use private DMA buffers, part #3.
Add DRM_PCI_BUFFER_RO flag for mapping PCI DMA buffer read-only. An additional flag is needed, since PCI DMA buffers do not have an associated map.
Diffstat (limited to 'shared-core')
-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 7f90a96d..8c0c5d22 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -416,7 +416,8 @@ typedef struct drm_buf_desc {
_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_FB_BUFFER = 0x08 /**< Buffer is in frame buffer */
+ _DRM_FB_BUFFER = 0x08, /**< Buffer is in frame buffer */
+ _DRM_PCI_BUFFER_RO = 0x10 /**< Map PCI DMA buffer read-only */
} flags;
unsigned long agp_start; /**<
* Start address of where the AGP buffers are