1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/sys/alpha/include
Scott Long 5193a34646 Implement bus_dmamem_alloc_size() and bus_dmamem_free_size() as
counterparts to bus_dmamem_alloc() and bus_dmamem_free().  This allows
the caller to specify the size of the allocation instead of it defaulting
to the max_size field of the busdma tag.

This is intended to aid in converting drivers to busdma.  Lots of
hardware cannot understand scatter/gather lists, which forces the
driver to copy the i/o buffers to a single contiguous region
before sending it to the hardware.  Without these new methods, this
would require a new busdma tag for each operation, or a complex
internal allocator/cache for each driver.

Allocations greater than PAGE_SIZE are rounded up to the next
PAGE_SIZE by contigmalloc(), so this is not suitable for multiple
static allocations that would be better served by a single
fixed-length subdivided allocation.

Reviewed by:	jake (sparc64)
2003-01-29 07:25:27 +00:00
..
pc
_inttypes.h
_limits.h
_stdint.h
_types.h
alpha_cpu.h
asm.h Protect against multiple inclusions. 2003-01-18 23:43:12 +00:00
atomic.h
bootinfo.h
bus_memio.h
bus_pio.h
bus.h Implement bus_dmamem_alloc_size() and bus_dmamem_free_size() as 2003-01-29 07:25:27 +00:00
bwx.h
chipset.h
clock.h
clockvar.h
cpu.h
cpuconf.h
cpufunc.h
critical.h
db_machdep.h
elf.h
endian.h
exec.h
float.h
floatingpoint.h
fpu.h
frame.h
ieee.h
ieeefp.h
in_cksum.h
inst.h
intr.h
intrcnt.h
ioctl_bt848.h
ioctl_meteor.h
kse.h
limits.h
md_var.h
mutex.h
pal.h
param.h
pcb.h
pcpu.h
pmap.h
proc.h
profile.h
prom.h
pte.h
ptrace.h
reg.h
reloc.h
resource.h
rpb.h
runq.h
setjmp.h
sgmap.h
sigframe.h
signal.h
smp.h
stdarg.h
swiz.h
sysarch.h
ucontext.h
varargs.h
vmparam.h