summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2018-08-09 12:19:33 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2018-08-09 12:19:33 +0000
commit8c436ec2613b075cd296f7213e234bd2ae6c6f2e (patch)
tree1c7db5bf203143d627170f2015ab6b83bb08cdc1 /sys/arch
parent1badf1232f3e154536bba270963bb6519bd550be (diff)
Define __HAVE_ACPI on arm64 and __HAVE_FDT on arm64, armv7 and octeon
so that we can include firmware-dependant code in generic drivers to be able to extract metadata information like MAC addresses and out-of-band interrupts from the ACPI/FDT tables. ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/include/param.h5
-rw-r--r--sys/arch/armv7/include/param.h6
-rw-r--r--sys/arch/octeon/include/param.h6
3 files changed, 14 insertions, 3 deletions
diff --git a/sys/arch/arm64/include/param.h b/sys/arch/arm64/include/param.h
index 5e25c7fde60..f6c98428dae 100644
--- a/sys/arch/arm64/include/param.h
+++ b/sys/arch/arm64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.3 2018/01/05 17:42:35 kettenis Exp $ */
+/* $OpenBSD: param.h,v 1.4 2018/08/09 12:19:32 patrick Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -78,6 +78,9 @@
#define STACKALIGNBYTES (16 - 1)
#define STACKALIGN(p) ((u_long)(p) &~ STACKALIGNBYTES)
+#define __HAVE_ACPI
+#define __HAVE_FDT
+
#endif /* _KERNEL */
#endif /* _MACHINE_PARAM_H_ */
diff --git a/sys/arch/armv7/include/param.h b/sys/arch/armv7/include/param.h
index 7ef21258ee0..4bf05a66f07 100644
--- a/sys/arch/armv7/include/param.h
+++ b/sys/arch/armv7/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.2 2016/08/20 19:42:55 kettenis Exp $ */
+/* $OpenBSD: param.h,v 1.3 2018/08/09 12:19:32 patrick Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@@ -44,4 +44,8 @@
#define MSGBUFSIZE (8 * PAGE_SIZE)
#endif
+#ifdef _KERNEL
+#define __HAVE_FDT
+#endif
+
#endif /* _MACHINE_PARAM_H_ */
diff --git a/sys/arch/octeon/include/param.h b/sys/arch/octeon/include/param.h
index e5cab7ef18b..56db57fadd1 100644
--- a/sys/arch/octeon/include/param.h
+++ b/sys/arch/octeon/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.4 2013/03/23 16:12:26 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.5 2018/08/09 12:19:32 patrick Exp $ */
/* Public Domain */
@@ -15,4 +15,8 @@
#include <mips64/param.h>
+#ifdef _KERNEL
+#define __HAVE_FDT
+#endif
+
#endif /* _MACHINE_PARAM_H_ */