Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2022 18:20:06 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b5c3819c7b57 - main - LinuxKPI: add virt_to_phys()
Message-ID:  <202211081820.2A8IK6gn032480@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211081820.2A8IK6gn032480>