From 5483bc5650782f036096ae5803d9853d9761ecd0 Mon Sep 17 00:00:00 2001 From: patrick Date: Thu, 9 Aug 2018 12:19:32 +0000 Subject: [PATCH] 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@ --- sys/arch/arm64/include/param.h | 5 ++++- sys/arch/armv7/include/param.h | 6 +++++- sys/arch/octeon/include/param.h | 6 +++++- 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 +#ifdef _KERNEL +#define __HAVE_FDT +#endif + #endif /* _MACHINE_PARAM_H_ */ -- 2.20.1