]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. add some comments.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Dec 2008 02:17:53 +0000 (02:17 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 17 Dec 2008 02:17:53 +0000 (02:17 +0000)
2. remove unnecessary protocol declaration in inf file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7059 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DebugPortDxe/DebugPort.c
MdeModulePkg/Universal/DebugPortDxe/DebugPortDxe.inf

index ffe3fb72ecf0fc8fa567d6ecc61b224a4f7b18f0..5881668d7fe3569866a1d83fdef457ca3c19ffc0 100644 (file)
@@ -203,8 +203,8 @@ DebugPortSupported (
   EFI_HANDLE                TempHandle;\r
 \r
   //\r
-  // Check to see that there's not a debugport protocol already published\r
-  // Question: Why do we prevent debugport protocol published on more one device?\r
+  // Check to see that there's not a debugport protocol already published,\r
+  // since only one standard UART serial port could be supported by this driver.\r
   //\r
   if (gBS->LocateProtocol (&gEfiDebugPortProtocolGuid, NULL, (VOID **) &DebugPortInterface) != EFI_NOT_FOUND) {\r
     return EFI_UNSUPPORTED;\r
index 0be24ffa058905b4887d1107c7376fb8851fecd4..b1904a26a6c31fd975f4f8dd5cebd1cb50dee397 100644 (file)
@@ -1,9 +1,10 @@
 #/** @file\r
-# Component description file for DebugPort module.\r
+# This driver produces Debug Port protocol to be used by debug agent to communicate with\r
+# the remote debug host.\r
 #\r
-# This driver binds exclusively to serial io on the controller handle,\r
-#  and initializes serial Io interface, publishs DebugPort and device path Protocol.\r
-# Copyright (c) 2006 - 2007, Intel Corporation\r
+# This driver binds exclusively to a standard UART serial port on the controller handle,\r
+#  and initializes serial Io interface, publishs Debug Port and Device Path Protocol.\r
+# Copyright (c) 2006 - 2008, Intel Corporation\r
 #\r
 #  All rights reserved. This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -58,8 +59,6 @@
 \r
 \r
 [Protocols]\r
-  gEfiDriverBindingProtocolGuid                 # PROTOCOL ALWAYS_CONSUMED\r
-  gEfiComponentNameProtocolGuid                 # PROTOCOL ALWAYS_CONSUMED\r
   gEfiSerialIoProtocolGuid                      # PROTOCOL TO_START\r
   gEfiDevicePathProtocolGuid                    # PROTOCOL BY_START\r
   gEfiDebugPortProtocolGuid                     # PROTOCOL BY_START\r