aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-11-07 13:31:39 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-11-08 18:18:01 +0000
commitb5c3819c7b57d7e3aa94f1db779648bb9723c1f5 (patch)
tree14a969015daabfeba118097037f9aa06db4028aa
parentf2978460c7fd5d90837843cbe8edf86a2df4a922 (diff)
downloadsrc-b5c3819c7b57d7e3aa94f1db779648bb9723c1f5.tar.gz
src-b5c3819c7b57d7e3aa94f1db779648bb9723c1f5.zip
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
-rw-r--r--sys/compat/linuxkpi/common/include/asm/io.h7
1 files changed, 7 insertions, 0 deletions
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_ */