riscv: add (a dummy) acpica_machdep.h

We have reports that iwlwifi(4) works on RISC-V.  While we can turn off
full ACPI-specific files easily, intermittent code still relies on the
header files to be present.  In order to not need to completely #ifdef
everything out we want to include acpi.h from LinuxKPI and as a result
need this file.  With this the iwlwifi(4) code compiles just fine and
will do the right thing (given the functional ACPI parts are disabled/
unavailable).

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	mhorne, emaste
Differential Revision: https://reviews.freebsd.org/D54691
This commit is contained in:
Bjoern A. Zeeb
2026-01-13 20:33:27 +00:00
parent 3ea97c9de2
commit 0fa7b3bee7
+19
View File
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2026 The FreeBSD Foundation
*
* This software was developed by Björn Zeeb
* under sponsorship from the FreeBSD Foundation.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef __ACPICA_MACHDEP_H__
#define __ACPICA_MACHDEP_H__
/*
* This is a placeholder until full ACPI support for RISC-V emerges.
* With is we can include acpi.h from LinuxKPI and avoid (major) local changes
* to compile drivers otherwise fine on RISC-V.
*/
#endif /* __ACPICA_MACHDEP_H__ */