drm2: Handle device creation, translate dev_ops functions
authorFrançois Tigeot <ftigeot@wolfpond.org>
Tue, 30 Jul 2013 11:29:00 +0000 (13:29 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Tue, 30 Jul 2013 15:00:09 +0000 (17:00 +0200)
commita41a38d3cdbd335ebe18d10a34318dc4655bdcc5
tree5cd829356e40a8b35142efac20b91e13dbf51994
parenta417fc358b277db92c806abcfc9cd1d9fd29d716
drm2: Handle device creation, translate dev_ops functions

* drm_attach, drm_open, drm_close, drm_mmap, drm_read, drm_ioctl modified
  following the model of the existing functions in the old drm/ implementation

* poll and select don't exist on DragonFly and are replaced by kqueue

* Additional fixes from Johannes Hofmann to set ap->a_result in drm_mmap()
  and resolve crashes in drm_open() and drm_ioctl()
sys/dev/drm2/drmP.h
sys/dev/drm2/drm_drv.c
sys/dev/drm2/drm_fops.c
sys/dev/drm2/drm_vm.c