mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-13 14:52:12 -10:00
Move the ASMC_DEBUG code out of asmc.c into a file compiled only when the option is set, gated in files.amd64 the way acpi_debug gates the ACPICA debugger sources. The module Makefile writes the define into opt_asmc.h so every translation unit sees it; the old CFLAGS.asmc.c form covered one. No functional change. MFC After: 1 Week Approved-by: ngie (co-mentor) Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D61294
32 lines
705 B
C
32 lines
705 B
C
/*
|
|
* Copyright (c) 2026 Abdelkader Boudih <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#ifndef _DEV_ASMC_ASMC_DEBUG_H_
|
|
#define _DEV_ASMC_ASMC_DEBUG_H_
|
|
|
|
/*
|
|
* Raw SMC key access and the boot-time key dump, built only with the
|
|
* ASMC_DEBUG option. Without it the calls compile away, so the core needs
|
|
* no conditionals of its own.
|
|
*/
|
|
#ifdef ASMC_DEBUG
|
|
void asmc_debug_sysctl_add(device_t dev, struct sysctl_ctx_list *ctx);
|
|
void asmc_dumpall(device_t dev);
|
|
#else
|
|
static inline void
|
|
asmc_debug_sysctl_add(device_t dev __unused,
|
|
struct sysctl_ctx_list *ctx __unused)
|
|
{
|
|
}
|
|
|
|
static inline void
|
|
asmc_dumpall(device_t dev __unused)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* _DEV_ASMC_ASMC_DEBUG_H_ */
|