]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Include/Library/ArmGenericTimerCounterLib.h
ArmPkg/ArmGic: Added GicV3 detection
[mirror_edk2.git] / ArmPkg / Include / Library / ArmGenericTimerCounterLib.h
CommitLineData
e7151252
AB
1/** @file\r
2\r
3 Copyright (c) 2011 - 2014, ARM Ltd. All rights reserved.<BR>\r
4 Copyright (c) 2014, Linaro Ltd. All rights reserved.<BR>\r
5\r
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __ARM_GENERIC_TIMER_COUNTER_LIB_H__\r
17#define __ARM_GENERIC_TIMER_COUNTER_LIB_H__\r
18\r
19VOID\r
20EFIAPI\r
21ArmGenericTimerEnableTimer (\r
22 VOID\r
23 );\r
24\r
25VOID\r
26EFIAPI\r
27ArmGenericTimerDisableTimer (\r
28 VOID\r
29 );\r
30\r
31VOID\r
32EFIAPI\r
33ArmGenericTimerSetTimerFreq (\r
34 IN UINTN FreqInHz\r
35 );\r
36\r
37UINTN\r
38EFIAPI\r
39ArmGenericTimerGetTimerFreq (\r
40 VOID\r
41 );\r
42\r
43VOID\r
44EFIAPI\r
45ArmGenericTimerSetTimerVal (\r
46 IN UINTN Value\r
47 );\r
48\r
49UINTN\r
50EFIAPI\r
51ArmGenericTimerGetTimerVal (\r
52 VOID\r
53 );\r
54\r
55UINT64\r
56EFIAPI\r
57ArmGenericTimerGetSystemCount (\r
58 VOID\r
59 );\r
60\r
61UINTN\r
62EFIAPI\r
63ArmGenericTimerGetTimerCtrlReg (\r
64 VOID\r
65 );\r
66\r
67VOID\r
68EFIAPI\r
69ArmGenericTimerSetTimerCtrlReg (\r
70 UINTN Value\r
71 );\r
72\r
73UINT64\r
74EFIAPI\r
75ArmGenericTimerGetCompareVal (\r
76 VOID\r
77 );\r
78\r
79VOID\r
80EFIAPI\r
81ArmGenericTimerSetCompareVal (\r
82 IN UINT64 Value\r
83 );\r
84\r
85#endif\r