Module Name: src Committed By: riastradh Date: Wed Jan 22 14:58:47 UTC 2014
Modified Files: src/sys/external/bsd/drm2/dist/uapi/drm [riastradh-drm2]: drm.h src/sys/external/bsd/drm2/drm [riastradh-drm2]: drm_drv.c drm_vm.c Log Message: Implement mmap on a drm device by a new kludgey ioctl. There is currently no way to set up a custom choice of uvm object and uvm pager ops for mmap: struct fileops has no fo_mmap, and device nodes get to say only what paddr each offset maps to, not what uvm object to use. For now, to avoid kernel changes outside the drm2 tree, we'll use a non-standard drm ioctl that calls uvm_map. This requires source patches to userland programs, but for the most part they can simply be converted from calling mmap to drmMap, which will be adapted to use the ioctl. This is not necessarily a permanent solution. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1.2.3 -r1.1.1.1.2.4 \ src/sys/external/bsd/drm2/dist/uapi/drm/drm.h cvs rdiff -u -r1.1.2.31 -r1.1.2.32 src/sys/external/bsd/drm2/drm/drm_drv.c cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/external/bsd/drm2/drm/drm_vm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.