Fix some coding style issues in MdeModulePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9774 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1847,6 +1847,14 @@ EraseCursor (
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
HII Database Protocol notification event handler.
|
||||
|
||||
Register font package when HII Database Protocol has been installed.
|
||||
|
||||
@param[in] Event Event whose notification function is being invoked.
|
||||
@param[in] Context Pointer to the notification function's context.
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
RegisterFontPackage (
|
||||
|
@@ -111,7 +111,7 @@ typedef struct {
|
||||
|
||||
#define RESET_STATE_DEFAULT 0x00
|
||||
#define RESET_STATE_ESC_R 0x01
|
||||
#define RESET_STATE_ESC_R_ESC_r 0x02
|
||||
#define RESET_STATE_ESC_R_ESC_R 0x02
|
||||
|
||||
#define TERMINAL_CON_IN_DEV_FROM_THIS(a) CR (a, TERMINAL_DEV, SimpleInput, TERMINAL_DEV_SIGNATURE)
|
||||
#define TERMINAL_CON_OUT_DEV_FROM_THIS(a) CR (a, TERMINAL_DEV, SimpleTextOutput, TERMINAL_DEV_SIGNATURE)
|
||||
|
@@ -1346,14 +1346,14 @@ UnicodeToEfiKey (
|
||||
if (TerminalDevice->ResetState == RESET_STATE_DEFAULT) {
|
||||
TerminalDevice->ResetState = RESET_STATE_ESC_R;
|
||||
SetDefaultResetState = FALSE;
|
||||
} else if (TerminalDevice->ResetState == RESET_STATE_ESC_R_ESC_r) {
|
||||
} else if (TerminalDevice->ResetState == RESET_STATE_ESC_R_ESC_R) {
|
||||
gRT->ResetSystem (EfiResetWarm, EFI_SUCCESS, 0, NULL);
|
||||
}
|
||||
Key.ScanCode = SCAN_NULL;
|
||||
break;
|
||||
case 'r':
|
||||
if (TerminalDevice->ResetState == RESET_STATE_ESC_R) {
|
||||
TerminalDevice->ResetState = RESET_STATE_ESC_R_ESC_r;
|
||||
TerminalDevice->ResetState = RESET_STATE_ESC_R_ESC_R;
|
||||
SetDefaultResetState = FALSE;
|
||||
}
|
||||
Key.ScanCode = SCAN_NULL;
|
||||
|
Reference in New Issue
Block a user