From 4fd730b35e377eaef2dce80f4b7b31786b8c1bfb Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 31 Oct 2008 02:07:52 +0000 Subject: [PATCH] Change functional static variable to Global variable. No STATIC modifier is recommended though it is defined in Base.h. It is for consistency. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6316 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c index b21e2bc8ca..7fa0fb4d21 100644 --- a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c +++ b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c @@ -623,6 +623,8 @@ ConvertKeyboardScanCodeToEfiKey[] = { // UINTN mWaitForValueTimeOut = KEYBOARD_WAITFORVALUE_TIMEOUT; +BOOLEAN mEnableMouseInterface; + /** Read data register @@ -1639,11 +1641,10 @@ InitKeyboard ( EFI_STATUS Status; EFI_STATUS Status1; UINT8 CommandByte; - STATIC BOOLEAN EnableMouseInterface; EFI_PS2_POLICY_PROTOCOL *Ps2Policy; Status = EFI_SUCCESS; - EnableMouseInterface = TRUE; + mEnableMouseInterface = TRUE; // // Get Ps2 policy to set this @@ -1703,9 +1704,9 @@ InitKeyboard ( // Test the mouse enabling bit // if (CommandByte & 0x20) { - EnableMouseInterface = FALSE; + mEnableMouseInterface = FALSE; } else { - EnableMouseInterface = TRUE; + mEnableMouseInterface = TRUE; } } else { @@ -1751,7 +1752,7 @@ InitKeyboard ( // // Don't enable mouse interface later // - EnableMouseInterface = FALSE; + mEnableMouseInterface = FALSE; } @@ -1936,7 +1937,7 @@ InitKeyboard ( // Done: - if (EnableMouseInterface) { + if (mEnableMouseInterface) { // // Enable mouse interface // -- 2.39.2