DragonFly BSD
DragonFly commits List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: busdma: Add PROTECTED bus_dma_tag_create() flag.


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 8 Jan 2011 07:16:25 -0800 (PST)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]