Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2023 20:47:46 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-main@FreeBSD.org
Subject:   git: e91f5814b8e0 - main - linuxkpi: Define `device_iommu_mapped()`
Message-ID:  <202303202047.32KKlki0083212@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell:

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

commit e91f5814b8e0b2fcf154ec6161c6f5a7d0528c18
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-02-20 20:42:38 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-03-20 20:47:35 +0000

    linuxkpi: Define `device_iommu_mapped()`
    
    For now, it always return false.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D39050
---
 sys/compat/linuxkpi/common/include/linux/device.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h
index 09a61bdd0a64..4b665e8db8d1 100644
--- a/sys/compat/linuxkpi/common/include/linux/device.h
+++ b/sys/compat/linuxkpi/common/include/linux/device.h
@@ -577,6 +577,12 @@ device_wakeup_enable(struct device *dev)
 	return (0);
 }
 
+static inline bool
+device_iommu_mapped(struct device *dev __unused)
+{
+	return (false);
+}
+
 #define	dev_pm_set_driver_flags(dev, flags) do { \
 } while (0)
 



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