]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.c
retired PcdNtEmulatorEnable.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaSerialDxe / Serial.c
index ac208dbe09c81f41c6fb1d71988ada75ef311c0c..6a7713cdaf5f16b3a24d85d0bc2ec59ac0fa04d4 100644 (file)
@@ -520,7 +520,7 @@ Error:
   @param  This                - A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.\r
   @param  Controller          - The handle of the controller to test.\r
   @param  NumberOfChildren    - Number of child device.\r
-  @param  RemainingDevicePath - A pointer to the remaining portion of a device path.\r
+  @param  ChildHandleBuffer   - A pointer to the remaining portion of a device path.\r
 \r
   @retval EFI_SUCCESS         - Operation successfully\r
   @retval EFI_DEVICE_ERROR    - Cannot stop the driver successfully\r
@@ -805,14 +805,6 @@ IsaSerialReceiveTransmit (
     do {\r
       Lsr.Data = READ_LSR (SerialDevice->IsaIo, SerialDevice->BaseAddress);\r
 \r
-      if (FeaturePcdGet (PcdNtEmulatorEnable)) {\r
-        //\r
-        // This is required for NT to avoid a forever-spin...\r
-        // This would be better if READ_LSR was a polling operation\r
-        // that would timeout.\r
-        //\r
-        Lsr.Bits.THRE = 1;\r
-      }\r
       //\r
       // Flush incomming data to prevent a an overrun during a long write\r
       //\r
@@ -1728,17 +1720,13 @@ IsaSerialPortPresent (
   WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0xAA);\r
 \r
   if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0xAA) {\r
-    if (!FeaturePcdGet (PcdNtEmulatorEnable)) {\r
-      Status = FALSE;\r
-    }\r
+    Status = FALSE;\r
   }\r
 \r
   WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0x55);\r
 \r
   if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0x55) {\r
-    if (!FeaturePcdGet (PcdNtEmulatorEnable)) {\r
-      Status = FALSE;\r
-    }\r
+    Status = FALSE;\r
   }\r
   //\r
   // Restore SCR\r