]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Change functional static variable to Global variable. No STATIC modifier is recommend...
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 31 Oct 2008 02:07:52 +0000 (02:07 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 31 Oct 2008 02:07:52 +0000 (02:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6316 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c

index b21e2bc8caf55baa2d917a38f9774438533bde88..7fa0fb4d21a21cb6d17087a31094a2ab3199def9 100644 (file)
@@ -623,6 +623,8 @@ ConvertKeyboardScanCodeToEfiKey[] = {
 //\r
 UINTN  mWaitForValueTimeOut = KEYBOARD_WAITFORVALUE_TIMEOUT;\r
 \r
 //\r
 UINTN  mWaitForValueTimeOut = KEYBOARD_WAITFORVALUE_TIMEOUT;\r
 \r
+BOOLEAN          mEnableMouseInterface;\r
+\r
 /**\r
   Read data register \r
 \r
 /**\r
   Read data register \r
 \r
@@ -1639,11 +1641,10 @@ InitKeyboard (
   EFI_STATUS              Status;\r
   EFI_STATUS              Status1;\r
   UINT8                   CommandByte;\r
   EFI_STATUS              Status;\r
   EFI_STATUS              Status1;\r
   UINT8                   CommandByte;\r
-  STATIC BOOLEAN          EnableMouseInterface;\r
   EFI_PS2_POLICY_PROTOCOL *Ps2Policy;\r
 \r
   Status                = EFI_SUCCESS;\r
   EFI_PS2_POLICY_PROTOCOL *Ps2Policy;\r
 \r
   Status                = EFI_SUCCESS;\r
-  EnableMouseInterface  = TRUE;\r
+  mEnableMouseInterface  = TRUE;\r
 \r
   //\r
   // Get Ps2 policy to set this\r
 \r
   //\r
   // Get Ps2 policy to set this\r
@@ -1703,9 +1704,9 @@ InitKeyboard (
     // Test the mouse enabling bit\r
     //\r
     if (CommandByte & 0x20) {\r
     // Test the mouse enabling bit\r
     //\r
     if (CommandByte & 0x20) {\r
-      EnableMouseInterface = FALSE;\r
+      mEnableMouseInterface = FALSE;\r
     } else {\r
     } else {\r
-      EnableMouseInterface = TRUE;\r
+      mEnableMouseInterface = TRUE;\r
     }\r
 \r
   } else {\r
     }\r
 \r
   } else {\r
@@ -1751,7 +1752,7 @@ InitKeyboard (
     //\r
     // Don't enable mouse interface later\r
     //\r
     //\r
     // Don't enable mouse interface later\r
     //\r
-    EnableMouseInterface = FALSE;\r
+    mEnableMouseInterface = FALSE;\r
 \r
   }\r
 \r
 \r
   }\r
 \r
@@ -1936,7 +1937,7 @@ InitKeyboard (
   //\r
 Done:\r
 \r
   //\r
 Done:\r
 \r
-  if (EnableMouseInterface) {\r
+  if (mEnableMouseInterface) {\r
     //\r
     // Enable mouse interface\r
     //\r
     //\r
     // Enable mouse interface\r
     //\r