aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/io.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-03-04 18:17:54 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-03-04 18:17:54 +0000
commit6c51dfb060f7815b562b1c9d89525e4c878c8d9b (patch)
treef52aaead168b38aa06a82314c7666c2e079b7df7 /sys/compat/linuxkpi/common/include/linux/io.h
parentdc354b15516d584131b71d13680a3b4470a74661 (diff)
downloadsrc-6c51dfb060f7815b562b1c9d89525e4c878c8d9b.tar.gz
src-6c51dfb060f7815b562b1c9d89525e4c878c8d9b.zip
Implement writel_relaxed() in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
Notes
Notes: svn path=/head/; revision=330391
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/io.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/io.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h
index 1958b7aef5cd..a9412403a29e 100644
--- a/sys/compat/linuxkpi/common/include/linux/io.h
+++ b/sys/compat/linuxkpi/common/include/linux/io.h
@@ -74,6 +74,13 @@ writel(uint32_t b, void *addr)
*(volatile uint32_t *)addr = b;
}
+#undef writel_relaxed
+static inline void
+writel_relaxed(uint32_t b, void *addr)
+{
+ *(volatile uint32_t *)addr = b;
+}
+
#undef writeq
static inline void
writeq(uint64_t b, void *addr)