]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLibBhyve.c
2 Provide InternalAcpiGetTimerTick for the bhyve instance of the
3 Base ACPI Timer Library
5 Copyright (C) 2020, Rebecca Cran <rebecca@bsdio.com>
6 Copyright (C) 2014, Gabriel L. Somlo <somlo@cmu.edu>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <Library/IoLib.h>
12 #include <OvmfPlatforms.h>
15 Internal function to read the current tick counter of ACPI.
17 Read the current ACPI tick counter using the counter address cached
18 by this instance's constructor.
20 @return The tick counter read.
24 InternalAcpiGetTimerTick (
29 // Return the current ACPI timer value.
31 return IoRead32 (BHYVE_ACPI_TIMER_IO_ADDR
);