summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:07:52 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:07:52 +0000
commit4fd730b35e377eaef2dce80f4b7b31786b8c1bfb (patch)
tree0a62084922a0cbbc1e45bf8608fba273afdc139f /IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe
parent0df3178443a93a8b08a40db9fda87b356f05150f (diff)
downloadedk2-platforms-4fd730b35e377eaef2dce80f4b7b31786b8c1bfb.tar.xz
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
Diffstat (limited to 'IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe')
-rw-r--r--IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c13
1 files 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
//