blob: 9347e29cb8de837ded1542a25cead99eef531612 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ZIRCON_SYSTEM_ULIB_ACPICA_OSFUCHSIA_H_
#define ZIRCON_SYSTEM_ULIB_ACPICA_OSFUCHSIA_H_
#include <stdio.h>
#include <acpica/acpi.h>
#define _COMPONENT ACPI_OS_SERVICES
ACPI_MODULE_NAME("oszircon")
#define LOCAL_TRACE 0
#define TRACEF(str, x...) \
do { \
printf("%s:%d: " str, __FUNCTION__, __LINE__, ##x); \
} while (0)
#define LTRACEF(x...) \
do { \
if (LOCAL_TRACE) { \
TRACEF(x); \
} \
} while (0)
// Start the task execution thread.
ACPI_STATUS AcpiTaskThreadStart();
// Terminate the task execution thread.
ACPI_STATUS AcpiTaskThreadTerminate();
// Set up IO ports.
ACPI_STATUS AcpiIoPortSetup();
#endif // ZIRCON_SYSTEM_ULIB_ACPICA_OSFUCHSIA_H_