]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Commit the first of half of changes that allow busdma to transparently
authorScott Long <scottl@FreeBSD.org>
Sat, 3 Jul 2004 18:18:36 +0000 (18:18 +0000)
committerScott Long <scottl@FreeBSD.org>
Sat, 3 Jul 2004 18:18:36 +0000 (18:18 +0000)
commitb5243429417437665b6b4e7b982513985282becf
treeb5d0c1a71b8701748b8b1032b7fa726e1ba4a577
parentcf107c1d1a3285f0ed4d5524f7d58243f64325d4
Commit the first of half of changes that allow busdma to transparently
honor the alignment and boundary constraints in the dma tag when loading
buffers.  Previously, these constraints were only honored when allocating
memory via bus_dmamem_alloc().  Now, bus_dmamap_load() will automatically
use bounce buffers when needed.

Also add a set of sysctls to monitor the global busdma stats.  These are:

hw.busdma.free_bpages
hw.busdma.reserved_bpages
hw.busdma.active_bpages
hw.busdma.total_bpages
hw.busdma.total_bounced
hw.busdma.total_deferred
sys/i386/i386/busdma_machdep.c