Working on having a single stack for all modes. This code currently has an issue...
[mirror_edk2.git] / ArmPkg / Include / Protocol / TimerDebugSupport.h
1 /** @file
2
3 Copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
4
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef __TIMERDEBUGSUPPORTPROTOCOL_H__
16 #define __TIMERDEBUGSUPPORTPROTOCOL_H__
17
18 //
19 // Protocol GUID
20 //
21 #define TIMER_DEBUG_PROTOCOL_GUID { 0x68300561, 0x0197, 0x465d, { 0xb5, 0xa1, 0x28, 0xeb, 0xa1, 0x98, 0xdd, 0x0b } }
22
23
24
25 //
26 // Protocol interface structure
27 //
28 typedef struct _TIMER_DEBUG_SUPPORT_PROTOCOL TIMER_DEBUG_SUPPORT_PROTOCOL;
29
30
31 typedef
32 EFI_STATUS
33 (EFIAPI *TIMER_DEBUG_SUPPORT_REGISTER_PERIODIC_CALLBACK) (
34 IN TIMER_DEBUG_SUPPORT_PROTOCOL *This,
35 IN EFI_PERIODIC_CALLBACK PeriodicCallback
36 )
37 /*++
38
39 Routine Description:
40 Register a periodic callback for debug support.
41
42 Arguments:
43 This - pointer to protocol
44 PeriodicCallback - callback to be registered
45
46 Returns:
47 EFI_SUCCESS - callback registered
48
49 --*/
50 ;
51
52 struct _TIMER_DEBUG_SUPPORT_PROTOCOL {
53 TIMER_DEBUG_SUPPORT_REGISTER_PERIODIC_CALLBACK RegisterPeriodicCallback;
54 };
55
56 extern EFI_GUID gTimerDebugSupportProtocolGuid;
57
58 #endif // __TIMERDEBUGSUPPORTPROTOCOL_H__
59