busdma: Add PROTECTED bus_dma_tag_create() flag.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 27 Dec 2010 08:24:03 +0000 (16:24 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 8 Jan 2011 15:15:01 +0000 (23:15 +0800)
commitc26842b6106804dc56cbcd5031662d4553b57a0c
tree5e73953c0f6c6e23ff5f215de385f91f62bee069
parent7dbe273f94637e135182a3153c43b9d96a2a67ee
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.
sys/platform/pc32/i386/busdma_machdep.c
sys/platform/pc64/x86_64/busdma_machdep.c
sys/sys/bus_dma.h