Revision: 14161
          http://edk2.svn.sourceforge.net/edk2/?rev=14161&view=rev
Author:   niruiyu
Date:     2013-03-05 01:58:39 +0000 (Tue, 05 Mar 2013)
Log Message:
-----------
Enhance the ConPlatform driver to take care of the optional Controller device 
path node when comparing the GOP device path.

Signed-off-by: Ruiyu Ni <[email protected]>
Reviewed-by: Kinney Michael D <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c

Modified: trunk/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c      
2013-03-04 22:02:59 UTC (rev 14160)
+++ trunk/edk2/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatform.c      
2013-03-05 01:58:39 UTC (rev 14161)
@@ -2,7 +2,7 @@
   Console Platform DXE Driver, install Console Device Guids and update Console
   Environment Variables.
 
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD 
License
 which accompanies this distribution.  The full text of the license may be 
found at
@@ -792,7 +792,9 @@
   EFI_DEVICE_PATH_PROTOCOL  *NodeRight;
 
   for (NodeLeft = Left; !IsDevicePathEndType (NodeLeft); NodeLeft = 
NextDevicePathNode (NodeLeft)) {
-    if (DevicePathType (NodeLeft) == ACPI_DEVICE_PATH && DevicePathSubType 
(NodeLeft) == ACPI_ADR_DP) {
+    if ((DevicePathType (NodeLeft) == ACPI_DEVICE_PATH && DevicePathSubType 
(NodeLeft) == ACPI_ADR_DP) ||
+        (DevicePathType (NodeLeft) == HARDWARE_DEVICE_PATH && 
DevicePathSubType (NodeLeft) == HW_CONTROLLER_DP &&
+         DevicePathType (NextDevicePathNode (NodeLeft)) == ACPI_DEVICE_PATH && 
DevicePathSubType (NextDevicePathNode (NodeLeft)) == ACPI_ADR_DP)) {
       break;
     }
   }
@@ -802,7 +804,9 @@
   }
 
   for (NodeRight = Right; !IsDevicePathEndType (NodeRight); NodeRight = 
NextDevicePathNode (NodeRight)) {
-    if (DevicePathType (NodeRight) == ACPI_DEVICE_PATH && DevicePathSubType 
(NodeRight) == ACPI_ADR_DP) {
+    if ((DevicePathType (NodeRight) == ACPI_DEVICE_PATH && DevicePathSubType 
(NodeRight) == ACPI_ADR_DP) ||
+        (DevicePathType (NodeRight) == HARDWARE_DEVICE_PATH && 
DevicePathSubType (NodeRight) == HW_CONTROLLER_DP &&
+         DevicePathType (NextDevicePathNode (NodeRight)) == ACPI_DEVICE_PATH 
&& DevicePathSubType (NextDevicePathNode (NodeRight)) == ACPI_ADR_DP)) {
       break;
     }
   }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to