Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2023 11:56:15 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3037900f4198 - stable/13 - linuxkpi: Add `io_mapping_map_local_wc()` and `io_mapping_unmap_local()`
Message-ID:  <202302161156.31GBuFfv055863@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dumbbell (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=3037900f419825bc2193269f554ae80d2c5211c9

commit 3037900f419825bc2193269f554ae80d2c5211c9
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-01-20 17:53:49 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-02-16 11:55:17 +0000

    linuxkpi: Add `io_mapping_map_local_wc()` and `io_mapping_unmap_local()`
    
    `io_mapping_map_local_wc()` is synonymous to `io_mapping_map_atomic_wc()`.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D38156
    
    (cherry picked from commit 29d0c85c86347cd3eafe3c8974c693abf8d9ca51)
---
 sys/compat/linuxkpi/common/include/linux/io-mapping.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/io-mapping.h b/sys/compat/linuxkpi/common/include/linux/io-mapping.h
index e874c5bcadc7..b8f075491d1d 100644
--- a/sys/compat/linuxkpi/common/include/linux/io-mapping.h
+++ b/sys/compat/linuxkpi/common/include/linux/io-mapping.h
@@ -93,6 +93,18 @@ io_mapping_unmap_atomic(void *vaddr)
 {
 }
 
+static inline void *
+io_mapping_map_local_wc(struct io_mapping *mapping, unsigned long offset)
+{
+
+	return (io_mapping_map_atomic_wc(mapping, offset));
+}
+
+static inline void
+io_mapping_unmap_local(void *vaddr __unused)
+{
+}
+
 static inline void *
 io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset,
     unsigned long size)



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