CVSROOT: /cvs Module name: src Changes by: o...@cvs.openbsd.org 2009/03/27 13:00:45
Modified files: sys/dev/pci/drm: drmP.h drm_bufs.c drm_drv.c files.drm mga_dma.c savage_bci.c Removed files: sys/dev/pci/drm: drm_dma.c Log message: Rework the dma buffer api a bit to make it smaller and to have less duplicated code. Also, switch the dma_lock to a rwlock (it never should have been a spinlock) and move it and some other accounting data into the dma structure, not the main softc. Finally, the funcitons in drm_dma are tiny, move them in with the rest of the dma_bufs api in drm_bufs and remove the file.