]> git.proxmox.com Git - mirror_edk2.git/blame - ArmEbPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.c
Report correct MediaPresentSupported value from Nt32 SNP mode data.
[mirror_edk2.git] / ArmEbPkg / Library / DebugAgentTimerLib / DebugAgentTimerLib.c
CommitLineData
ebeffc42 1/** @file\r
2 Template for ArmEb DebugAgentLib. \r
3\r
4 For ARM we reserve FIQ for the Debug Agent Timer. We don't care about \r
5 laytency as we only really need the timer to run a few times a second \r
6 (how fast can some one type a ctrl-c?), but it works much better if\r
7 the interrupt we are using to break into the debugger is not being\r
8 used, and masked, by the system. \r
9\r
10 Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
11 \r
12 This program and the accompanying materials\r
13 are licensed and made available under the terms and conditions of the BSD License\r
14 which accompanies this distribution. The full text of the license may be found at\r
15 http://opensource.org/licenses/bsd-license.php\r
16\r
17 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
18 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
19\r
20**/\r
21\r
22#include <Base.h>\r
23\r
24#include <Library/DebugAgentTimerLib.h>\r
25\r
26#include <ArmEb/ArmEb.h>\r
27\r
28\r
29/**\r
30 Setup all the hardware needed for the debug agents timer.\r
31\r
32 This function is used to set up debug enviroment. \r
33\r
34**/\r
35VOID\r
36EFIAPI\r
37DebugAgentTimerIntialize (\r
38 VOID\r
39 )\r
40{\r
41 // Map Timer to FIQ\r
42}\r
43 \r
44 \r
45/**\r
46 Set the period for the debug agent timer. Zero means disable the timer.\r
47\r
48 @param[in] TimerPeriodMilliseconds Frequency of the debug agent timer.\r
49\r
50**/ \r
51VOID\r
52EFIAPI\r
53DebugAgentTimerSetPeriod (\r
54 IN UINT32 TimerPeriodMilliseconds\r
55 )\r
56{\r
57 if (TimerPeriodMilliseconds == 0) {\r
58 // Disable timer and Disable FIQ\r
59 return;\r
60 } \r
61\r
62 // Set timer period and unmask FIQ\r
63}\r
64 \r
65\r
66/**\r
67 Perform End Of Interrupt for the debug agent timer. This is called in the \r
68 interrupt handler after the interrupt has been processed. \r
69\r
70**/ \r
71VOID\r
72EFIAPI\r
73DebugAgentTimerEndOfInterrupt (\r
74 VOID\r
75 )\r
76{\r
77 // EOI Timer interrupt for FIQ\r
78}\r
79 \r
80