History log of /freebsd-current/sys/dev/proto/proto_busdma.c
Revision Date Author Comments
# fdafd315 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 9b15b063 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

proto: clean up empty lines in .c and .h files


# 9f011bca 03-Jul-2019 Marcel Moolenaar <marcel@FreeBSD.org>

Lock busdma operations and serialize detach against open/close

Use sx to allow M_WAITOK allocations (suggested by markj).

admbugs: 782
Reviewed by: markj


# f40c76d8 27-Jul-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Check the sync operation.


# b2ce196c 26-Jul-2015 Marcel Moolenaar <marcel@FreeBSD.org>

o make sure the boundary is a power of 2, when not zero.
o don't convert 0 to ~0 just so that we can use MIN. ~0 is not a
valid boundary. Introduce BNDRY_MIN that deals with 0 values
that mean no boundary.


# 42d3ab5d 02-Jul-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Implement unload and sync operations.


# 89abdea8 02-Jul-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Add create, destroy and load of memory descriptors.


# 90a1793c 10-Jun-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Load the allocated memory and return both the physical
address and the bus address to the application.


# cff0f135 08-Jun-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Implement mmap(2) for the busdma resource.


# 5dcca8e8 07-Jun-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Add DMA memory allocation and freeing.
Slightly rework the tag handling.


# 4f027abd 06-Jun-2015 Marcel Moolenaar <marcel@FreeBSD.org>

DMA support part 1: DMA tag create & destroy

Create a special resource (= device special file) for management
of tags and maps, as well as for mapping memory into the address
space. DMA resources are managed using the PROTO_IOC_BUSDMA ioctl.
Part 1 implements tag creation, derivation and destruction.