VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLibBhyve.c@ 108793

Last change on this file since 108793 was 85718, checked in by vboxsync, 5 years ago

Devices/EFI: Merge edk-stable202005 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 677 bytes
Line 
1/** @file
2 Provide InternalAcpiGetTimerTick for the bhyve instance of the
3 Base ACPI Timer Library
4
5 Copyright (C) 2020, Rebecca Cran <[email protected]>
6 Copyright (C) 2014, Gabriel L. Somlo <[email protected]>
7
8 SPDX-License-Identifier: BSD-2-Clause-Patent
9**/
10
11#include <Library/IoLib.h>
12#include <OvmfPlatforms.h>
13
14/**
15 Internal function to read the current tick counter of ACPI.
16
17 Read the current ACPI tick counter using the counter address cached
18 by this instance's constructor.
19
20 @return The tick counter read.
21
22**/
23UINT32
24InternalAcpiGetTimerTick (
25 VOID
26 )
27{
28 //
29 // Return the current ACPI timer value.
30 //
31 return IoRead32 (BHYVE_ACPI_TIMER_IO_ADDR);
32}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette