VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdog.h

Last change on this file was 108794, checked in by vboxsync, 3 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1/** @file
2*
3* Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>
4* Copyright (c) 2013-2017, ARM Limited. All rights reserved.
5*
6* SPDX-License-Identifier: BSD-2-Clause-Patent
7*
8* @par Reference(s):
9* - Generic Watchdog specification in Arm Base System Architecture 1.0C:
10* https://developer.arm.com/documentation/den0094/c/
11**/
12
13#ifndef GENERIC_WATCHDOG_H_
14#define GENERIC_WATCHDOG_H_
15
16// Refresh Frame:
17#define GENERIC_WDOG_REFRESH_REG ((UINTN)PcdGet64 (PcdGenericWatchdogRefreshBase) + 0x000)
18
19// Control Frame:
20#define GENERIC_WDOG_CONTROL_STATUS_REG ((UINTN)PcdGet64 (PcdGenericWatchdogControlBase) + 0x000)
21#define GENERIC_WDOG_OFFSET_REG_LOW ((UINTN)PcdGet64 (PcdGenericWatchdogControlBase) + 0x008)
22#define GENERIC_WDOG_OFFSET_REG_HIGH ((UINTN)PcdGet64 (PcdGenericWatchdogControlBase) + 0x00C)
23#define GENERIC_WDOG_COMPARE_VALUE_REG_LOW ((UINTN)PcdGet64 (PcdGenericWatchdogControlBase) + 0x010)
24#define GENERIC_WDOG_COMPARE_VALUE_REG_HIGH ((UINTN)PcdGet64 (PcdGenericWatchdogControlBase) + 0x014)
25#define GENERIC_WDOG_IID_REG ((UINTN)PcdGet64 (PcdGenericWatchdogControlBase) + 0xFCC)
26
27// Values of bit 0 of the Control/Status Register
28#define GENERIC_WDOG_ENABLED 1
29#define GENERIC_WDOG_DISABLED 0
30
31#define GENERIC_WDOG_IID_ARCH_REV_SHIFT 16
32#define GENERIC_WDOG_IID_ARCH_REV_MASK 0xF
33
34#endif // GENERIC_WATCHDOG_H_
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