OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ControlMsrE2UI.c File Reference
#include "ControlMsrE2.h"

Go to the source code of this file.

Macros

#define TOKENLENGTH   32
 

Functions

UINT32 ReadLine (OUT CHAR16 *Buffer, IN UINT32 Length)
 
CHAR16 ReadAnyKey (VOID)
 
BOOLEAN ReadYN (VOID)
 
EFI_STATUS InterpretArguments (VOID)
 
VOID ModifySearchString (IN OUT EFI_STRING *SearchString)
 

Variables

UINTN mArgumentFlags
 

Detailed Description

Control MSR 0xE2 UI Input/Output in the widest sense

Copyright (c) 2020, Brumbaer. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file ControlMsrE2UI.c.

Macro Definition Documentation

◆ TOKENLENGTH

#define TOKENLENGTH   32

Definition at line 142 of file ControlMsrE2UI.c.

Function Documentation

◆ InterpretArguments()

EFI_STATUS InterpretArguments ( VOID )

Parse commandline arguments

Return values
EFI_SUCCESSSuccess
EFI_OUT_OF_RESOURCESCould not allocate memory
EFI_INVALID_PARAMETERMore than 1 parameter provided

Definition at line 145 of file ControlMsrE2UI.c.

◆ ModifySearchString()

VOID ModifySearchString ( IN OUT EFI_STRING * SearchString)

Displays SearchString and allows to change it

Parameters
[in,out]SearchStringCurrent configuration string

Definition at line 223 of file ControlMsrE2UI.c.

◆ ReadAnyKey()

CHAR16 ReadAnyKey ( VOID )

Wait for any key press

Return values
OtherUnicode for pressed key

Definition at line 118 of file ControlMsrE2UI.c.

◆ ReadLine()

UINT32 ReadLine ( OUT CHAR16 * Buffer,
IN UINT32 Length )

Definition at line 28 of file ControlMsrE2UI.c.

◆ ReadYN()

BOOLEAN ReadYN ( VOID )

Wait for Keypress of Y or N. Ignores case.

Return values
TRUEKeypress is Y
FALSEKeypress is N

Definition at line 129 of file ControlMsrE2UI.c.

Variable Documentation

◆ mArgumentFlags

UINTN mArgumentFlags

Definition at line 17 of file ControlMsrE2UI.c.