git: 29d0c85c8634 - main - linuxkpi: Add `io_mapping_map_local_wc()` and `io_mapping_unmap_local()`

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Mon, 30 Jan 2023 22:17:41 UTC
The branch main has been updated by dumbbell (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=29d0c85c86347cd3eafe3c8974c693abf8d9ca51

commit 29d0c85c86347cd3eafe3c8974c693abf8d9ca51
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-01-30 22:09:38 +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
---
 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)