Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2022 17:27:08 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 207e42d04b60 - stable/13 - LinuxKPI: add virt_to_phys()
Message-ID:  <202211281727.2ASHR8UG081331@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=207e42d04b60b88574dac5060494efb443d69f4b

commit 207e42d04b60b88574dac5060494efb443d69f4b
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-28 16:34:34 +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.
    
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D37301
    
    (cherry picked from commit b5c3819c7b57d7e3aa94f1db779648bb9723c1f5)
---
 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?202211281727.2ASHR8UG081331>