git: b5c3819c7b57 - main - LinuxKPI: add virt_to_phys()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Nov 2022 18:20:06 UTC
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=b5c3819c7b57d7e3aa94f1db779648bb9723c1f5 commit b5c3819c7b57d7e3aa94f1db779648bb9723c1f5 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-11-07 13:31:39 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-11-08 18:18:01 +0000 LinuxKPI: add virt_to_phys() Add virt_to_phys() as a define to vtophys(). This is used by a wireless driver for dma related work; sigh. MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D37301 --- sys/compat/linuxkpi/common/include/asm/io.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/io.h b/sys/compat/linuxkpi/common/include/asm/io.h index 49eca70a38eb..7787125f4f04 100644 --- a/sys/compat/linuxkpi/common/include/asm/io.h +++ b/sys/compat/linuxkpi/common/include/asm/io.h @@ -31,6 +31,13 @@ #ifndef _LINUXKPI_ASM_IO_H_ #define _LINUXKPI_ASM_IO_H_ +#include <sys/param.h> + +#include <vm/vm.h> +#include <vm/pmap.h> + #include <linux/io.h> +#define virt_to_phys(x) vtophys(x) + #endif /* _LINUXKPI_ASM_IO_H_ */