]> git.proxmox.com Git - mirror_edk2.git/blame - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/EventLogInfo.h
ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / EventLogInfo.h
CommitLineData
a1d4bfcc 1/** @file\r
5d73d92f 2 Module to clarify system event log of smbios structure.\r
3\r
a1d4bfcc 4 Copyright (c) 2005-2011, Intel Corporation. All rights reserved. <BR>\r
5d73d92f 5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
a1d4bfcc 15#ifndef _SMBIOS_EVENT_LOG_INFO_H_\r
16#define _SMBIOS_EVENT_LOG_INFO_H_\r
5d73d92f 17\r
18#define END_OF_LOG 0xFF\r
19\r
20#pragma pack(1)\r
21\r
22typedef struct {\r
23 UINT8 Type;\r
24 UINT8 Length;\r
25 UINT8 Year;\r
26 UINT8 Month;\r
27 UINT8 Day;\r
28 UINT8 Hour;\r
29 UINT8 Minute;\r
30 UINT8 Second;\r
31 UINT8 LogVariableData[1];\r
32} LOG_RECORD_FORMAT;\r
33\r
34typedef struct {\r
35 UINT8 OEMReserved[5];\r
a1d4bfcc 36 UINT8 Metw; // Multiple Event Time Window\r
37 UINT8 Meci; // Multiple Event Count Increment\r
5d73d92f 38 UINT8 CMOSAddress; // Pre-boot Event Log Reset - CMOS Address\r
39 UINT8 CMOSBitIndex; // Pre-boot Event Log Reset - CMOS Bit Index\r
40 UINT8 StartingOffset; // CMOS Checksum - Starting Offset\r
41 UINT8 ByteCount; // CMOS Checksum - Byte Count\r
42 UINT8 ChecksumOffset; // CMOS Checksum - Checksum Offset\r
43 UINT8 Reserved[3];\r
44 UINT8 HeaderRevision;\r
45} LOG_HEADER_TYPE1_FORMAT;\r
46\r
47#pragma pack()\r
48//\r
49// System Event Log (Type 15)\r
50//\r
51\r
52/**\r
53 Function to display system event log access information.\r
54\r
55 @param[in] Key Additional information to print.\r
56 @param[in] Option Whether to print the additional information.\r
57**/\r
58VOID\r
5d73d92f 59DisplaySELAccessMethod (\r
60 IN CONST UINT8 Key,\r
61 IN CONST UINT8 Option\r
62 );\r
63\r
64/**\r
65 Function to display system event log status information.\r
66\r
67 @param[in] Key Additional information to print.\r
68 @param[in] Option Whether to print the additional information.\r
69**/\r
70VOID\r
5d73d92f 71DisplaySELLogStatus (\r
72 UINT8 Key,\r
73 UINT8 Option\r
74 );\r
75\r
76/**\r
77 Function to display system event log header format information.\r
78\r
79 @param[in] Key Additional information to print.\r
80 @param[in] Option Whether to print the additional information.\r
81**/\r
82VOID\r
5d73d92f 83DisplaySysEventLogHeaderFormat (\r
84 UINT8 Key,\r
85 UINT8 Option\r
86 );\r
87\r
88/**\r
89 Function to display system event log header information.\r
90\r
91 @param[in] LogHeaderFormat Format identifier.\r
92 @param[in] LogHeader Format informcation.\r
93**/\r
94VOID\r
5d73d92f 95DisplaySysEventLogHeader (\r
96 UINT8 LogHeaderFormat,\r
97 UINT8 *LogHeader\r
98 );\r
99\r
100/**\r
101 Function to display system event log data.\r
102\r
103 @param[in] LogData The data information.\r
104 @param[in] LogAreaLength Length of the data.\r
105**/\r
106VOID\r
5d73d92f 107DisplaySysEventLogData (\r
108 UINT8 *LogData,\r
109 UINT16 LogAreaLength\r
110 );\r
111\r
112#endif\r