git: busdma: Add PROTECTED bus_dma_tag_create() flag.

看板DFBSD_commit作者時間15年前 (2011/01/09 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit c26842b6106804dc56cbcd5031662d4553b57a0c Author: Sepherosa Ziehau <sephe@dragonflybsd.org> Date: Mon Dec 27 16:24:03 2010 +0800 busdma: Add PROTECTED bus_dma_tag_create() flag. PROTECTED All of the functions called with the dma_tag are already protected by the caller, so busdma code need not to protect the internal data structures. Panic, if the "defered dmamap load callback" is going to happen. When used along with PRIVBZONE, ALLOCALL and ALLOCNOW, it could greatly reduce the work load of fixing all of the drivers that mal-use busdma functions. Summary of changes: sys/platform/pc32/i386/busdma_machdep.c | 10 ++++++++++ sys/platform/pc64/x86_64/busdma_machdep.c | 10 ++++++++++ sys/sys/bus_dma.h | 2 ++ 3 files changed, 22 insertions(+), 0 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c26842b6106804dc56cbcd5031662d4553b57a0c -- DragonFly BSD source repository
文章代碼(AID): #1DAAPfXS (DFBSD_commit)