]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update For R9 Review.
authorhfang <hfang@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 Jan 2009 08:48:15 +0000 (08:48 +0000)
committerhfang <hfang@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 Jan 2009 08:48:15 +0000 (08:48 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7215 6f19259b-4bc3-4df7-8a09-765794883524

32 files changed:
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/ComponentName.h
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.h
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.h
IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeData.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/ComponentName.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/ComponentName.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBus.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciCommand.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDeviceSupport.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciHotPlugSupport.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciHotPlugSupport.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciIo.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciLib.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciOptionRomSupport.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciPowerManagement.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciResourceSupport.h
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.c
IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciRomTable.h
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPort.c
IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPort.h

index cce33cf36a6085bdcbebeede623f4a15a91a411d..35cc252bd5bb1c8f39d09bbd56e3018cd24b7b4d 100644 (file)
@@ -10,8 +10,8 @@
 \r
 **/\r
 \r
-#ifndef _IDE_BUS_COMPONENT_NAME_H\r
-#define _IDE_BUS_COMPONENT_NAME_H\r
+#ifndef _IDE_BUS_COMPONENT_NAME_H_\r
+#define _IDE_BUS_COMPONENT_NAME_H_\r
 \r
 #define ADD_NAME(x) AddName ((x));\r
 \r
index 71ab6ecd7505499b8d65a0aad65850d177b50138..f2cc9df4543e18d7e169f400c301cd1fd66075f4 100644 (file)
@@ -18,8 +18,8 @@
 \r
 **/\r
 \r
-#ifndef _IDE_H\r
-#define _IDE_H\r
+#ifndef _IDE_H_\r
+#define _IDE_H_\r
 \r
 //\r
 // Helper functions Prototype\r
@@ -118,7 +118,7 @@ IDEWritePortB (
   @param  Port TODO: add argument description\r
   @param  Data TODO: add argument description\r
 \r
-  TODO: add return values\r
+  TODO: add return values.\r
 \r
 **/\r
 VOID\r
@@ -442,7 +442,7 @@ AtaPioDataOut (
 \r
   @param  IdeDev TODO: add argument description\r
 \r
-  TODO: add return values\r
+  TODO: add return values.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1242,10 +1242,8 @@ EnableInterrupt (
 /**\r
   Clear pending IDE interrupt before OS loader/kernel take control of the IDE device.\r
 \r
-  @param[in]  Event   Pointer to this event\r
-  @param[in]  Context Event hanlder private data\r
-\r
-  @retval  EFI_SUCCESS - Interrupt cleared.\r
+  @param[in]  Event   Pointer to this event.\r
+  @param[in]  Context Event hanlder private data.\r
 \r
 **/\r
 VOID\r
index e864eccc31005b757bcf6d644dbec378b7ed72e5..3d5469151472e2fd6faceb58d336a17b941ce013 100644 (file)
@@ -1042,9 +1042,12 @@ DeRegisterIdeDevice (
 // ***********************************************************************************\r
 //\r
 /**\r
-  TODO:    This - add argument and description to function comment\r
-  TODO:    ExtendedVerification - add argument and description to function comment\r
-  TODO:    EFI_DEVICE_ERROR - add return value to function comment\r
+  GC_TODO: Add function description\r
+\r
+  @param  This                  GC_TODO: add argument description.\r
+  @param  ExtendedVerification  GC_TODO: add argument description.\r
+\r
+  @retval EFI_DEVICE_ERROR      GC_TODO: Add description for return value.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1244,8 +1247,12 @@ Done:
 // ***********************************************************************************\r
 //\r
 /**\r
-  TODO:    This - add argument and description to function comment\r
-  TODO:    EFI_SUCCESS - add return value to function comment\r
+  TODO: Add function description\r
+\r
+  @param  This TODO: add argument description\r
+\r
+  @retval EFI_SUCCESS   GC_TODO: Add description for return value.\r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
index f4ec71594d041e301cc75635ff05bf926a3629da..9b5a5d6b7e6ef72bf6ed1cc09a1a7863dba71c7f 100644 (file)
@@ -12,8 +12,8 @@
 \r
 **/\r
 \r
-#ifndef _IDE_BUS_H\r
-#define _IDE_BUS_H\r
+#ifndef _IDE_BUS_H_\r
+#define _IDE_BUS_H_\r
 \r
 \r
 \r
@@ -196,6 +196,18 @@ IDEBusDriverBindingStop (
 //\r
 // EFI Driver Configuration Functions\r
 //\r
+/**\r
+  TODO: Add function description\r
+\r
+  @param  This                 TODO: add argument description\r
+  @param  ControllerHandle     TODO: add argument description\r
+  @param  ChildHandle          TODO: add argument description\r
+  @param  Language             TODO: add argument description\r
+  @param  ActionRequired       TODO: add argument description\r
+\r
+  TODO: add return values.\r
+\r
+**/\r
 EFI_STATUS\r
 IDEBusDriverConfigurationSetOptions (\r
   IN  EFI_DRIVER_CONFIGURATION_PROTOCOL                      *This,\r
@@ -205,6 +217,16 @@ IDEBusDriverConfigurationSetOptions (
   OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED               *ActionRequired\r
   );\r
 \r
+/**\r
+  TODO: Add function description\r
+\r
+  @param  This                 TODO: add argument description\r
+  @param  ControllerHandle     TODO: add argument description\r
+  @param  ChildHandle          TODO: add argument description\r
+\r
+  TODO: add return values.\r
+\r
+**/\r
 EFI_STATUS\r
 IDEBusDriverConfigurationOptionsValid (\r
   IN  EFI_DRIVER_CONFIGURATION_PROTOCOL               *This,\r
@@ -212,6 +234,18 @@ IDEBusDriverConfigurationOptionsValid (
   IN  EFI_HANDLE                                      ChildHandle  OPTIONAL\r
   );\r
 \r
+/**\r
+  TODO: Add function description\r
+\r
+  @param  This                 TODO: add argument description\r
+  @param  ControllerHandle     TODO: add argument description\r
+  @param  ChildHandle          TODO: add argument description\r
+  @param  DefaultType          TODO: add argument description\r
+  @param  ActionRequired       TODO: add argument description\r
+\r
+  TODO: add return values.\r
+\r
+**/\r
 EFI_STATUS\r
 IDEBusDriverConfigurationForceDefaults (\r
   IN  EFI_DRIVER_CONFIGURATION_PROTOCOL                      *This,\r
@@ -224,6 +258,21 @@ IDEBusDriverConfigurationForceDefaults (
 //\r
 // EFI Driver Diagnostics Functions\r
 //\r
+/**\r
+  TODO: Add function description\r
+\r
+  @param  This                 TODO: add argument description\r
+  @param  ControllerHandle     TODO: add argument description\r
+  @param  ChildHandle          TODO: add argument description\r
+  @param  DiagnosticType       TODO: add argument description\r
+  @param  Language             TODO: add argument description\r
+  @param  ErrorType            TODO: add argument description\r
+  @param  BufferSize           TODO: add argument description\r
+  @param  Buffer               TODO: add argument description\r
+\r
+  TODO: add return values.\r
+\r
+**/\r
 EFI_STATUS\r
 IDEBusDriverDiagnosticsRunDiagnostics (\r
   IN  EFI_DRIVER_DIAGNOSTICS_PROTOCOL               *This,\r
@@ -264,7 +313,7 @@ IDEBlkIoReset (
   @param  BufferSize TODO: add argument description\r
   @param  Buffer TODO: add argument description\r
 \r
-  TODO: add return values\r
+  TODO: add return values.\r
 \r
 **/\r
 EFI_STATUS\r
index 83a42af6b132d46a0d5f7db4c06ed584f8503571..e4bc4f71fd53bc880a125f95c358a7b8d85d39fc 100644 (file)
@@ -12,8 +12,8 @@
 \r
 **/\r
 \r
-#ifndef _IDE_DATA_H\r
-#define _IDE_DATA_H\r
+#ifndef _IDE_DATA_H_\r
+#define _IDE_DATA_H_\r
 \r
 #include <IndustryStandard/Atapi.h>\r
 \r
index bfe00d3f565295d91d3df8dea37ee3c46cacebbe..4f478cd870c79f872bd4c18dc991c5247dacce87 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
index f2323b2eaa01aa050c2d62a110938912d6cf694e..2e8b7e0adde4cde7d30d747a975ec0950cd10ced 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_BUS_COMPONENT_NAME_H\r
-#define _EFI_PCI_BUS_COMPONENT_NAME_H\r
+#ifndef _EFI_PCI_BUS_COMPONENT_NAME_H_\r
+#define _EFI_PCI_BUS_COMPONENT_NAME_H_\r
 \r
 extern EFI_COMPONENT_NAME_PROTOCOL   gPciBusComponentName;\r
 extern EFI_COMPONENT_NAME2_PROTOCOL  gPciBusComponentName2;\r
index 980de9110490d8176a730c3ac946650d630a0eac..74a4abf4dff29e6cb1bf38d106125193d64937d5 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_BUS_H\r
-#define _EFI_PCI_BUS_H\r
+#ifndef _EFI_PCI_BUS_H_\r
+#define _EFI_PCI_BUS_H_\r
 \r
 \r
 #include <FrameworkDxe.h>\r
@@ -266,6 +266,20 @@ extern EFI_PCI_PLATFORM_PROTOCOL                    *gPciPlatformProtocol;
 //\r
 // PCI Bus Support Function Prototypes\r
 //\r
+/**\r
+  Test to see if this driver supports ControllerHandle. Any ControllerHandle\r
+  than contains a gEfiPciRootBridgeIoProtocolGuid protocol can be supported.\r
+\r
+  @param  This                Protocol instance pointer.\r
+  @param  ControllerHandle    Handle of device to test.\r
+  @param  RemainingDevicePath Optional parameter use to pick a specific child.\r
+                              device to start.\r
+\r
+  @retval EFI_SUCCESS         This driver supports this device.\r
+  @retval EFI_ALREADY_STARTED This driver is already running on this device.\r
+  @retval other               This driver does not support this device.\r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 PciBusDriverBindingSupported (\r
@@ -274,6 +288,20 @@ PciBusDriverBindingSupported (
   IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
   );\r
 \r
+/**\r
+  Start this driver on ControllerHandle and enumerate Pci bus and start\r
+  all device under PCI bus.\r
+\r
+  @param  This                 Protocol instance pointer.\r
+  @param  ControllerHandle     Handle of device to bind driver to.\r
+  @param  RemainingDevicePath  Optional parameter use to pick a specific child.\r
+                               device to start.\r
+\r
+  @retval EFI_SUCCESS          This driver is added to ControllerHandle.\r
+  @retval EFI_ALREADY_STARTED  This driver is already running on ControllerHandle.\r
+  @retval other                This driver does not support this device.\r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 PciBusDriverBindingStart (\r
@@ -282,6 +310,20 @@ PciBusDriverBindingStart (
   IN EFI_DEVICE_PATH_PROTOCOL       *RemainingDevicePath\r
   );\r
 \r
+/**\r
+  Stop this driver on ControllerHandle. Support stoping any child handles\r
+  created by this driver.\r
+\r
+  @param  This              Protocol instance pointer.\r
+  @param  ControllerHandle  Handle of device to stop driver on.\r
+  @param  NumberOfChildren  Number of Handles in ChildHandleBuffer. If number of\r
+                            children is zero stop the entire bus driver.\r
+  @param  ChildHandleBuffer List of Child Handles to Stop.\r
+\r
+  @retval EFI_SUCCESS       This driver is removed ControllerHandle.\r
+  @retval other             This driver was not removed from this device.\r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 PciBusDriverBindingStop (\r
index 3354359f5e6c135269767813beb16371ac919377..c69f05b53dc749544327c6d6fabab5df4b897e8a 100644 (file)
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_COMMAND_H\r
-#define _EFI_PCI_COMMAND_H\r
+#ifndef _EFI_PCI_COMMAND_H_\r
+#define _EFI_PCI_COMMAND_H_\r
 \r
 //\r
 // The PCI Command register bits owned by PCI Bus driver.\r
index 0ae7c2e3f6f410e1896282f748f0a38f96f3aa3f..af162dc198c3423323545af182abb70c03a0b4ae 100644 (file)
@@ -11,8 +11,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef _EFI_PCI_DEVICE_SUPPORT_H\r
-#define _EFI_PCI_DEVICE_SUPPORT_H\r
+#ifndef _EFI_PCI_DEVICE_SUPPORT_H_\r
+#define _EFI_PCI_DEVICE_SUPPORT_H_\r
 \r
 /**\r
   Initialize the gPciDevicePool.\r
@@ -194,6 +194,13 @@ GetRootBridgeByHandle (
   EFI_HANDLE RootBridgeHandle\r
   );\r
 \r
+/**\r
+  Check root bridge device is existed or not.\r
+\r
+  @param RootBridgeHandle    Given root bridge handle.\r
+\r
+  @return root bridge device is existed or not.\r
+**/\r
 BOOLEAN\r
 RootBridgeExisted (\r
   IN EFI_HANDLE RootBridgeHandle\r
index b3456417e81aebca59d39202611056944f2623eb..6c9d6f8079d170e340d0fac3e9cfff52b8f30de6 100644 (file)
@@ -88,11 +88,11 @@ GetDriver (
 /**\r
   Add an overriding driver image\r
   \r
-  @param PciIoDevice        Instance of PciIo device\r
-  @param DriverImageHandle  new added driver image\r
+  @param PciIoDevice        Instance of PciIo device.\r
+  @param DriverImageHandle  new added driver image.\r
   \r
-  @retval EFI_OUT_OF_RESOURCES no memory resource for new driver instance\r
-  @retval EFI_SUCCESS       Success add driver\r
+  @retval EFI_OUT_OF_RESOURCES no memory resource for new driver instance.\r
+  @retval EFI_SUCCESS       Success add driver.\r
 **/\r
 EFI_STATUS\r
 AddDriver (\r
index edfb77f9c6922d3413235414276b73d11dc0bbd2..c30d4e1c561e5879fe4b0f0be4ea1a82b805d8a3 100644 (file)
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_DRIVER_OVERRRIDE_H\r
-#define _EFI_PCI_DRIVER_OVERRRIDE_H\r
+#ifndef _EFI_PCI_DRIVER_OVERRRIDE_H_\r
+#define _EFI_PCI_DRIVER_OVERRRIDE_H_\r
 \r
 #define DRIVER_OVERRIDE_SIGNATURE SIGNATURE_32 ('d', 'r', 'o', 'v')\r
 \r
index c2c4ef627655ad0d4d20ff561cbcd09fe2a59434..c3036510ff61c42affef9a5b06f5ee4a74f2e3d1 100644 (file)
@@ -1765,13 +1765,10 @@ NotifyPhase (
    member function. It allows the host bridge driver to preinitialize individual PCI controllers before\r
    enumeration.\r
 \r
-   @param This              Pointer to the EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL instance.\r
-   @param RootBridgeHandle  The associated PCI root bridge handle. Type EFI_HANDLE is defined in\r
-                            InstallProtocolInterface() in the UEFI 2.0 Specification.\r
-   @param PciAddress        The address of the PCI device on the PCI bus. This address can be passed to the\r
-                            EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL member functions to access the PCI\r
-                            configuration space of the device. See Table 12-1 in the UEFI 2.0 Specification for\r
-                            the definition of EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS.\r
+   @param Bridge            Pointer to the EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL instance.\r
+   @param Bus               The bus number of the pci device. \r
+   @param Device            The device number of the pci device. \r
+   @param Func              The function number of the pci device. \r
    @param Phase             The phase of the PCI device enumeration. \r
    \r
    @retval EFI_SUCCESS              The requested parameters were returned.\r
@@ -1878,7 +1875,7 @@ PreprocessController (
   @param This                 - A pointer to the hot plug request protocol.\r
   @param Operation            - The operation.\r
   @param Controller           - A pointer to the controller.\r
-  @param RemainningDevicePath - A pointer to the device path.\r
+  @param RemainingDevicePath  - A pointer to the device path.\r
   @param NumberOfChildren     - A the number of child handle in the ChildHandleBuffer.\r
   @param ChildHandleBuffer    - A pointer to the array contain the child handle.\r
   \r
@@ -1988,7 +1985,10 @@ PciHotPlugRequestNotify (
 /**\r
   Search hostbridge according to given handle\r
   \r
-  @return whether found\r
+  @param RootBridgeHandle     - Host bridge handle.\r
+\r
+  @return TRUE  Found.\r
+  @return FALSE Not found.\r
 **/\r
 BOOLEAN\r
 SearchHostBridgeHandle (\r
index b20d8f2343f548633b9ba08f40422632db11403c..fe3d2afa84d8fd5ed2d93a09fe962bd8e17e3b20 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_ENUMERATOR_H\r
-#define _EFI_PCI_ENUMERATOR_H\r
+#ifndef _EFI_PCI_ENUMERATOR_H_\r
+#define _EFI_PCI_ENUMERATOR_H_\r
 \r
 #include "PciResourceSupport.h"\r
 \r
@@ -405,13 +405,10 @@ NotifyPhase (
    member function. It allows the host bridge driver to preinitialize individual PCI controllers before\r
    enumeration.\r
 \r
-   @param This              Pointer to the EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL instance.\r
-   @param RootBridgeHandle  The associated PCI root bridge handle. Type EFI_HANDLE is defined in\r
-                            InstallProtocolInterface() in the UEFI 2.0 Specification.\r
-   @param PciAddress        The address of the PCI device on the PCI bus. This address can be passed to the\r
-                            EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL member functions to access the PCI\r
-                            configuration space of the device. See Table 12-1 in the UEFI 2.0 Specification for\r
-                            the definition of EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS.\r
+   @param Bridge            Pointer to the EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL instance.\r
+   @param Bus               The bus number of the pci device. \r
+   @param Device            The device number of the pci device. \r
+   @param Func              The function number of the pci device. \r
    @param Phase             The phase of the PCI device enumeration. \r
    \r
    @retval EFI_SUCCESS              The requested parameters were returned.\r
@@ -459,7 +456,10 @@ PciHotPlugRequestNotify (
 /**\r
   Search hostbridge according to given handle\r
   \r
-  @return whether found.\r
+  @param RootBridgeHandle     - Host bridge handle.\r
+\r
+  @return TRUE  Found.\r
+  @return FALSE Not found.\r
 **/\r
 BOOLEAN\r
 SearchHostBridgeHandle (\r
index a6867da0ba3b8c2d671cdacb1f5f8ef9f7001ebb..47f2fe1afd5accf0c428f4a7b4cdfbfdbffe2466 100644 (file)
@@ -1,4 +1,4 @@
-/**file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
@@ -85,7 +85,7 @@ PciDevicePresent (
   root bridge will then be created.\r
     \r
   @param Bridge         Parent bridge instance.\r
-  @param StartBusNumer  Bus number of begining. \r
+  @param StartBusNumber Bus number of begining. \r
 **/\r
 EFI_STATUS\r
 PciPciDeviceInfoCollector (\r
@@ -1844,6 +1844,14 @@ PciGetBusRange (
   return EFI_NOT_FOUND;\r
 }\r
 \r
+/**\r
+  This routine can be used to start the root bridge.\r
+\r
+  @param RootBridgeDev     Pci device instance.\r
+\r
+  @retval EFI_SUCCESS      This device started.\r
+  \r
+**/\r
 EFI_STATUS\r
 StartManagingRootBridge (\r
   IN PCI_IO_DEVICE *RootBridgeDev\r
index 8840998d94b6e8e7e6a9609470b71a86fc9c8a21..1900990a15f8eeb5421796a4cff8d59fb64afa0d 100644 (file)
@@ -1,4 +1,4 @@
-/**file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_ENUMERATOR_SUPPORT_H\r
-#define _EFI_PCI_ENUMERATOR_SUPPORT_H\r
+#ifndef _EFI_PCI_ENUMERATOR_SUPPORT_H_\r
+#define _EFI_PCI_ENUMERATOR_SUPPORT_H_\r
 \r
 /**\r
   This routine is used to check whether the pci device is present.\r
@@ -42,7 +42,7 @@ PciDevicePresent (
   root bridge will then be created.\r
     \r
   @param Bridge         Parent bridge instance\r
-  @param StartBusNumer  Bus number of begining \r
+  @param StartBusNumber Bus number of begining \r
 **/\r
 EFI_STATUS\r
 PciPciDeviceInfoCollector (\r
@@ -62,12 +62,12 @@ PciPciDeviceInfoCollector (
 **/\r
 EFI_STATUS\r
 PciSearchDevice (\r
-  IN PCI_IO_DEVICE                      *Bridge,\r
-  PCI_TYPE00                            *Pci,\r
-  UINT8                                 Bus,\r
-  UINT8                                 Device,\r
-  UINT8                                 Func,\r
-  PCI_IO_DEVICE                         **PciDevice\r
+  IN  PCI_IO_DEVICE                         *Bridge,\r
+  IN  PCI_TYPE00                            *Pci,\r
+  IN  UINT8                                 Bus,\r
+  IN  UINT8                                 Device,\r
+  IN  UINT8                                 Func,\r
+  OUT PCI_IO_DEVICE                         **PciDevice\r
   );\r
 \r
 /**\r
@@ -349,6 +349,14 @@ PciGetBusRange (
   OUT    UINT16                             *BusRange\r
   );\r
 \r
+/**\r
+  This routine can be used to start the root bridge.\r
+\r
+  @param RootBridgeDev     Pci device instance.\r
+\r
+  @retval EFI_SUCCESS      This device started.\r
+  \r
+**/\r
 EFI_STATUS\r
 StartManagingRootBridge (\r
   IN PCI_IO_DEVICE *RootBridgeDev\r
index dcc6d72058c70a3bbafaa0561a3489725264b8d2..7d30797f76bc67b59e7a1f4a398df9c43b2a7df4 100644 (file)
@@ -1,4 +1,4 @@
-/**file\r
+/** @file\r
   This module provide support function for hot plug device.\r
   \r
 Copyright (c) 2006, Intel Corporation                                                         \r
@@ -131,7 +131,7 @@ InitializeHotPlugSupport (
 /**\r
   Test whether device path is for root pci hot plug bus\r
   \r
-  @param HpbdevicePath  tested device path.\r
+  @param HpbDevicePath  tested device path.\r
   @param HpIndex        Return the index of root hot plug in global array.\r
   \r
   @retval TRUE  device path is for root pci hot plug.\r
@@ -163,7 +163,7 @@ IsRootPciHotPlugBus (
 /**\r
   Test whether device path is for root pci hot plug controller\r
   \r
-  @param HpbdevicePath  tested device path.\r
+  @param HpcDevicePath  tested device path.\r
   @param HpIndex        Return the index of root hot plug in global array.\r
   \r
   @retval TRUE  device path is for root pci hot plug controller.\r
index 50836657ea9c663ec447f8cf0a6112ce40ebb19d..26dcee2943aae4ed093a3bb79e18adf30e90a574 100644 (file)
@@ -1,4 +1,4 @@
-/**file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_HOT_PLUG_SUPPORT_H\r
-#define _EFI_PCI_HOT_PLUG_SUPPORT_H\r
+#ifndef _EFI_PCI_HOT_PLUG_SUPPORT_H_\r
+#define _EFI_PCI_HOT_PLUG_SUPPORT_H_\r
 \r
 \r
 //\r
index 68e507aceb7c84428100cb52f1ec59d277a23357..43a8fb34bbc5392c653c017a3aee5e100e3f157a 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
   Implement all interfaces for EFI_PCI_IO_PROTOCOL.\r
   \r
 Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
@@ -18,6 +18,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //\r
 // Internal use only\r
 //\r
+/**\r
+  report a error Status code of PCI bus driver controller.\r
+  \r
+  @param PciIoDevice Pci device instance.\r
+  @param Code        status code.\r
+**/\r
 EFI_STATUS\r
 ReportErrorStatusCode (\r
   IN PCI_IO_DEVICE               *PciIoDevice,\r
@@ -61,10 +67,10 @@ EFI_PCI_IO_PROTOCOL  PciIoInterface = {
 };\r
 \r
 /**\r
-  report a error Status code of PCI bus driver controller\r
+  report a error Status code of PCI bus driver controller.\r
   \r
-  @param PciIoDevice Pci device instance\r
-  @param Code        status code\r
+  @param PciIoDevice Pci device instance.\r
+  @param Code        status code.\r
 **/\r
 EFI_STATUS\r
 ReportErrorStatusCode (\r
@@ -80,11 +86,11 @@ ReportErrorStatusCode (
 }\r
 \r
 /**\r
-  Initializes a PCI I/O Instance\r
+  Initializes a PCI I/O Instance.\r
   \r
-  @param PciIoDevice  Pci device instance\r
+  @param PciIoDevice  Pci device instance.\r
   \r
-  @retval EFI_SUCCESS  Success operation\r
+  @retval EFI_SUCCESS  Success operation.\r
 **/\r
 EFI_STATUS\r
 InitializePciIoInstance (\r
@@ -281,7 +287,9 @@ PciIoPollMem (
           \r
   @param  This                  A pointer to the EFI_PCI_IO_PROTOCOL.\r
   @param  Width                 Signifies the width of the memory or I/O operations.\r
-  @param  Address               The base address of the memory or I/O operations.  \r
+  @param  BarIndex              The BAR index of the standard PCI Configuration header to use as the\r
+                                base address for the memory or I/O operation to perform.                    \r
+  @param  Offset                The offset within the selected BAR to start the memory or I/O operation.                                \r
   @param  Mask                  Mask used for the polling criteria.\r
   @param  Value                 The comparison value used for the polling exit criteria.\r
   @param  Delay                 The number of 100 ns units to poll.\r
@@ -1459,7 +1467,7 @@ PciIoAttributes (
         // Check if there have been an active VGA device on the same segment\r
         //\r
         Temp = ActiveVGADeviceOnTheSameSegment (PciIoDevice);\r
-        if (Temp && Temp != PciIoDevice) {\r
+        if (Temp != NULL && Temp != PciIoDevice) {\r
           //\r
           // An active VGA has been detected, so can not enable another\r
           //\r
@@ -1529,7 +1537,7 @@ PciIoAttributes (
     // Enable relevant attributes to command register and bridge control register\r
     //\r
     Status = PciEnableCommandRegister (PciIoDevice, Command);\r
-    if (BridgeControl) {\r
+    if (BridgeControl != 0) {\r
       Status = PciEnableBridgeControlRegister (PciIoDevice, BridgeControl);\r
     }\r
 \r
@@ -1550,7 +1558,7 @@ PciIoAttributes (
     // Disable relevant attributes to command register and bridge control register\r
     //\r
     Status = PciDisableCommandRegister (PciIoDevice, Command);\r
-    if (BridgeControl) {\r
+    if (BridgeControl != 0) {\r
       Status = PciDisableBridgeControlRegister (PciIoDevice, BridgeControl);\r
     }\r
 \r
@@ -1838,7 +1846,7 @@ UpStreamBridgesAttributes (
 \r
   Parent = PciIoDevice->Parent;\r
 \r
-  while (Parent && IS_PCI_BRIDGE (&Parent->Pci)) {\r
+  while (Parent != NULL && IS_PCI_BRIDGE (&Parent->Pci)) {\r
 \r
     //\r
     // Get the PciIo Protocol\r
index 18a27e69336668cb72f150677736178a71cc35e0..5d7b8b340948bd34fc64a576126068a669adf2d1 100644 (file)
@@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef _EFI_PCI_IO_PROTOCOL_H\r
-#define _EFI_PCI_IO_PROTOCOL_H\r
+#ifndef _EFI_PCI_IO_PROTOCOL_H_\r
+#define _EFI_PCI_IO_PROTOCOL_H_\r
 \r
 /**\r
-  Initializes a PCI I/O Instance\r
+  Initializes a PCI I/O Instance.\r
   \r
-  @param PciIoDevice  Pci device instance\r
+  @param PciIoDevice  Pci device instance.\r
   \r
-  @retval EFI_SUCCESS  Success operation\r
+  @retval EFI_SUCCESS  Success operation.\r
 **/\r
 EFI_STATUS\r
 InitializePciIoInstance (\r
@@ -109,7 +109,9 @@ PciIoPollMem (
           \r
   @param  This                  A pointer to the EFI_PCI_IO_PROTOCOL.\r
   @param  Width                 Signifies the width of the memory or I/O operations.\r
-  @param  Address               The base address of the memory or I/O operations.  \r
+  @param  BarIndex              The BAR index of the standard PCI Configuration header to use as the\r
+                                base address for the memory or I/O operation to perform.                    \r
+  @param  Offset                The offset within the selected BAR to start the memory or I/O operation.                                \r
   @param  Mask                  Mask used for the polling criteria.\r
   @param  Value                 The comparison value used for the polling exit criteria.\r
   @param  Delay                 The number of 100 ns units to poll.\r
index d7f7cc77eaac98ac492dfa66c982ef269d0e6509..fd8eaf43257c705d5e08e8eaa24e50d5a7482c4e 100644 (file)
@@ -47,9 +47,9 @@ InstallHotPlugRequestProtocol (
 \r
 /**\r
   Install protocol gEfiPciHotplugDeviceGuid into hotplug device\r
-  instance\r
+  instance.\r
   \r
-  @param PciIoDevice  hotplug device instance\r
+  @param PciIoDevice  hotplug device instance.\r
   \r
 **/\r
 VOID\r
@@ -77,9 +77,9 @@ InstallPciHotplugGuid (
 \r
 /**\r
   UnInstall protocol gEfiPciHotplugDeviceGuid into hotplug device\r
-  instance\r
+  instance.\r
   \r
-  @param PciIoDevice  hotplug device instance\r
+  @param PciIoDevice  hotplug device instance.\r
   \r
 **/\r
 VOID\r
@@ -116,9 +116,9 @@ UninstallPciHotplugGuid (
 }\r
 \r
 /**\r
-  Retrieve the BAR information via PciIo interface\r
+  Retrieve the BAR information via PciIo interface.\r
   \r
-  @param PciIoDevice Pci device instance\r
+  @param PciIoDevice Pci device instance.\r
 **/\r
 VOID\r
 GetBackPcCardBar (\r
@@ -196,8 +196,8 @@ GetBackPcCardBar (
   Remove rejected pci device from specific root bridge\r
   handle.\r
   \r
-  @param RootBridgeHandle  specific parent root bridge handle\r
-  @param Bridge            Bridge device instance\r
+  @param RootBridgeHandle  specific parent root bridge handle.\r
+  @param Bridge            Bridge device instance.\r
   \r
   @retval EFI_SUCCESS  Success operation.\r
 **/\r
@@ -261,7 +261,7 @@ RemoveRejectedPciDevices (
 /**\r
   Wrapper function for allocating resource for pci host bridge.\r
   \r
-  @param PciResAlloc Point to protocol instance EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
+  @param PciResAlloc Point to protocol instance EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
   \r
 **/\r
 EFI_STATUS\r
@@ -281,11 +281,11 @@ PciHostBridgeResourceAllocator (
 }\r
 \r
 /**\r
-  Submits the I/O and memory resource requirements for the specified PCI Root Bridge\r
+  Submits the I/O and memory resource requirements for the specified PCI Root Bridge.\r
 \r
-  @param PciResAlloc  Point to protocol instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
+  @param PciResAlloc  Point to protocol instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
 \r
-  @retval EFI_SUCCESS           Success\r
+  @retval EFI_SUCCESS           Success.\r
 **/\r
 EFI_STATUS\r
 PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (\r
@@ -644,11 +644,11 @@ PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (
 }\r
 \r
 /**\r
-  Submits the I/O and memory resource requirements for the specified PCI Root Bridge\r
+  Submits the I/O and memory resource requirements for the specified PCI Root Bridge.\r
 \r
-  @param PciResAlloc  Point to protocol instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
+  @param PciResAlloc  Point to protocol instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
 \r
-  @retval EFI_SUCCESS           Success\r
+  @retval EFI_SUCCESS           Success.\r
 **/\r
 EFI_STATUS\r
 PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (\r
@@ -1138,15 +1138,15 @@ PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (
 \r
 /**\r
   Wapper function of scanning pci bus and assign bus number to the given PCI bus system\r
-  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug  \r
+  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug.\r
   \r
-  @param  Bridge          Bridge device instance\r
-  @param  StartBusNumber  start point\r
-  @param  SubBusNumber    Point to sub bus number\r
-  @param  PaddedBusRange  Customized bus number\r
+  @param  Bridge          Bridge device instance.\r
+  @param  StartBusNumber  start point.\r
+  @param  SubBusNumber    Point to sub bus number.\r
+  @param  PaddedBusRange  Customized bus number.\r
   \r
-  @retval EFI_SUCCESS     Success\r
-  @retval EFI_DEVICE_ERROR Fail to scan bus\r
+  @retval EFI_SUCCESS     Success.\r
+  @retval EFI_DEVICE_ERROR Fail to scan bus.\r
 **/\r
 EFI_STATUS\r
 PciScanBus (\r
@@ -1175,15 +1175,15 @@ PciScanBus (
 \r
 /**\r
   Wapper function of scanning pci bus and assign bus number to the given PCI bus system\r
-  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug  \r
+  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug.  \r
   \r
-  @param  Bridge          Bridge device instance\r
-  @param  StartBusNumber  start point\r
-  @param  SubBusNumber    Point to sub bus number\r
-  @param  PaddedBusRange  Customized bus number\r
+  @param  Bridge          Bridge device instance.\r
+  @param  StartBusNumber  start point.\r
+  @param  SubBusNumber    Point to sub bus number.\r
+  @param  PaddedBusRange  Customized bus number.\r
   \r
-  @retval EFI_SUCCESS     Success\r
-  @retval EFI_DEVICE_ERROR Fail to scan bus\r
+  @retval EFI_SUCCESS     Success.\r
+  @retval EFI_DEVICE_ERROR Fail to scan bus.\r
 **/\r
 EFI_STATUS\r
 PciScanBus_WithoutHotPlugDeviceSupport (\r
@@ -1353,15 +1353,15 @@ PciScanBus_WithoutHotPlugDeviceSupport (
 \r
 /**\r
   Wapper function of scanning pci bus and assign bus number to the given PCI bus system\r
-  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug  \r
+  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug.  \r
   \r
-  @param  Bridge          Bridge device instance\r
-  @param  StartBusNumber  start point\r
-  @param  SubBusNumber    Point to sub bus number\r
-  @param  PaddedBusRange  Customized bus number\r
+  @param  Bridge          Bridge device instance.\r
+  @param  StartBusNumber  start point.\r
+  @param  SubBusNumber    Point to sub bus number.\r
+  @param  PaddedBusRange  Customized bus number.\r
   \r
-  @retval EFI_SUCCESS     Success\r
-  @retval EFI_DEVICE_ERROR Fail to scan bus\r
+  @retval EFI_SUCCESS     Success.\r
+  @retval EFI_DEVICE_ERROR Fail to scan bus.\r
 **/\r
 EFI_STATUS\r
 PciScanBus_WithHotPlugDeviceSupport (\r
@@ -1642,11 +1642,11 @@ PciScanBus_WithHotPlugDeviceSupport (
 }\r
 \r
 /**\r
-  Process Option Rom on this host bridge\r
+  Process Option Rom on this host bridge.\r
   \r
-  @param Bridge  Pci bridge device instance\r
+  @param Bridge  Pci bridge device instance.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 PciRootBridgeP2CProcess (\r
@@ -1712,12 +1712,12 @@ PciRootBridgeP2CProcess (
 }\r
 \r
 /**\r
-  Process Option Rom on this host bridge\r
+  Process Option Rom on this host bridge.\r
   \r
-  @param PciResAlloc Pointer to instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
+  @param PciResAlloc Pointer to instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
   \r
-  @retval EFI_NOT_FOUND Can not find the root bridge instance\r
-  @retval EFI_SUCCESS   Success process\r
+  @retval EFI_NOT_FOUND Can not find the root bridge instance.\r
+  @retval EFI_SUCCESS   Success process.\r
 **/\r
 EFI_STATUS\r
 PciHostBridgeP2CProcess (\r
@@ -1758,12 +1758,12 @@ PciHostBridgeP2CProcess (
 \r
 /**\r
   This function is used to enumerate the entire host bridge\r
-  in a given platform\r
+  in a given platform.\r
 \r
   @param PciResAlloc   A pointer to the resource allocate protocol.\r
 \r
-  @retval EFI_OUT_OF_RESOURCES no enough resource\r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_OUT_OF_RESOURCES no enough resource.\r
+  @retval EFI_SUCCESS Success.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1998,7 +1998,7 @@ PciHostBridgeEnumerator (
   @param  PciIo               A pointer to EFI_PCI_PROTOCOL.\r
   @param  PciDeviceInfo       A pointer to EFI_PCI_DEVICE_INFO.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -2158,7 +2158,8 @@ ReadConfigData (
 \r
   @param  PciDeviceInfo       A pointer to EFI_PCI_DEVICE_INFO.\r
   @param  AccessType          Access type, READ or WRITE.\r
-  @Param  Address             The address within the PCI configuration space.\r
+  @param  Width               Signifies the width of the memory operations.\r
+  @param  Address             The address within the PCI configuration space.\r
   @param  Buffer              Store the register data.\r
 \r
   @retval EFI_SUCCESS         The data has been updated.\r
@@ -2229,7 +2230,7 @@ UpdateConfigData (
   @param  PciIo               A pointer to EFI_PCI_PROTOCOL.\r
   @param  PciDeviceInfo       A pointer to EFI_PCI_DEVICE_INFO.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -2407,7 +2408,7 @@ WriteConfigData (
   @param  PciRootBridgeIo     A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  PciIo               A pointer to EFI_PCI_PROTOCOL.\r
   @param  Pci                 A pointer to PCI_TYPE00.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
   @param  PciDeviceInfo       A pointer to EFI_PCI_DEVICE_INFO.\r
 \r
   @retval EFI_SUCCESS         Pci device device information has been abstracted.\r
@@ -2508,7 +2509,8 @@ GetPciDeviceDeviceInfo (
   @param  PciIo               A pointer to the EFI_PCI_IO_PROTOCOL.\r
   @param  Pci                 A pointer to PCI_TYPE00.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be read.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -2574,7 +2576,8 @@ PciIncompatibilityCheckRead (
   @param  PciIo               A pointer to the EFI_PCI_IO_PROTOCOL.\r
   @param  Pci                 A pointer to PCI_TYPE00.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be write.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -2658,7 +2661,8 @@ PciIncompatibilityCheckWrite (
   @param  PciRootBridgeIo     A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Pci                 A pointer to PCI_TYPE00.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be read.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -2708,7 +2712,8 @@ PciRootBridgeIoRead (
   @param  PciRootBridgeIo     A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Pci                 A pointer to PCI_TYPE00.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be read.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -2758,7 +2763,8 @@ PciRootBridgeIoWrite (
 \r
   @param  PciIo               A pointer to the EFI_PCI_O_PROTOCOL.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be read.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -2806,7 +2812,8 @@ PciIoRead (
 \r
   @param  PciIo               A pointer to the EFI_PCI_O_PROTOCOL.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be read.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
index 4a79ad115868dfe0a4cd137df4c604dd04ee2631..b8df129bd20f3e1448109455cc51ae526664375f 100644 (file)
@@ -23,8 +23,8 @@ Revision History
 \r
 **/\r
 \r
-#ifndef _EFI_PCI_LIB_H\r
-#define _EFI_PCI_LIB_H\r
+#ifndef _EFI_PCI_LIB_H_\r
+#define _EFI_PCI_LIB_H_\r
 \r
 //\r
 // Mask definistions for PCD PcdPciIncompatibleDeviceSupportMask\r
@@ -60,9 +60,9 @@ InstallHotPlugRequestProtocol (
 \r
 /**\r
   Install protocol gEfiPciHotplugDeviceGuid into hotplug device\r
-  instance\r
+  instance.\r
   \r
-  @param PciIoDevice  hotplug device instance\r
+  @param PciIoDevice  hotplug device instance.\r
   \r
 **/\r
 VOID\r
@@ -72,9 +72,9 @@ InstallPciHotplugGuid (
 \r
 /**\r
   UnInstall protocol gEfiPciHotplugDeviceGuid into hotplug device\r
-  instance\r
+  instance.\r
   \r
-  @param PciIoDevice  hotplug device instance\r
+  @param PciIoDevice  hotplug device instance.\r
   \r
 **/\r
 VOID\r
@@ -83,9 +83,9 @@ UninstallPciHotplugGuid (
   );\r
 \r
 /**\r
-  Retrieve the BAR information via PciIo interface\r
+  Retrieve the BAR information via PciIo interface.\r
   \r
-  @param PciIoDevice Pci device instance\r
+  @param PciIoDevice Pci device instance.\r
 **/\r
 VOID\r
 GetBackPcCardBar (\r
@@ -96,8 +96,8 @@ GetBackPcCardBar (
   Remove rejected pci device from specific root bridge\r
   handle.\r
   \r
-  @param RootBridgeHandle  specific parent root bridge handle\r
-  @param Bridge            Bridge device instance\r
+  @param RootBridgeHandle  specific parent root bridge handle.\r
+  @param Bridge            Bridge device instance.\r
   \r
   @retval EFI_SUCCESS  Success operation.\r
 **/\r
@@ -110,7 +110,7 @@ RemoveRejectedPciDevices (
 /**\r
   Wrapper function for allocating resource for pci host bridge.\r
   \r
-  @param PciResAlloc Point to protocol instance EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
+  @param PciResAlloc Point to protocol instance EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
   \r
 **/\r
 EFI_STATUS\r
@@ -118,11 +118,23 @@ PciHostBridgeResourceAllocator (
   IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
   );\r
 \r
+/**\r
+  Wrapper function for allocating resource for pci host bridge without hotplug device support.\r
+  \r
+  @param PciResAlloc Point to protocol instance EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
+  \r
+**/\r
 EFI_STATUS\r
 PciHostBridgeResourceAllocator_WithoutHotPlugDeviceSupport (\r
   IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
   );\r
 \r
+/**\r
+  Wrapper function for allocating resource for pci host bridge with hotplug device support.\r
+  \r
+  @param PciResAlloc Point to protocol instance EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
+  \r
+**/\r
 EFI_STATUS\r
 PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (\r
   IN EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL *PciResAlloc\r
@@ -130,15 +142,15 @@ PciHostBridgeResourceAllocator_WithHotPlugDeviceSupport (
 \r
 /**\r
   Wapper function of scanning pci bus and assign bus number to the given PCI bus system\r
-  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug  \r
+  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug.  \r
   \r
-  @param  Bridge          Bridge device instance\r
-  @param  StartBusNumber  start point\r
-  @param  SubBusNumber    Point to sub bus number\r
-  @param  PaddedBusRange  Customized bus number\r
+  @param  Bridge          Bridge device instance.\r
+  @param  StartBusNumber  start point.\r
+  @param  SubBusNumber    Point to sub bus number.\r
+  @param  PaddedBusRange  Customized bus number.\r
   \r
-  @retval EFI_SUCCESS     Success\r
-  @retval EFI_DEVICE_ERROR Fail to scan bus\r
+  @retval EFI_SUCCESS     Success.\r
+  @retval EFI_DEVICE_ERROR Fail to scan bus.\r
 **/\r
 EFI_STATUS\r
 PciScanBus (\r
@@ -148,6 +160,18 @@ PciScanBus (
   OUT UINT8                             *PaddedBusRange\r
   );\r
 \r
+/**\r
+  Wapper function of scanning pci bus and assign bus number to the given PCI bus system\r
+  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug.  \r
+  \r
+  @param  Bridge          Bridge device instance.\r
+  @param  StartBusNumber  start point.\r
+  @param  SubBusNumber    Point to sub bus number.\r
+  @param  PaddedBusRange  Customized bus number.\r
+  \r
+  @retval EFI_SUCCESS     Success.\r
+  @retval EFI_DEVICE_ERROR Fail to scan bus.\r
+**/\r
 EFI_STATUS\r
 PciScanBus_WithHotPlugDeviceSupport (\r
   IN PCI_IO_DEVICE                      *Bridge,\r
@@ -156,6 +180,18 @@ PciScanBus_WithHotPlugDeviceSupport (
   OUT UINT8                             *PaddedBusRange\r
   );\r
 \r
+/**\r
+  Wapper function of scanning pci bus and assign bus number to the given PCI bus system\r
+  Feature flag PcdPciBusHotplugDeviceSupport determine whether need support hotplug.  \r
+  \r
+  @param  Bridge          Bridge device instance.\r
+  @param  StartBusNumber  start point.\r
+  @param  SubBusNumber    Point to sub bus number.\r
+  @param  PaddedBusRange  Customized bus number.\r
+  \r
+  @retval EFI_SUCCESS     Success.\r
+  @retval EFI_DEVICE_ERROR Fail to scan bus.\r
+**/\r
 EFI_STATUS\r
 PciScanBus_WithoutHotPlugDeviceSupport (\r
   IN PCI_IO_DEVICE                      *Bridge,\r
@@ -165,25 +201,24 @@ PciScanBus_WithoutHotPlugDeviceSupport (
   );\r
 \r
 /**\r
-  Process Option Rom on this host bridge\r
+  Process Option Rom on this host bridge.\r
   \r
-  @param Bridge  Pci bridge device instance\r
+  @param Bridge  Pci bridge device instance.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
-\r
 EFI_STATUS\r
 PciRootBridgeP2CProcess (\r
   IN PCI_IO_DEVICE *Bridge\r
   );\r
 \r
 /**\r
-  Process Option Rom on this host bridge\r
+  Process Option Rom on this host bridge.\r
   \r
-  @param PciResAlloc Pointer to instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL\r
+  @param PciResAlloc Pointer to instance of EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL.\r
   \r
-  @retval EFI_NOT_FOUND Can not find the root bridge instance\r
-  @retval EFI_SUCCESS   Success process\r
+  @retval EFI_NOT_FOUND Can not find the root bridge instance.\r
+  @retval EFI_SUCCESS   Success process.\r
 **/\r
 EFI_STATUS\r
 PciHostBridgeP2CProcess (\r
@@ -192,15 +227,14 @@ PciHostBridgeP2CProcess (
 \r
 /**\r
   This function is used to enumerate the entire host bridge\r
-  in a given platform\r
+  in a given platform.\r
 \r
   @param PciResAlloc   A pointer to the resource allocate protocol.\r
 \r
-  @retval EFI_OUT_OF_RESOURCES no enough resource\r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_OUT_OF_RESOURCES no enough resource.\r
+  @retval EFI_SUCCESS Success.\r
 \r
 **/\r
-\r
 EFI_STATUS\r
 PciHostBridgeEnumerator (\r
   EFI_PCI_HOST_BRIDGE_RESOURCE_ALLOCATION_PROTOCOL  *PciResAlloc\r
@@ -211,7 +245,8 @@ PciHostBridgeEnumerator (
 \r
   @param  PciIo               A pointer to the EFI_PCI_O_PROTOCOL.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be read.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -235,7 +270,8 @@ PciIoRead (
 \r
   @param  PciIo               A pointer to the EFI_PCI_O_PROTOCOL.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be write.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -260,7 +296,8 @@ PciIoWrite (
   @param  PciRootBridgeIo     A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Pci                 A pointer to PCI_TYPE00.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be write.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -286,7 +323,8 @@ PciRootBridgeIoWrite (
   @param  PciRootBridgeIo     A pointer to the EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.\r
   @param  Pci                 A pointer to PCI_TYPE00.\r
   @param  Width               Signifies the width of the memory operations.\r
-  @Param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Address             The address within the PCI configuration space for the PCI controller.\r
+  @param  Count               The number of unit to be read.\r
   @param  Buffer              For read operations, the destination buffer to store the results. For\r
                               write operations, the source buffer to write data from.\r
 \r
@@ -299,7 +337,7 @@ PciRootBridgeIoWrite (
 EFI_STATUS\r
 PciRootBridgeIoRead (\r
   IN       EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL        *PciRootBridgeIo,\r
-  IN       PCI_TYPE00                             *Pci,\r
+  IN       PCI_TYPE00                             *Pci,         OPTIONAL\r
   IN       EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH  Width,\r
   IN       UINT64                                 Address,\r
   IN       UINTN                                  Count,\r
index 09d314f4ff8fc6d6311e4d5af5e4c84338e844f7..379a2e4cd43311f85220ce212bd29e2c176e7cd7 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
@@ -36,6 +36,8 @@ MEMMAP_DEVICE_PATH  mPciOptionRomImageDevicePathNodeTemplate = {
 /**\r
   Get Pci device's oprom infor bits.\r
   \r
+  @param PciIoDevice Pci device instance\r
+\r
   @retval EFI_NOT_FOUND Pci device has not oprom\r
   @retval EFI_SUCCESS   Pci device has oprom\r
 **/\r
index 0bb9444e787d08f7180266cac51ea0d55859ca2f..de84f2825b573da191d20fdd6cfd970cfc24a278 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -11,12 +11,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef _EFI_PCI_OP_ROM_SUPPORT_H\r
-#define _EFI_PCI_OP_ROM_SUPPORT_H\r
+#ifndef _EFI_PCI_OP_ROM_SUPPORT_H_\r
+#define _EFI_PCI_OP_ROM_SUPPORT_H_\r
 \r
 /**\r
   Get Pci device's oprom infor bits.\r
   \r
+  @param PciIoDevice Pci device instance\r
+\r
   @retval EFI_NOT_FOUND Pci device has not oprom\r
   @retval EFI_SUCCESS   Pci device has oprom\r
 **/\r
index 1ccdfa87dcfa883866cc8c6c98e32c2fa5f5ea19..04d188e9ab1375c6d5a1bcc37d6de5a3829b89dd 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
index 1f15e7403a8df77e745ccebd1cb9f22cf4c35293..9697a57050ac5aa8ea2c237a5a442d3d2a14e5b0 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -11,8 +11,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef _EFI_PCI_POWER_MANAGEMENT_H\r
-#define _EFI_PCI_POWER_MANAGEMENT_H\r
+#ifndef _EFI_PCI_POWER_MANAGEMENT_H_\r
+#define _EFI_PCI_POWER_MANAGEMENT_H_\r
 \r
 /**\r
   This function is intended to turn off PWE assertion and\r
index ab641e6691785aca00150f938d3572897a1ee01c..b40b01ea6fff224e87583ff27f05a94e11a24742 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
@@ -21,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   @param Start    address including VGA range\r
   @param Length   length of VGA range.\r
   \r
-  @retval EFI_SUCCESS success\r
+  @retval EFI_SUCCESS success.\r
 **/\r
 EFI_STATUS\r
 SkipVGAAperture (\r
@@ -50,12 +50,12 @@ SkipVGAAperture (
 }\r
 \r
 /**\r
-  This function is used to skip ISA aliasing aperture\r
+  This function is used to skip ISA aliasing aperture.\r
   \r
-  @param Start    address including ISA aliasing aperture\r
-  @param Length   length of ISA aliasing aperture\r
+  @param Start    address including ISA aliasing aperture.\r
+  @param Length   length of ISA aliasing aperture.\r
   \r
-  @retval EFI_SUCCESS success\r
+  @retval EFI_SUCCESS success.\r
 **/\r
 EFI_STATUS\r
 SkipIsaAliasAperture (\r
@@ -89,10 +89,10 @@ SkipIsaAliasAperture (
   This function inserts a resource node into the resource list.\r
   The resource list is sorted in descend order.\r
 \r
-  @param Bridge  PCI resource node for bridge\r
-  @param ResNode Resource node want to be inserted\r
+  @param Bridge  PCI resource node for bridge.\r
+  @param ResNode Resource node want to be inserted.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 InsertResourceNode (\r
@@ -141,13 +141,13 @@ Routine Description:
   If the TypeMerge is TRUE, Res resource type is changed to the type of destination resource\r
   type.\r
 \r
-  @param Dst        Point to destination resource tree\r
-  @param Res        Point to source resource tree\r
+  @param Dst        Point to destination resource tree.\r
+  @param Res        Point to source resource tree.\r
   @param TypeMerge  If the TypeMerge is TRUE, Res resource type is changed to the type of \r
                     destination resource type.\r
                     \r
                     \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 MergeResourceTree (\r
@@ -183,7 +183,7 @@ MergeResourceTree (
 \r
   @param Bridge PCI resource node for bridge.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 CalculateApertureIo16 (\r
@@ -311,11 +311,11 @@ CalculateApertureIo16 (
 \r
 /**\r
   This function is used to calculate the resource aperture\r
-  for a given bridge device\r
+  for a given bridge device.\r
 \r
-  @param Bridge Give bridge device\r
+  @param Bridge Give bridge device.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 CalculateResourceAperture (\r
@@ -411,16 +411,16 @@ CalculateResourceAperture (
 }\r
 \r
 /**\r
-  Get IO/Memory resource infor for given PCI device\r
+  Get IO/Memory resource infor for given PCI device.\r
   \r
-  @param PciDev     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO .\r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 GetResourceFromDevice (\r
@@ -558,14 +558,14 @@ GetResourceFromDevice (
 }\r
 \r
 /**\r
-  This function is used to create a resource node\r
-\r
-  @param PciDev       Pci device instance\r
-  @param Length       Length of Io/Memory resource\r
-  @param Alignment    Alignment of resource\r
-  @param Bar          Bar index \r
-  @param ResType      Type of resource: IO/Memory\r
-  @param ResUage      Resource usage\r
+  This function is used to create a resource node.\r
+\r
+  @param PciDev       Pci device instance.\r
+  @param Length       Length of Io/Memory resource.\r
+  @param Alignment    Alignment of resource.\r
+  @param Bar          Bar index.\r
+  @param ResType      Type of resource: IO/Memory.\r
+  @param ResUsage     Resource usage.\r
 **/\r
 PCI_RESOURCE_NODE *\r
 CreateResourceNode (\r
@@ -605,14 +605,14 @@ CreateResourceNode (
   This routine is used to extract resource request from\r
   device node list.\r
 \r
-  @param Bridge     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param Bridge     Pci device instance.\r
+  @param IoNode     Resource info node for IO.\r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
 \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 CreateResourceMap (\r
@@ -849,16 +849,16 @@ CreateResourceMap (
 }\r
 \r
 /**\r
-  This function is used to do the resource padding for a specific platform\r
+  This function is used to do the resource padding for a specific platform.\r
 \r
-  @param Bridge     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO.\r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
 \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ResourcePaddingPolicy (\r
@@ -893,16 +893,15 @@ ResourcePaddingPolicy (
   doesn't support certain resource. Degradation path is \r
   PMEM64 -> MEM64  -> MEM32\r
   PMEM64 -> PMEM32 -> MEM32\r
-  IO32   -> IO16\r
+  IO32   -> IO16.\r
 \r
-  @param Bridge     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param Bridge     Pci device instance.\r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
 \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 DegradeResource (\r
@@ -1008,10 +1007,11 @@ DegradeResource (
 /**\r
   Test whether bridge device support decode resource\r
   \r
-  @param Bridge    Bridge device instance\r
-  @param Decode    Decode type according to resource type\r
+  @param Bridge    Bridge device instance.\r
+  @param Decode    Decode type according to resource type.\r
   \r
-  @return whether bridge device support decode resource\r
+  @return TRUE  bridge device support decode resource.\r
+  @return FALSE bridge device don't support decode resource.\r
   \r
 **/\r
 BOOLEAN\r
@@ -1030,13 +1030,13 @@ BridgeSupportResourceDecode (
 \r
 /**\r
   This function is used to program the resource allocated \r
-  for each resource node\r
+  for each resource node.\r
 \r
   \r
-  @param Base     Base address of resource\r
-  @param Bridge   Bridge device instance\r
+  @param Base     Base address of resource.\r
+  @param Bridge   Bridge device instance.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgramResource (\r
@@ -1084,10 +1084,10 @@ ProgramResource (
 /**\r
   Program Bar register.\r
   \r
-  @param Base  Base address for resource\r
-  @param Node  Point to resoure node structure\r
+  @param Base  Base address for resource.\r
+  @param Node  Point to resoure node structure.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgramBar (\r
@@ -1166,12 +1166,12 @@ ProgramBar (
 }\r
 \r
 /**\r
-  Program PPB apperture\r
+  Program PPB apperture.\r
   \r
-  @param Base  Base address for resource\r
-  @param Node  Point to resoure node structure\r
+  @param Base  Base address for resource.\r
+  @param Node  Point to resoure node structure.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgramPpbApperture (\r
@@ -1340,13 +1340,13 @@ ProgramPpbApperture (
 }\r
 \r
 /**\r
-  Program parent bridge for oprom\r
+  Program parent bridge for oprom.\r
   \r
-  @param PciDevice      Pci deivce instance\r
-  @param OptionRomBase  Base address for oprom\r
-  @param Enable         Enable/Disable\r
+  @param PciDevice      Pci deivce instance.\r
+  @param OptionRomBase  Base address for oprom.\r
+  @param Enable         Enable/Disable.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgrameUpstreamBridgeForRom (\r
@@ -1392,11 +1392,11 @@ ProgrameUpstreamBridgeForRom (
 }\r
 \r
 /**\r
-  Test whether resource exists for a bridge\r
+  Test whether resource exists for a bridge.\r
   \r
-  @param Bridge  Point to resource node for a bridge \r
+  @param Bridge  Point to resource node for a bridge.\r
   \r
-  @return whether resource exists\r
+  @return whether resource exists.\r
 **/\r
 BOOLEAN\r
 ResourceRequestExisted (\r
@@ -1415,8 +1415,8 @@ ResourceRequestExisted (
 /**\r
   Initialize resource pool structure.\r
   \r
-  @param ResourcePool Point to resource pool structure\r
-  @param ResourceType Type of resource\r
+  @param ResourcePool Point to resource pool structure.\r
+  @param ResourceType Type of resource.\r
 **/\r
 EFI_STATUS\r
 InitializeResourcePool (\r
@@ -1434,21 +1434,21 @@ InitializeResourcePool (
 }\r
 \r
 /**\r
-  Get all resource information for given Pci device\r
+  Get all resource information for given Pci device.\r
   \r
-  @param PciDev         Pci device instance\r
-  @param IoBridge       Io resource node\r
-  @param Mem32Bridge    32-bit memory node\r
-  @param PMem32Bridge   32-bit Pmemory node\r
-  @param Mem64Bridge    64-bit memory node\r
-  @param PMem64Bridge   64-bit PMemory node\r
-  @param IoPool         Link list header for Io resource\r
-  @param Mem32Pool      Link list header for 32-bit memory\r
-  @param PMem32Pool     Link list header for 32-bit Pmemory\r
-  @param Mem64Pool      Link list header for 64-bit memory\r
-  @param PMem64Pool     Link list header for 64-bit Pmemory\r
+  @param PciDev         Pci device instance.\r
+  @param IoBridge       Io resource node.\r
+  @param Mem32Bridge    32-bit memory node.\r
+  @param PMem32Bridge   32-bit Pmemory node.\r
+  @param Mem64Bridge    64-bit memory node.\r
+  @param PMem64Bridge   64-bit PMemory node.\r
+  @param IoPool         Link list header for Io resource.\r
+  @param Mem32Pool      Link list header for 32-bit memory.\r
+  @param PMem32Pool     Link list header for 32-bit Pmemory.\r
+  @param Mem64Pool      Link list header for 64-bit memory.\r
+  @param PMem64Pool     Link list header for 64-bit Pmemory.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 GetResourceMap (\r
@@ -1553,11 +1553,11 @@ GetResourceMap (
 }\r
 \r
 /**\r
-  Destory given resource tree\r
+  Destory given resource tree.\r
   \r
-  @param Bridge  root node of resource tree\r
+  @param Bridge  root node of resource tree.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 DestroyResourceTree (\r
@@ -1588,10 +1588,10 @@ DestroyResourceTree (
 /**\r
   Record the reserved resource and insert to reserved list.\r
   \r
-  @param Base     Base address of reserved resourse\r
-  @param Length   Length of reserved resource \r
-  @param ResType  Resource type\r
-  @param Bridge   Pci device instance\r
+  @param Base     Base address of reserved resourse.\r
+  @param Length   Length of reserved resource. \r
+  @param ResType  Resource type.\r
+  @param Bridge   Pci device instance.\r
 **/\r
 EFI_STATUS\r
 RecordReservedResource (\r
@@ -1619,16 +1619,16 @@ RecordReservedResource (
 }\r
 \r
 /**\r
-  Insert resource padding for P2C\r
+  Insert resource padding for P2C.\r
   \r
-  @param PciDev     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO. \r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ResourcePaddingForCardBusBridge (\r
@@ -1959,14 +1959,14 @@ ProgramP2C (
 /**\r
   Create padding resource node.\r
   \r
-  @param PciDev     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO. \r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -2117,11 +2117,11 @@ ApplyResourcePadding (
 }\r
 \r
 /**\r
-  Get padding resource for PPB\r
+  Get padding resource for PPB.\r
   Light PCI bus driver woundn't support hotplug root device\r
-  So no need to pad resource for them\r
+  So no need to pad resource for them.\r
 \r
-  @param   PciIoDevice Pci device instance\r
+  @param   PciIoDevice Pci device instance.\r
 **/\r
 VOID\r
 GetResourcePaddingPpb (\r
index 710bf11880536815784fadc144cac65f9deb0ce8..9b25dbd1010e361c32e1c19c35bece5adb6ca571 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -11,8 +11,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef _EFI_PCI_RESOURCE_SUPPORT_H\r
-#define _EFI_PCI_RESOURCE_SUPPORT_H\r
+#ifndef _EFI_PCI_RESOURCE_SUPPORT_H_\r
+#define _EFI_PCI_RESOURCE_SUPPORT_H_\r
 \r
 #define RESERVED_RESOURCE_SIGNATURE SIGNATURE_32 ('r', 's', 'v', 'd')\r
 \r
@@ -65,7 +65,7 @@ typedef struct {
   @param Start    address including VGA range\r
   @param Length   length of VGA range.\r
   \r
-  @retval EFI_SUCCESS success\r
+  @retval EFI_SUCCESS success.\r
 **/\r
 EFI_STATUS\r
 SkipVGAAperture (\r
@@ -74,12 +74,12 @@ SkipVGAAperture (
   );\r
 \r
 /**\r
-  This function is used to skip ISA aliasing aperture\r
+  This function is used to skip ISA aliasing aperture.\r
   \r
-  @param Start    address including ISA aliasing aperture\r
-  @param Length   length of ISA aliasing aperture\r
+  @param Start    address including ISA aliasing aperture.\r
+  @param Length   length of ISA aliasing aperture.\r
   \r
-  @retval EFI_SUCCESS success\r
+  @retval EFI_SUCCESS success.\r
 **/\r
 EFI_STATUS\r
 SkipIsaAliasAperture (\r
@@ -91,10 +91,10 @@ SkipIsaAliasAperture (
   This function inserts a resource node into the resource list.\r
   The resource list is sorted in descend order.\r
 \r
-  @param Bridge  PCI resource node for bridge\r
-  @param ResNode Resource node want to be inserted\r
+  @param Bridge  PCI resource node for bridge.\r
+  @param ResNode Resource node want to be inserted.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 InsertResourceNode (\r
@@ -114,8 +114,8 @@ Routine Description:
   If the TypeMerge is TRUE, Res resource type is changed to the type of destination resource\r
   type.\r
 \r
-  @param Dst        Point to destination resource tree\r
-  @param Res        Point to source resource tree\r
+  @param Dst        Point to destination resource tree.\r
+  @param Res        Point to source resource tree.\r
   @param TypeMerge  If the TypeMerge is TRUE, Res resource type is changed to the type of \r
                     destination resource type.\r
                     \r
@@ -135,7 +135,7 @@ MergeResourceTree (
 \r
   @param Bridge PCI resource node for bridge.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 CalculateApertureIo16 (\r
@@ -144,11 +144,11 @@ CalculateApertureIo16 (
 \r
 /**\r
   This function is used to calculate the resource aperture\r
-  for a given bridge device\r
+  for a given bridge device.\r
 \r
-  @param Bridge Give bridge device\r
+  @param Bridge Give bridge device.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 CalculateResourceAperture (\r
@@ -156,16 +156,16 @@ CalculateResourceAperture (
   );\r
 \r
 /**\r
-  Get IO/Memory resource infor for given PCI device\r
+  Get IO/Memory resource infor for given PCI device.\r
   \r
-  @param PciDev     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO .\r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 GetResourceFromDevice (\r
@@ -178,14 +178,14 @@ GetResourceFromDevice (
   );\r
 \r
 /**\r
-  This function is used to create a resource node\r
-\r
-  @param PciDev       Pci device instance\r
-  @param Length       Length of Io/Memory resource\r
-  @param Alignment    Alignment of resource\r
-  @param Bar          Bar index \r
-  @param ResType      Type of resource: IO/Memory\r
-  @param ResUage      Resource usage\r
+  This function is used to create a resource node.\r
+\r
+  @param PciDev       Pci device instance.\r
+  @param Length       Length of Io/Memory resource.\r
+  @param Alignment    Alignment of resource.\r
+  @param Bar          Bar index.\r
+  @param ResType      Type of resource: IO/Memory.\r
+  @param ResUsage     Resource usage.\r
 **/\r
 PCI_RESOURCE_NODE *\r
 CreateResourceNode (\r
@@ -201,14 +201,14 @@ CreateResourceNode (
   This routine is used to extract resource request from\r
   device node list.\r
 \r
-  @param Bridge     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param Bridge     Pci device instance.\r
+  @param IoNode     Resource info node for IO.\r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
 \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 CreateResourceMap (\r
@@ -221,16 +221,16 @@ CreateResourceMap (
   );\r
 \r
 /**\r
-  This function is used to do the resource padding for a specific platform\r
+  This function is used to do the resource padding for a specific platform.\r
 \r
-  @param Bridge     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO. \r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
 \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ResourcePaddingPolicy (\r
@@ -249,14 +249,13 @@ ResourcePaddingPolicy (
   PMEM64 -> PMEM32 -> MEM32\r
   IO32   -> IO16\r
 \r
-  @param Bridge     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param Bridge     Pci device instance.\r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
 \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 DegradeResource (\r
@@ -268,12 +267,12 @@ DegradeResource (
   );\r
 \r
 /**\r
-  Test whether bridge device support decode resource\r
+  Test whether bridge device support decode resource.\r
   \r
-  @param Bridge    Bridge device instance\r
-  @param Decode    Decode type according to resource type\r
+  @param Bridge    Bridge device instance.\r
+  @param Decode    Decode type according to resource type.\r
   \r
-  @return whether bridge device support decode resource\r
+  @return whether bridge device support decode resource.\r
   \r
 **/\r
 BOOLEAN\r
@@ -284,13 +283,13 @@ BridgeSupportResourceDecode (
 \r
 /**\r
   This function is used to program the resource allocated \r
-  for each resource node\r
+  for each resource node.\r
 \r
   \r
-  @param Base     Base address of resource\r
-  @param Bridge   Bridge device instance\r
+  @param Base     Base address of resource.\r
+  @param Bridge   Bridge device instance.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgramResource (\r
@@ -301,10 +300,10 @@ ProgramResource (
 /**\r
   Program Bar register.\r
   \r
-  @param Base  Base address for resource\r
-  @param Node  Point to resoure node structure\r
+  @param Base  Base address for resource.\r
+  @param Node  Point to resoure node structure.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgramBar (\r
@@ -313,12 +312,12 @@ ProgramBar (
   );\r
 \r
 /**\r
-  Program PPB apperture\r
+  Program PPB apperture.\r
   \r
-  @param Base  Base address for resource\r
-  @param Node  Point to resoure node structure\r
+  @param Base  Base address for resource.\r
+  @param Node  Point to resoure node structure.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgramPpbApperture (\r
@@ -327,13 +326,13 @@ ProgramPpbApperture (
   );\r
 \r
 /**\r
-  Program parent bridge for oprom\r
+  Program parent bridge for oprom.\r
   \r
-  @param PciDevice      Pci deivce instance\r
-  @param OptionRomBase  Base address for oprom\r
-  @param Enable         Enable/Disable\r
+  @param PciDevice      Pci deivce instance.\r
+  @param OptionRomBase  Base address for oprom.\r
+  @param Enable         Enable/Disable.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgrameUpstreamBridgeForRom (\r
@@ -343,11 +342,11 @@ ProgrameUpstreamBridgeForRom (
   );\r
 \r
 /**\r
-  Test whether resource exists for a bridge\r
+  Test whether resource exists for a bridge.\r
   \r
-  @param Bridge  Point to resource node for a bridge \r
+  @param Bridge  Point to resource node for a bridge.\r
   \r
-  @return whether resource exists\r
+  @return whether resource exists.\r
 **/\r
 BOOLEAN\r
 ResourceRequestExisted (\r
@@ -357,8 +356,8 @@ ResourceRequestExisted (
 /**\r
   Initialize resource pool structure.\r
   \r
-  @param ResourcePool Point to resource pool structure\r
-  @param ResourceType Type of resource\r
+  @param ResourcePool Point to resource pool structure.\r
+  @param ResourceType Type of resource.\r
 **/\r
 EFI_STATUS\r
 InitializeResourcePool (\r
@@ -367,21 +366,21 @@ InitializeResourcePool (
   );\r
 \r
 /**\r
-  Get all resource information for given Pci device\r
-  \r
-  @param PciDev         Pci device instance\r
-  @param IoBridge       Io resource node\r
-  @param Mem32Bridge    32-bit memory node\r
-  @param PMem32Bridge   32-bit Pmemory node\r
-  @param Mem64Bridge    64-bit memory node\r
-  @param PMem64Bridge   64-bit PMemory node\r
-  @param IoPool         Link list header for Io resource\r
-  @param Mem32Pool      Link list header for 32-bit memory\r
-  @param PMem32Pool     Link list header for 32-bit Pmemory\r
-  @param Mem64Pool      Link list header for 64-bit memory\r
-  @param PMem64Pool     Link list header for 64-bit Pmemory\r
-  \r
-  @retval EFI_SUCCESS Success\r
+  Get all resource information for given Pci device.\r
+  \r
+  @param PciDev         Pci device instance.\r
+  @param IoBridge       Io resource node.\r
+  @param Mem32Bridge    32-bit memory node.\r
+  @param PMem32Bridge   32-bit Pmemory node.\r
+  @param Mem64Bridge    64-bit memory node.\r
+  @param PMem64Bridge   64-bit PMemory node.\r
+  @param IoPool         Link list header for Io resource.\r
+  @param Mem32Pool      Link list header for 32-bit memory.\r
+  @param PMem32Pool     Link list header for 32-bit Pmemory.\r
+  @param Mem64Pool      Link list header for 64-bit memory.\r
+  @param PMem64Pool     Link list header for 64-bit Pmemory.\r
+  \r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 GetResourceMap (\r
@@ -399,11 +398,11 @@ GetResourceMap (
   );\r
 \r
 /**\r
-  Destory given resource tree\r
+  Destory given resource tree.\r
   \r
-  @param Bridge  root node of resource tree\r
+  @param Bridge  root node of resource tree.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 DestroyResourceTree (\r
@@ -413,10 +412,10 @@ DestroyResourceTree (
 /**\r
   Record the reserved resource and insert to reserved list.\r
   \r
-  @param Base     Base address of reserved resourse\r
-  @param Length   Length of reserved resource \r
-  @param ResType  Resource type\r
-  @param Bridge   Pci device instance\r
+  @param Base     Base address of reserved resourse.\r
+  @param Length   Length of reserved resource.\r
+  @param ResType  Resource type.\r
+  @param Bridge   Pci device instance.\r
 **/\r
 EFI_STATUS\r
 RecordReservedResource (\r
@@ -427,16 +426,16 @@ RecordReservedResource (
   );\r
 \r
 /**\r
-  Insert resource padding for P2C\r
+  Insert resource padding for P2C.\r
   \r
-  @param PciDev     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO. \r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ResourcePaddingForCardBusBridge (\r
@@ -449,12 +448,12 @@ ResourcePaddingForCardBusBridge (
   );\r
 \r
 /**\r
-  Program P2C register for given resource node\r
+  Program P2C register for given resource node.\r
   \r
-  @param Base    Base address of P2C device\r
+  @param Base    Base address of P2C device.\r
   @param Node    Given resource node.\r
   \r
-  @retval EFI_SUCCESS Success\r
+  @retval EFI_SUCCESS Success.\r
 **/\r
 EFI_STATUS\r
 ProgramP2C (\r
@@ -465,12 +464,12 @@ ProgramP2C (
 /**\r
   Create padding resource node.\r
   \r
-  @param PciDev     Pci device instance\r
-  @param IoNode     Resource info node for IO \r
-  @param Mem32Node  Resource info node for 32-bit memory\r
-  @param PMem32Node Resource info node for 32-bit PMemory\r
-  @param Mem64Node  Resource info node for 64-bit memory\r
-  @param PMem64Node Resource info node for 64-bit PMemory\r
+  @param PciDev     Pci device instance.\r
+  @param IoNode     Resource info node for IO. \r
+  @param Mem32Node  Resource info node for 32-bit memory.\r
+  @param PMem32Node Resource info node for 32-bit PMemory.\r
+  @param Mem64Node  Resource info node for 64-bit memory.\r
+  @param PMem64Node Resource info node for 64-bit PMemory.\r
   \r
   @retval EFI_SUCCESS Success\r
 \r
@@ -488,9 +487,9 @@ ApplyResourcePadding (
 /**\r
   Get padding resource for PPB\r
   Light PCI bus driver woundn't support hotplug root device\r
-  So no need to pad resource for them\r
+  So no need to pad resource for them.\r
 \r
-  @param   PciIoDevice Pci device instance\r
+  @param   PciIoDevice Pci device instance.\r
 **/\r
 VOID\r
 GetResourcePaddingPpb (\r
@@ -500,8 +499,8 @@ GetResourcePaddingPpb (
 /**\r
   Reset and all bus number from specific bridge.\r
   \r
-  @param Bridge           Parent specific bridge\r
-  @param StartBusNumber   start bus number\r
+  @param Bridge           Parent specific bridge.\r
+  @param StartBusNumber   start bus number.\r
 **/\r
 EFI_STATUS\r
 ResetAllPpbBusNumber (\r
index 339b33c8a13be692d5dd78446de2dcc2ff7782f2..f64c64ee39b5a61d799e818bf1e2a73f7e973b97 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
   Option Rom Support for PCI Bus Driver\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
@@ -30,14 +30,14 @@ UINTN                      mMaxNumberOfPciRomImages  = 0;
 EFI_PCI_ROM_IMAGE_MAPPING  *mRomImageTable           = NULL;\r
 \r
 /**\r
-  Add the Rom Image to internal database for later PCI light enumeration\r
+  Add the Rom Image to internal database for later PCI light enumeration.\r
   \r
-  @param ImageHandle    Option Rom image handle\r
-  @param Seg            Segment of PCI space\r
-  @param Bus            Bus NO of PCI space\r
-  @param Dev            Dev NO of PCI space\r
-  @param Func           Func NO of PCI space\r
-  @param RomAddress     Base address of OptionRom\r
+  @param ImageHandle    Option Rom image handle.\r
+  @param Seg            Segment of PCI space.\r
+  @param Bus            Bus NO of PCI space.\r
+  @param Dev            Dev NO of PCI space.\r
+  @param Func           Func NO of PCI space.\r
+  @param RomAddress     Base address of OptionRom.\r
   @param RomLength      Length of rom image.\r
 **/\r
 VOID\r
index 4e01012d64441268fb8c85e92a07a304347b52d3..5b475cd0cc5de032ba77e02c1d9065fac5286edd 100644 (file)
@@ -1,4 +1,4 @@
-/**@file\r
+/** @file\r
   Option Rom Support for PCI Bus Driver\r
 \r
 Copyright (c) 2006, Intel Corporation                                                         \r
@@ -12,18 +12,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef _EFI_PCI_ROM_TABLE_H\r
-#define _EFI_PCI_ROM_TABLE_H\r
+#ifndef _EFI_PCI_ROM_TABLE_H_\r
+#define _EFI_PCI_ROM_TABLE_H_\r
 \r
 /**\r
-  Add the Rom Image to internal database for later PCI light enumeration\r
+  Add the Rom Image to internal database for later PCI light enumeration.\r
   \r
-  @param ImageHandle    Option Rom image handle\r
-  @param Seg            Segment of PCI space\r
-  @param Bus            Bus NO of PCI space\r
-  @param Dev            Dev NO of PCI space\r
-  @param Func           Func NO of PCI space\r
-  @param RomAddress     Base address of OptionRom\r
+  @param ImageHandle    Option Rom image handle.\r
+  @param Seg            Segment of PCI space.\r
+  @param Bus            Bus NO of PCI space.\r
+  @param Dev            Dev NO of PCI space.\r
+  @param Func           Func NO of PCI space.\r
+  @param RomAddress     Base address of OptionRom.\r
   @param RomLength      Length of rom image.\r
 **/\r
 VOID\r
@@ -39,9 +39,9 @@ PciRomAddImageMapping (
 /**\r
   Load all option rom image to PCI driver list.\r
   \r
-  @param This             Pointer to protocol instance EFI_DRIVER_BINDING_PROTOCOL\r
-  @param PciRootBridgeIo  Root bridge Io instance\r
-  @param PciIoDevice      device instance\r
+  @param This             Pointer to protocol instance EFI_DRIVER_BINDING_PROTOCOL.\r
+  @param PciRootBridgeIo  Root bridge Io instance.\r
+  @param PciIoDevice      device instance.\r
 **/\r
 EFI_STATUS\r
 PciRomGetRomResourceFromPciOptionRomTable (\r
index 2e6f56f0dfcad0db1b70f1e24698a6bc84b02984..b0963a45f8134e53a45d2c52cfdae6c797ffed41 100644 (file)
@@ -36,8 +36,8 @@ EFI_DRIVER_BINDING_PROTOCOL gPciVgaMiniPortDriverBinding = {
 /**\r
   Driver entry point for VgaMiniPort driver.\r
   \r
-  @param ImageHandle  Driver image handle\r
-  @param SystemTable  Point to EFI_SYSTEM_TABLE\r
+  @param ImageHandle  Driver image handle.\r
+  @param SystemTable  Point to EFI_SYSTEM_TABLE.\r
   \r
   @retval Status of install driver binding protocol.\r
 **/\r
@@ -64,7 +64,12 @@ PciVgaMiniPortDriverEntryPoint (
 \r
   (Standard DriverBinding Protocol Supported() function)\r
 \r
-  @return EFI_STATUS\r
+  @param  This                   The driver binding protocol.\r
+  @param  Controller             The controller handle to check.\r
+  @param  RemainingDevicePath    The remaining device path.\r
+\r
+  @retval EFI_SUCCESS            The driver supports this controller.\r
+  @retval EFI_UNSUPPORTED        This device isn't supported.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -134,7 +139,13 @@ Done:
 \r
   (Standard DriverBinding Protocol Start() function)\r
 \r
-  @return EFI_STATUS\r
+  @param  This                   The driver binding instance.\r
+  @param  Controller             The controller to check.\r
+  @param  RemainingDevicePath    The remaining device patch.\r
+\r
+  @retval EFI_SUCCESS            The controller is controlled by the driver.\r
+  @retval EFI_ALREADY_STARTED    The controller is already controlled by the driver.\r
+  @retval EFI_OUT_OF_RESOURCES   Failed to allocate resources.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -212,7 +223,7 @@ Done:
           This->DriverBindingHandle,\r
           Controller\r
           );\r
-    if (PciVgaMiniPortPrivate) {\r
+    if (PciVgaMiniPortPrivate != NULL) {\r
       gBS->FreePool (PciVgaMiniPortPrivate);\r
     }\r
   }\r
@@ -226,7 +237,14 @@ Done:
 \r
   (Standard DriverBinding Protocol Stop() function)\r
 \r
-  @return EFI_STATUS\r
+  @param  This                   The driver binding protocol.\r
+  @param  Controller             The controller to release.\r
+  @param  NumberOfChildren       The child number that opened controller\r
+                                 BY_CHILD.\r
+  @param  ChildHandleBuffer      The array of child handle.\r
+\r
+  @retval EFI_SUCCESS            The controller or children are stopped.\r
+  @retval EFI_DEVICE_ERROR       Failed to stop the driver.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -281,13 +299,13 @@ PciVgaMiniPortDriverBindingStop (
 //\r
 \r
 /**\r
-  Thunk function of EFI_VGA_MINI_PORT_SET_MODE\r
+  Thunk function of EFI_VGA_MINI_PORT_SET_MODE.\r
 \r
-  @param  This             Point to instance of EFI_VGA_MINI_PORT_PROTOCOL\r
-  @param  ModeNumber       Mode number\r
+  @param  This             Point to instance of EFI_VGA_MINI_PORT_PROTOCOL.\r
+  @param  ModeNumber       Mode number.\r
 \r
-  @retval EFI_UNSUPPORTED  Invalid mode number\r
-  @retval EFI_SUCCESS      Success\r
+  @retval EFI_UNSUPPORTED  Invalid mode number.\r
+  @retval EFI_SUCCESS      Success.\r
 \r
 **/\r
 EFI_STATUS\r
index 10508aafae7eaad47ab2ad97cba9d0677b8b0135..a1100a27cf96d58952ef2c304418001adf421427 100644 (file)
@@ -11,8 +11,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#ifndef _VGA_MINIPORT_H\r
-#define _VGA_MINIPORT_H\r
+#ifndef _VGA_MINIPORT_H_\r
+#define _VGA_MINIPORT_H_\r
 \r
 //\r
 // The package level header files this module uses\r
@@ -61,21 +61,66 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gPciVgaMiniPortComponentName2;
 //\r
 // Driver Binding Protocol functions\r
 //\r
+/**\r
+  Supported.\r
+\r
+  (Standard DriverBinding Protocol Supported() function)\r
+\r
+  @param  This                   The driver binding protocol.\r
+  @param  Controller             The controller handle to check.\r
+  @param  RemainingDevicePath    The remaining device path.\r
+\r
+  @retval EFI_SUCCESS            The driver supports this controller.\r
+  @retval EFI_UNSUPPORTED        This device isn't supported.\r
+\r
+**/\r
 EFI_STATUS\r
+EFIAPI\r
 PciVgaMiniPortDriverBindingSupported (\r
   IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
   IN EFI_HANDLE                   Controller,\r
   IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
   );\r
 \r
+/**\r
+  Install VGA Mini Port Protocol onto VGA device handles\r
+\r
+  (Standard DriverBinding Protocol Start() function)\r
+\r
+  @param  This                   The driver binding instance.\r
+  @param  Controller             The controller to check.\r
+  @param  RemainingDevicePath    The remaining device patch.\r
+\r
+  @retval EFI_SUCCESS            The controller is controlled by the driver.\r
+  @retval EFI_ALREADY_STARTED    The controller is already controlled by the driver.\r
+  @retval EFI_OUT_OF_RESOURCES   Failed to allocate resources.\r
+\r
+**/\r
 EFI_STATUS\r
+EFIAPI\r
 PciVgaMiniPortDriverBindingStart (\r
   IN EFI_DRIVER_BINDING_PROTOCOL  *This,\r
   IN EFI_HANDLE                   Controller,\r
   IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
   );\r
 \r
+/**\r
+  Stop.\r
+\r
+  (Standard DriverBinding Protocol Stop() function)\r
+\r
+  @param  This                   The driver binding protocol.\r
+  @param  Controller             The controller to release.\r
+  @param  NumberOfChildren       The child number that opened controller\r
+                                 BY_CHILD.\r
+  @param  ChildHandleBuffer      The array of child handle.\r
+\r
+  @retval EFI_SUCCESS            The controller or children are stopped.\r
+  @retval EFI_DEVICE_ERROR       Failed to stop the driver.\r
+\r
+**/\r
 EFI_STATUS\r
+EFIAPI\r
 PciVgaMiniPortDriverBindingStop (\r
   IN  EFI_DRIVER_BINDING_PROTOCOL  *This,\r
   IN  EFI_HANDLE                   Controller,\r
@@ -86,6 +131,16 @@ PciVgaMiniPortDriverBindingStop (
 //\r
 // VGA Mini Port Protocol functions\r
 //\r
+/**\r
+  Thunk function of EFI_VGA_MINI_PORT_SET_MODE.\r
+\r
+  @param  This             Point to instance of EFI_VGA_MINI_PORT_PROTOCOL.\r
+  @param  ModeNumber       Mode number.\r
+\r
+  @retval EFI_UNSUPPORTED  Invalid mode number.\r
+  @retval EFI_SUCCESS      Success.\r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 PciVgaMiniPortSetMode (\r