2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright 2016 Joyent, Inc.
22 AcpiOsInitialize(void)
28 * The locking functions are no-ops because the application tools that use
29 * these are all single threaded. However, due to the common code base that we
30 * pull in from Intel, these functions are also called when the software is
31 * compiled into the kernel, where it does need to do locking.
34 AcpiOsAcquireLock(ACPI_HANDLE Handle
)
40 AcpiOsReleaseLock(ACPI_HANDLE Handle
, ACPI_CPU_FLAGS Flags
)
45 AcpiOsVprintf(const char *Format
, va_list Args
)
47 vprintf(Format
, Args
);
50 void ACPI_INTERNAL_VAR_XFACE
51 AcpiOsPrintf(const char *Format
, ...)
56 AcpiOsVprintf(Format
, ap
);
61 AcpiOsWriteFile(ACPI_FILE File
, void *Buffer
, ACPI_SIZE Size
, ACPI_SIZE Count
)
63 return (fwrite(Buffer
, Size
, Count
, File
));