drm: add flag for mapping PCI DMA buffers read-only.
authorGeorge Sapountzis <gsap7@yahoo.gr>
Tue, 24 Oct 2006 19:03:04 +0000 (12:03 -0700)
committerairlied <airlied@linux.ie>
Thu, 7 Dec 2006 04:53:31 +0000 (15:53 +1100)
commit3417f33e762bf7d4277031a655e3ad07e73ce0be
tree255d4871a0a7affbeab8d35f5b072a70ef064cfd
parent5c2df2bfb121a77d925dba580f53da08b4020528
drm: add flag for mapping PCI DMA buffers read-only.

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.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm.h
drivers/char/drm/drmP.h
drivers/char/drm/drm_bufs.c
drivers/char/drm/drm_vm.c