]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Platform/Generic/MonoStatusCode/Pei/MonoStatusCode.h
clean up the un-suitable ';' location when declaring the functions. The regular is...
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Platform / Generic / MonoStatusCode / Pei / MonoStatusCode.h
CommitLineData
95d675b5 1/*++\r
2\r
3Copyright (c) 2004 - 2005, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 MonoStatusCode.h\r
15 \r
16Abstract:\r
17\r
18 Monolithic single PEIM to provide the status code functionality.\r
19 The PEIM is a blend of libraries that correspond to the different status code\r
20 listeners that a platform installs.\r
21\r
22--*/\r
23\r
24#ifndef _MONO_STATUS_CODE_H_\r
25#define _MONO_STATUS_CODE_H_\r
26\r
27//\r
28// Statements that include other files.\r
29//\r
30#include "Tiano.h"\r
31#include "Pei.h"\r
32#include "PeiLib.h"\r
33#include "EfiCommonLib.h"\r
34\r
35//\r
36// Driver Produced DXE Protocol Prototypes\r
37//\r
38#include EFI_PPI_PRODUCER (StatusCode)\r
39\r
40//\r
41// Driver Consumed DXE Protocol Prototypes\r
42//\r
43#include EFI_ARCH_PROTOCOL_CONSUMER (StatusCode)\r
44\r
45//\r
46// Driver GUID includes\r
47//\r
48#include EFI_GUID_DEFINITION (StatusCode)\r
49#include EFI_GUID_DEFINITION (StatusCodeCallerId)\r
50#include EFI_GUID_DEFINITION (GlobalVariable)\r
51\r
52extern EFI_GUID mStatusCodeRuntimeGuid;\r
53\r
54//\r
55// Platform specific function Declarations. These must be implemented in a\r
56// subdirectory named PlatformName in a file named PlatformStatusCode.c.\r
57// See D845GRG\PlatformStatusCode.c for an example of a simple status code\r
58// implementation.\r
59// See Nt32\PlatformStatusCode.c for an example of a status code implementation\r
60// that relocates itself into memory.\r
61//\r
62//\r
63// This is the driver entry point and must be defined.\r
64//\r
65EFI_STATUS\r
66EFIAPI\r
67InstallMonoStatusCode (\r
68 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
69 IN EFI_PEI_SERVICES **PeiServices\r
e00e1d46 70 );\r
95d675b5 71\r
72//\r
73// This is the platform function to initialize the listeners desired by the\r
74// platform.\r
75//\r
76VOID\r
77PlatformInitializeStatusCode (\r
78 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
79 IN EFI_PEI_SERVICES **PeiServices\r
e00e1d46 80 );\r
95d675b5 81\r
82//\r
83// This is the platform function that calls all of the listeners desired by the\r
84// platform.\r
85//\r
86EFI_STATUS\r
87EFIAPI\r
88PlatformReportStatusCode (\r
89 IN EFI_PEI_SERVICES **PeiServices,\r
90 IN EFI_STATUS_CODE_TYPE CodeType,\r
91 IN EFI_STATUS_CODE_VALUE Value,\r
92 IN UINT32 Instance,\r
93 IN EFI_GUID * CallerId,\r
94 IN EFI_STATUS_CODE_DATA * Data OPTIONAL\r
e00e1d46 95 );\r
95d675b5 96\r
97//\r
98// Platform independent function Declarations\r
99//\r
100//\r
101// Initialize the status code listeners and publish the status code PPI.\r
102//\r
103VOID\r
104EFIAPI\r
105InitializeMonoStatusCode (\r
106 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
107 IN EFI_PEI_SERVICES **PeiServices\r
e00e1d46 108 );\r
95d675b5 109\r
110//\r
111// Convert a DXE status code call into a PEI status code call.\r
112//\r
113EFI_STATUS\r
114EFIAPI\r
115TranslateDxeStatusCodeToPeiStatusCode (\r
116 IN EFI_STATUS_CODE_TYPE CodeType,\r
117 IN EFI_STATUS_CODE_VALUE Value,\r
118 IN UINT32 Instance,\r
119 IN EFI_GUID * CallerId,\r
120 IN EFI_STATUS_CODE_DATA * Data OPTIONAL\r
e00e1d46 121 );\r
95d675b5 122\r
123//\r
124// Publish a HOB that contains the listener to be used by DXE.\r
125//\r
126EFI_STATUS\r
127EFIAPI\r
128InitializeDxeReportStatusCode (\r
129 IN EFI_PEI_SERVICES **PeiServices\r
e00e1d46 130 );\r
95d675b5 131\r
132#endif\r