]> git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/EventLogInfo.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / SmbiosView / EventLogInfo.h
1 /** @file
2 Module to clarify system event log of smbios structure.
3
4 Copyright (c) 2005-2011, Intel Corporation. All rights reserved. <BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef _SMBIOS_EVENT_LOG_INFO_H_
10 #define _SMBIOS_EVENT_LOG_INFO_H_
11
12 #define END_OF_LOG 0xFF
13
14 #pragma pack(1)
15
16 typedef struct {
17 UINT8 Type;
18 UINT8 Length;
19 UINT8 Year;
20 UINT8 Month;
21 UINT8 Day;
22 UINT8 Hour;
23 UINT8 Minute;
24 UINT8 Second;
25 UINT8 LogVariableData[1];
26 } LOG_RECORD_FORMAT;
27
28 typedef struct {
29 UINT8 OEMReserved[5];
30 UINT8 Metw; // Multiple Event Time Window
31 UINT8 Meci; // Multiple Event Count Increment
32 UINT8 CMOSAddress; // Pre-boot Event Log Reset - CMOS Address
33 UINT8 CMOSBitIndex; // Pre-boot Event Log Reset - CMOS Bit Index
34 UINT8 StartingOffset; // CMOS Checksum - Starting Offset
35 UINT8 ByteCount; // CMOS Checksum - Byte Count
36 UINT8 ChecksumOffset; // CMOS Checksum - Checksum Offset
37 UINT8 Reserved[3];
38 UINT8 HeaderRevision;
39 } LOG_HEADER_TYPE1_FORMAT;
40
41 #pragma pack()
42 //
43 // System Event Log (Type 15)
44 //
45
46 /**
47 Function to display system event log access information.
48
49 @param[in] Key Additional information to print.
50 @param[in] Option Whether to print the additional information.
51 **/
52 VOID
53 DisplaySELAccessMethod (
54 IN CONST UINT8 Key,
55 IN CONST UINT8 Option
56 );
57
58 /**
59 Function to display system event log status information.
60
61 @param[in] Key Additional information to print.
62 @param[in] Option Whether to print the additional information.
63 **/
64 VOID
65 DisplaySELLogStatus (
66 UINT8 Key,
67 UINT8 Option
68 );
69
70 /**
71 Function to display system event log header format information.
72
73 @param[in] Key Additional information to print.
74 @param[in] Option Whether to print the additional information.
75 **/
76 VOID
77 DisplaySysEventLogHeaderFormat (
78 UINT8 Key,
79 UINT8 Option
80 );
81
82 /**
83 Function to display system event log header information.
84
85 @param[in] LogHeaderFormat Format identifier.
86 @param[in] LogHeader Format informcation.
87 **/
88 VOID
89 DisplaySysEventLogHeader (
90 UINT8 LogHeaderFormat,
91 UINT8 *LogHeader
92 );
93
94 /**
95 Function to display system event log data.
96
97 @param[in] LogData The data information.
98 @param[in] LogAreaLength Length of the data.
99 **/
100 VOID
101 DisplaySysEventLogData (
102 UINT8 *LogData,
103 UINT16 LogAreaLength
104 );
105
106 #endif