aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/io.h
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-04-20 15:57:05 +0000
committerEd Maste <emaste@FreeBSD.org>2019-04-20 15:57:05 +0000
commitff9be73ee339da0a737b4933685b0de2e2dc2d47 (patch)
treeebb423755e37f459807587ff3903aae6cb1dc54e /sys/compat/linuxkpi/common/include/linux/io.h
parent7bd1cac6c5aa54f3d91063607512ed8783ac4690 (diff)
downloadsrc-ff9be73ee339da0a737b4933685b0de2e2dc2d47.tar.gz
src-ff9be73ee339da0a737b4933685b0de2e2dc2d47.zip
Enable ioremap for aarch64 in the LinuxKPI
Required for Mellanox drivers (e.g. on Ampere eMAG at Packet.com). PR: 237055 Submitted by: Greg V <greg@unrelenting.technology> Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D19987
Notes
Notes: svn path=/head/; revision=346445
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/io.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/io.h b/sys/compat/linuxkpi/common/include/linux/io.h
index 3c75e86b1a17..b924303ef108 100644
--- a/sys/compat/linuxkpi/common/include/linux/io.h
+++ b/sys/compat/linuxkpi/common/include/linux/io.h
@@ -350,7 +350,7 @@ _outb(u_char data, u_int port)
}
#endif
-#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__)
void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr);
#else
#define _ioremap_attr(...) NULL