]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Isa/Ps2MouseDxe/CommPs2.c
MdeModulePkg/AtaAtapiPassThru: Revert patch to disable Bus Master
[mirror_edk2.git] / MdeModulePkg / Bus / Isa / Ps2MouseDxe / CommPs2.c
index 7539c3217a06294e8c2d2b23dc353c8fd51b967e..04d536c76c494b4f75e4a2cd8020e7c41af05020 100644 (file)
@@ -343,7 +343,6 @@ PS2MouseGetPacket (
   BOOLEAN     RButton;\r
 \r
   KeyboardEnable  = FALSE;\r
-  Count           = 1;\r
   State           = PS2_READ_BYTE_ONE;\r
 \r
   //\r
@@ -357,6 +356,7 @@ PS2MouseGetPacket (
       // Read mouse first byte data, if failed, immediately return\r
       //\r
       KbcDisableAux ();\r
+      Count  = 1;\r
       Status = PS2MouseRead (&Data, &Count, State);\r
       if (EFI_ERROR (Status)) {\r
         KbcEnableAux ();\r
@@ -510,7 +510,7 @@ PS2MouseRead (
 \r
   @param Command I/O command.\r
 \r
-  @retval EFI_SUCCESS Success to excute I/O work flow\r
+  @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
 EFI_STATUS\r
@@ -545,7 +545,7 @@ Out8042Command (
 \r
   @param Data    Data value\r
 \r
-  @retval EFI_SUCCESS Success to excute I/O work flow\r
+  @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
 EFI_STATUS\r
@@ -571,7 +571,7 @@ Out8042Data (
 \r
   @param Data    Data value\r
 \r
-  @retval EFI_SUCCESS Success to excute I/O work flow\r
+  @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
 EFI_STATUS\r
@@ -610,7 +610,7 @@ In8042Data (
   @param Command Aux I/O command\r
   @param Resend  Whether need resend the Aux command.\r
 \r
-  @retval EFI_SUCCESS Success to excute I/O work flow\r
+  @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
 EFI_STATUS\r
@@ -688,7 +688,7 @@ Out8042AuxCommand (
 \r
   @param Data    Buffer holding return value\r
 \r
-  @retval EFI_SUCCESS Success to excute I/O work flow.\r
+  @retval EFI_SUCCESS Success to execute I/O work flow.\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
 EFI_STATUS\r
@@ -729,7 +729,7 @@ Out8042AuxData (
 \r
   @param Data    Buffer holding return value.\r
 \r
-  @retval EFI_SUCCESS Success to excute I/O work flow\r
+  @retval EFI_SUCCESS Success to execute I/O work flow\r
   @retval EFI_TIMEOUT Keyboard controller time out.\r
 **/\r
 EFI_STATUS\r