]> git.proxmox.com Git - mirror_edk2.git/blame - EdkNt32Pkg/Pei/MonoStatusCode/MonoStatusCode.h
Change NT32 to new XML Schema.
[mirror_edk2.git] / EdkNt32Pkg / Pei / MonoStatusCode / MonoStatusCode.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, 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// Platform specific function Declarations. These must be implemented in a\r
29// subdirectory named PlatformName in a file named PlatformStatusCode.c.\r
30// See D845GRG\PlatformStatusCode.c for an example of a simple status code\r
31// implementation.\r
32// See Nt32\PlatformStatusCode.c for an example of a status code implementation\r
33// that relocates itself into memory.\r
34//\r
35//\r
36// This is the driver entry point and must be defined.\r
37//\r
38EFI_STATUS\r
39EFIAPI\r
40InstallMonoStatusCode (\r
41 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
42 IN EFI_PEI_SERVICES **PeiServices\r
43 )\r
44;\r
45\r
46//\r
47// This is the platform function to initialize the listeners desired by the\r
48// platform.\r
49//\r
50VOID\r
51PlatformInitializeStatusCode (\r
52 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
53 IN EFI_PEI_SERVICES **PeiServices\r
54 )\r
55;\r
56\r
57//\r
58// This is the platform function that calls all of the listeners desired by the\r
59// platform.\r
60//\r
61EFI_STATUS\r
62EFIAPI\r
63PlatformReportStatusCode (\r
64 IN EFI_PEI_SERVICES **PeiServices,\r
65 IN EFI_STATUS_CODE_TYPE CodeType,\r
66 IN EFI_STATUS_CODE_VALUE Value,\r
67 IN UINT32 Instance,\r
68 IN EFI_GUID * CallerId,\r
69 IN EFI_STATUS_CODE_DATA * Data OPTIONAL\r
70 )\r
71;\r
72\r
73//\r
74// Platform independent function Declarations\r
75//\r
76//\r
77// Initialize the status code listeners and publish the status code PPI.\r
78//\r
79VOID\r
80EFIAPI\r
81InitializeMonoStatusCode (\r
82 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
83 IN EFI_PEI_SERVICES **PeiServices\r
84 )\r
85;\r
86\r
87//\r
88// Convert a DXE status code call into a PEI status code call.\r
89//\r
90EFI_STATUS\r
91EFIAPI\r
92TranslateDxeStatusCodeToPeiStatusCode (\r
93 IN EFI_STATUS_CODE_TYPE CodeType,\r
94 IN EFI_STATUS_CODE_VALUE Value,\r
95 IN UINT32 Instance,\r
96 IN EFI_GUID * CallerId,\r
97 IN EFI_STATUS_CODE_DATA * Data OPTIONAL\r
98 )\r
99;\r
100\r
101//\r
102// Publish a HOB that contains the listener to be used by DXE.\r
103//\r
104EFI_STATUS\r
105EFIAPI\r
106InitializeDxeReportStatusCode (\r
107 IN EFI_PEI_SERVICES **PeiServices\r
108 )\r
109;\r
110\r
111#endif\r