]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.h
Fix VS 2005 compatibility issue
[mirror_edk2.git] / EdkModulePkg / Universal / StatusCode / Dxe / DxeStatusCode.h
Content-type: text/html ]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.h


500 - Internal Server Error

Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 242.
CommitLineData
56836fe9 1/*++\r
2\r
161c26a7 3 Copyright (c) 2006, Intel Corporation \r
4 All rights reserved. This program and the accompanying materials \r
5 are licensed and made available under the terms and conditions of the BSD License \r
6 which accompanies this distribution. The full text of the license may be found at \r
7 http://opensource.org/licenses/bsd-license.php \r
8 \r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
56836fe9 11\r
12Module Name:\r
13\r
14 DxeStatusCode.h\r
15\r
16Abstract:\r
17\r
18 Header file of EFI DXE/RT Status Code.\r
19\r
20--*/\r
21\r
22#ifndef __DXE_STATUS_CODE_H__\r
23#define __DXE_STATUS_CODE_H__\r
24\r
25//\r
26// Data hub worker definition \r
27//\r
28#define MAX_NUMBER_DATAHUB_RECORDS 1000\r
29#define DATAHUB_BYTES_PER_RECORD EFI_STATUS_CODE_DATA_MAX_SIZE\r
30#define EMPTY_RECORD_TAG 0xFF\r
31#define DATAHUB_STATUS_CODE_SIGNATURE EFI_SIGNATURE_32 ('B', 'D', 'H', 'S')\r
32\r
33//\r
34// Address type of pointer.\r
35// The point type always equal to PHYSICAL_MODE on IA32/X64/EBC architecture\r
36// Otherwise, VIRTUAL_MODE/PHYSICAL_MODE would be used on Ipf architecture, \r
37// \r
97fc032b 38typedef enum {\r
56836fe9 39 PHYSICAL_MODE,\r
40 VIRTUAL_MODE\r
97fc032b 41} PROCESSOR_MODE;\r
56836fe9 42\r
43typedef struct {\r
44 UINTN Signature;\r
45 LIST_ENTRY Node;\r
46 EFI_STATUS_CODE_TYPE CodeType;\r
47 EFI_STATUS_CODE_VALUE Value;\r
48 UINT32 Instance;\r
49 EFI_GUID CallerId;\r
50 EFI_STATUS_CODE_DATA Data;\r
51 UINT8 ExtendData[EFI_STATUS_CODE_DATA_MAX_SIZE];\r
52} DATAHUB_STATUSCODE_RECORD;\r
53\r
54\r
55//\r
56// Runtime memory status code worker definition \r
57// \r
58typedef struct {\r
59 UINT32 RecordIndex;\r
60 UINT32 NumberOfRecords;\r
61 UINT32 MaxRecordsNumber;\r
62} RUNTIME_MEMORY_STATUSCODE_HEADER;\r
63\r
64\r
65typedef struct {\r
66 //\r
67 // Report operation nest status. \r
68 // If it is set, then the report operation has nested.\r
69 // \r
70 UINT32 StatusCodeNestStatus;\r
71 //\r
72 // Runtime status code management header, the records buffer is following it.\r
73 // \r
74 RUNTIME_MEMORY_STATUSCODE_HEADER *RtMemoryStatusCodeTable[2];\r
75} DXE_STATUS_CODE_CONTROLLER;\r
76\r
77\r
78/**\r
79 \r
80 Dispatch initialization request to sub status code devices based on \r
81 customized feature flags.\r
82 \r
83**/\r
84VOID\r
85InitializationDispatcherWorker (\r
86 VOID\r
87 );\r
88\r
89\r
90/**\r
91 Initialize serial status code worker.\r
92 \r
93 @return The function always return EFI_SUCCESS\r
94\r
95**/\r
96EFI_STATUS\r
97EfiSerialStatusCodeInitializeWorker (\r
98 VOID\r
99 );\r
100\r
101\r
102/**\r
103 Convert status code value and extended data to readable ASCII string, send string to serial I/O device.\r
104 \r
105