TianoCore EDK2 master
Loading...
Searching...
No Matches
ConsoleLogger.h
Go to the documentation of this file.
1
8#ifndef _CONSOLE_LOGGER_HEADER_
9#define _CONSOLE_LOGGER_HEADER_
10
11#include "Shell.h"
12
13#define CONSOLE_LOGGER_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('c', 'o', 'P', 'D')
14
16 UINTN Signature;
21 CHAR16 *Buffer;
23
24 // start row is the top of the screen
27
30
31 INT32 *Attributes;
33
35 BOOLEAN Enabled;
38
39#define CONSOLE_LOGGER_PRIVATE_DATA_FROM_THIS(a) CR (a, CONSOLE_LOGGER_PRIVATE_DATA, OurConOut, CONSOLE_LOGGER_PRIVATE_DATA_SIGNATURE)
40
56 IN CONST UINTN ScreensToSave,
58 );
59
72 );
73
88 IN CONST BOOLEAN Forward,
89 IN CONST UINTN Rows,
91 );
92
105 );
106
117 );
118
130EFIAPI
133 IN BOOLEAN ExtendedVerification
134 );
135
153EFIAPI
156 IN CHAR16 *WString
157 );
158
174EFIAPI
177 IN CHAR16 *WString
178 );
179
195EFIAPI
198 IN UINTN ModeNumber,
199 OUT UINTN *Columns,
200 OUT UINTN *Rows
201 );
202
216EFIAPI
219 IN UINTN ModeNumber
220 );
221
238EFIAPI
241 IN UINTN Attribute
242 );
243
256EFIAPI
259 );
260
275EFIAPI
278 IN UINTN Column,
279 IN UINTN Row
280 );
281
297EFIAPI
300 IN BOOLEAN Visible
301 );
302
314 );
315
316#endif //_CONSOLE_LOGGER_HEADER_
UINT64 UINTN
EFI_STATUS ConsoleLoggerResetBuffers(IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo)
EFI_STATUS EFIAPI ConsoleLoggerTestString(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN CHAR16 *WString)
EFI_STATUS EFIAPI ConsoleLoggerEnableCursor(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN BOOLEAN Visible)
EFI_STATUS ConsoleLoggerDisplayHistory(IN CONST BOOLEAN Forward, IN CONST UINTN Rows, IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo)
EFI_STATUS EFIAPI ConsoleLoggerSetAttribute(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Attribute)
EFI_STATUS EFIAPI ConsoleLoggerClearScreen(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This)
EFI_STATUS UpdateDisplayFromHistory(IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo)
EFI_STATUS ConsoleLoggerUninstall(IN OUT CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo)
EFI_STATUS EFIAPI ConsoleLoggerReset(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
EFI_STATUS EFIAPI ConsoleLoggerSetCursorPosition(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN Column, IN UINTN Row)
EFI_STATUS ConsoleLoggerStopHistory(IN CONSOLE_LOGGER_PRIVATE_DATA *ConsoleInfo)
EFI_STATUS EFIAPI ConsoleLoggerSetMode(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN ModeNumber)
EFI_STATUS EFIAPI ConsoleLoggerQueryMode(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN UINTN ModeNumber, OUT UINTN *Columns, OUT UINTN *Rows)
EFI_STATUS ConsoleLoggerInstall(IN CONST UINTN ScreensToSave, OUT CONSOLE_LOGGER_PRIVATE_DATA **ConsoleInfo)
Definition: ConsoleLogger.c:26
EFI_STATUS EFIAPI ConsoleLoggerOutputString(IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This, IN CHAR16 *WString)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_SIMPLE_TEXT_OUTPUT_MODE HistoryMode
mode of the history log
Definition: ConsoleLogger.h:34
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * OldConOut
old protocol to reinstall upon exiting
Definition: ConsoleLogger.h:18
UINTN BufferSize
size of buffer in bytes
Definition: ConsoleLogger.h:22
UINTN CurrentStartRow
what the currently visible start row is
Definition: ConsoleLogger.h:26
UINTN AttribSize
Size of Attributes in bytes.
Definition: ConsoleLogger.h:32
EFI_HANDLE OldConHandle
old protocol handle
Definition: ConsoleLogger.h:19
BOOLEAN Enabled
Set to FALSE when a break is requested.
Definition: ConsoleLogger.h:35
UINTN OriginalStartRow
What the originally visible start row was.
Definition: ConsoleLogger.h:25
UINTN ColsPerScreen
how many columns the screen can display
Definition: ConsoleLogger.h:29
UINTN RowCounter
Initial row of each print job.
Definition: ConsoleLogger.h:36
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL OurConOut
the protocol we installed onto the system table
Definition: ConsoleLogger.h:17
UINTN RowsPerScreen
how many rows the screen can display
Definition: ConsoleLogger.h:28
INT32 * Attributes
Buffer for Attribute to be saved for each character.
Definition: ConsoleLogger.h:31
UINTN ScreenCount
How many screens worth of data to save.
Definition: ConsoleLogger.h:20
CHAR16 * Buffer
Buffer to save data.
Definition: ConsoleLogger.h:21