]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdog.h
ArmPkg/GenericWatchdogDxe: implement RegisterHandler() method
[mirror_edk2.git] / ArmPkg / Drivers / GenericWatchdogDxe / GenericWatchdog.h
CommitLineData
9f38945f
OM
1/** @file\r
2*\r
7c609a14 3* Copyright (c) 2013-2017, ARM Limited. All rights reserved.\r
9f38945f
OM
4*\r
5* This program and the accompanying materials\r
6* are licensed and made available under the terms and conditions of the BSD\r
7* License which accompanies this distribution. The full text of the license\r
8* may be found at http://opensource.org/licenses/bsd-license.php\r
9*\r
10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12*\r
13**/\r
14#ifndef __GENERIC_WATCHDOG_H__\r
15#define __GENERIC_WATCHDOG_H__\r
16\r
17// Refresh Frame:\r
7c609a14 18#define GENERIC_WDOG_REFRESH_REG ((UINTN)FixedPcdGet64 (PcdGenericWatchdogRefreshBase) + 0x000)\r
9f38945f
OM
19\r
20// Control Frame:\r
7c609a14
A
21#define GENERIC_WDOG_CONTROL_STATUS_REG ((UINTN)FixedPcdGet64 (PcdGenericWatchdogControlBase) + 0x000)\r
22#define GENERIC_WDOG_OFFSET_REG ((UINTN)FixedPcdGet64 (PcdGenericWatchdogControlBase) + 0x008)\r
dd4cae4d
MW
23#define GENERIC_WDOG_COMPARE_VALUE_REG_LOW ((UINTN)FixedPcdGet64 (PcdGenericWatchdogControlBase) + 0x010)\r
24#define GENERIC_WDOG_COMPARE_VALUE_REG_HIGH ((UINTN)FixedPcdGet64 (PcdGenericWatchdogControlBase) + 0x014)\r
9f38945f
OM
25\r
26// Values of bit 0 of the Control/Status Register\r
27#define GENERIC_WDOG_ENABLED 1\r
28#define GENERIC_WDOG_DISABLED 0\r
29\r
30#endif // __GENERIC_WATCHDOG_H__\r