diff options
author | hselasky <hselasky@FreeBSD.org> | 2018-03-13 16:25:28 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2018-03-13 16:25:28 +0000 |
commit | 17a4631710637f295faf87df7bb6b7de6c7e01c6 (patch) | |
tree | 28824a9b38bc5c0f4950f3f7d019659821d8a177 /sys/compat | |
parent | e5824f344e4b9470402fb735ae906b6963511bff (diff) | |
download | FreeBSD-src-17a4631710637f295faf87df7bb6b7de6c7e01c6.zip FreeBSD-src-17a4631710637f295faf87df7bb6b7de6c7e01c6.tar.gz |
MFC r330391:
Implement writel_relaxed() in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com>
Sponsored by: Mellanox Technologies
Sponsored by: Limelight Networks
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/io.h | 7 |
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 1958b7a..a941240 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) |