]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add comments for IntelFrameworkModulePkg Header file.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Jun 2009 09:02:15 +0000 (09:02 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Jun 2009 09:02:15 +0000 (09:02 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8539 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Include/Guid/DataHubStatusCodeRecord.h
IntelFrameworkModulePkg/Include/Guid/MemoryStatusCodeRecord.h
IntelFrameworkModulePkg/Include/Protocol/DiskInfo.h
IntelFrameworkModulePkg/Include/Protocol/PciHotPlugRequest.h

index cbea8d56f94709e049c44d0cd249c210458d0d2d..0f11c7a8b6f5c1a595117db87e777eb302859f74 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 \r
-#ifndef __STATUS_CODE_H__\r
-#define __STATUS_CODE_H__\r
+#ifndef __DATA_HUB_STATUS_CODE_RECORD_H__\r
+#define __DATA_HUB_STATUS_CODE_RECORD_H__\r
 \r
 #define EFI_DATA_HUB_STATUS_CODE_RECORD_GUID \\r
   { \\r
@@ -22,14 +22,34 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   }\r
 \r
 typedef struct {\r
+  ///\r
+  /// Status Code type to be reported.\r
+  ///\r
   EFI_STATUS_CODE_TYPE  CodeType;\r
+\r
+  ///\r
+  /// Valu information about the class and subclass is used to\r
+  /// classify the hardware and software entity as well as an operation.\r
+  ///\r
   EFI_STATUS_CODE_VALUE Value;\r
+\r
+  ///\r
+  /// The enumeration of a hardware or software entity within\r
+  /// the system. Valid instance numbers start with 1\r
+  ///\r
   UINT32                Instance;\r
+\r
+  ///\r
+  /// Identify the caller.\r
+  ///\r
   EFI_GUID              CallerId;\r
+\r
+  ///\r
+  /// Additional status code data\r
+  ///\r
   EFI_STATUS_CODE_DATA  Data;\r
 } DATA_HUB_STATUS_CODE_DATA_RECORD;\r
 \r
 extern EFI_GUID gEfiDataHubStatusCodeRecordGuid;\r
 \r
-#endif // __STATUS_CODE_H__\r
-\r
+#endif\r
index 4f623b5de6dcbea69d2a28687b8f5684731d1f3c..fcc7a0d72e11cc19774ba51437ad13eb209be605 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   GUID used to identify status code records HOB that originate from the PEI status code    \r
   \r
-Copyright (c) 2006, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -30,15 +30,28 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                   +---------------- MaxRecordsNumber----------------------+\r
 **/\r
 typedef struct {\r
-  UINT16                  PacketIndex;          // Index of the Packet.\r
-  UINT16                  RecordIndex;          // Index of record in the packet.\r
-  UINT32                  MaxRecordsNumber;     // Max number of records in the packet.\r
+  UINT16                  PacketIndex;          ///< Index of the Packet.\r
+  UINT16                  RecordIndex;          ///< Index of record in the packet.\r
+  UINT32                  MaxRecordsNumber;     ///< Max number of records in the packet.\r
 } MEMORY_STATUSCODE_PACKET_HEADER;\r
 \r
 typedef struct {\r
-  EFI_STATUS_CODE_TYPE    CodeType;\r
-  EFI_STATUS_CODE_VALUE   Value;\r
-  UINT32                  Instance;\r
+  ///\r
+  /// Status Code type to be reported.\r
+  ///\r
+  EFI_STATUS_CODE_TYPE  CodeType;\r
+\r
+  ///\r
+  /// Valu information about the class and subclass is used to\r
+  /// classify the hardware and software entity as well as an operation.\r
+  ///\r
+  EFI_STATUS_CODE_VALUE Value;\r
+\r
+  ///\r
+  /// The enumeration of a hardware or software entity within\r
+  /// the system. Valid instance numbers start with 1\r
+  ///\r
+  UINT32                Instance;\r
 } MEMORY_STATUSCODE_RECORD;\r
 \r
 \r
index 8409d988f8b3ef49f64410a93af1e7b20cb8ec85..833072fc894bc323cbbd8372d09ddd065ff1086d 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
-  Disk Info protocol is used to export Inquiry Data for a drive.\r
-  It supports low level formating of drives in a DOS compatible manner.\r
+  Disk Info protocol Provides the basic interfaces to abstract \r
+  platform information regarding an IDE controller.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation. <BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -27,14 +27,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 typedef struct _EFI_DISK_INFO_PROTOCOL  EFI_DISK_INFO_PROTOCOL;\r
 \r
 /**\r
-  Return the results of the Inquiry command to a drive in InquiryData.\r
-  Data format of Inquiry data is defined by the Interface GUID.\r
+  This function is used by the IDE bus driver to get inquiry data. \r
+  Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Protocol instance pointer. \r
-  @param  InquiryData           Results of Inquiry command to device \r
-  @param  InquiryDataSize       Size of InquiryData in bytes. \r
+  @param  InquiryData           Pointer to a buffer for the inquiry data.\r
+  @param  InquiryDataSize       Pointer to the value for the inquiry data size.\r
 \r
-  @retval EFI_SUCCESS           InquiryData valid \r
+  @retval EFI_SUCCESS           The command was accepted without any errors.\r
   @retval EFI_NOT_FOUND         Device does not support this data class \r
   @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
   @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough \r
@@ -50,14 +50,14 @@ EFI_STATUS
 \r
 \r
 /**\r
-  Return the results of the Identify command to a drive in IdentifyData.\r
+  This function is used by the IDE bus driver to get identify data. \r
   Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Protocol instance pointer. \r
-  @param  IdentifyData          Results of Identify command to device \r
-  @param  IdentifyDataSize      Size of IdentifyData in bytes. \r
+  @param  IdentifyData          Pointer to a buffer for the identify data.\r
+  @param  IdentifyDataSize      Pointer to the value for the identify data size.\r
 \r
-  @retval EFI_SUCCESS           IdentifyData valid \r
+  @retval EFI_SUCCESS           The command was accepted without any errors.\r
   @retval EFI_NOT_FOUND         Device does not support this data class \r
   @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device \r
   @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough \r
@@ -73,15 +73,15 @@ EFI_STATUS
 \r
 \r
 /**\r
-  Return the results of the Request Sense command to a drive in SenseData.\r
+  This function is used by the IDE bus driver to get sense data. \r
   Data format of Sense data is defined by the Interface GUID.\r
 \r
   @param  This                  Protocol instance pointer. \r
-  @param  SenseData             Results of Request Sense command to device \r
+  @param  SenseData             Pointer to the SenseData. \r
   @param  SenseDataSize         Size of SenseData in bytes. \r
-  @param  SenseDataNumber       Type of SenseData \r
+  @param  SenseDataNumber       Pointer to the value for the identify data size.\r
 \r
-  @retval EFI_SUCCESS           InquiryData valid \r
+  @retval EFI_SUCCESS           The command was accepted without any errors.\r
   @retval EFI_NOT_FOUND         Device does not support this data class \r
   @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
   @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough \r
@@ -97,11 +97,11 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Return the IDE device information.\r
+  This function is used by the IDE bus driver to get controller information.\r
 \r
   @param  This                  Protocol instance pointer. \r
-  @param  IdeChannel            Primary or Secondary \r
-  @param  IdeDevice             Master or Slave \r
+  @param  IdeChannel            Pointer to the Ide Channel number. Primary or secondary.\r
+  @param  IdeDevice             Pointer to the Ide Device number. Master or slave.\r
 \r
   @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid \r
   @retval EFI_UNSUPPORTED       This is not an IDE device \r
@@ -116,8 +116,7 @@ EFI_STATUS
   );\r
 \r
 //\r
-// GUIDs for EFI_DISK_INFO_PROTOCOL.Interface. Defines the format of the\r
-// buffers returned by member functions.\r
+// GUID of the type of interfaces\r
 //\r
 #define EFI_DISK_INFO_IDE_INTERFACE_GUID \\r
   { \\r
@@ -144,7 +143,10 @@ extern EFI_GUID gEfiDiskInfoUsbInterfaceGuid;
 extern EFI_GUID gEfiDiskInfoAhciInterfaceGuid;\r
 \r
 struct _EFI_DISK_INFO_PROTOCOL {\r
-  EFI_GUID                  Interface;  ///> The format of the buffers returned by member functions.\r
+  ///\r
+  /// A GUID that defines the format of buffers for the other member functions of this protocol.\r
+  ///\r
+  EFI_GUID                  Interface;\r
   EFI_DISK_INFO_INQUIRY     Inquiry;\r
   EFI_DISK_INFO_IDENTIFY    Identify;\r
   EFI_DISK_INFO_SENSE_DATA  SenseData;\r
index 996b5b3265bed955d072bf2e7cb1553194612286..89cca7be2eced0a0f253289882a4fea1903369de 100644 (file)
@@ -1,5 +1,7 @@
 /** @file\r
-  This protocol is used to add or remove all PCI child devices on the PCI root bridge.\r
+  Provides services to notify PCI bus driver that some events have happened in a hot-plug controller\r
+  (for example, PC Card socket, or PHPC), and ask PCI bus driver to create or destroy handles for the\r
+  PCI-like devices.\r
 \r
 Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
@@ -16,27 +18,45 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define __PCI_HOTPLUG_REQUEST_H_\r
 \r
 #define EFI_PCI_HOTPLUG_REQUEST_PROTOCOL_GUID \\r
-{0x19cb87ab,0x2cb9,{0x4665,0x83,0x60,0xdd,0xcf,0x60,0x54,0xf7,0x9d}}\r
+  {0x19cb87ab,0x2cb9,{0x4665,0x83,0x60,0xdd,0xcf,0x60,0x54,0xf7,0x9d}}\r
 \r
 typedef enum {\r
+  ///\r
+  /// The PCI bus driver is requested to create handles for the specified devices. An array of\r
+  /// EFI_HANDLE is returned, a NULL element marks the end of the array.\r
+  ///\r
   EfiPciHotPlugRequestAdd,\r
+\r
+  ///\r
+  /// The PCI bus driver is requested to destroy handles for the specified devices.\r
+  ///\r
   EfiPciHotplugRequestRemove\r
 } EFI_PCI_HOTPLUG_OPERATION;\r
 \r
 typedef struct _EFI_PCI_HOTPLUG_REQUEST_PROTOCOL  EFI_PCI_HOTPLUG_REQUEST_PROTOCOL;\r
 \r
 /**\r
-  Hot plug request notify.\r
+  This function allows the PCI bus driver to be notified to act as requested when a hot-plug event has\r
+  happened on the hot-plug controller. Currently, the operations include add operation and remove operation..\r
   \r
   @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 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
+  @param Operation            The operation the PCI bus driver is requested to make.\r
+  @param Controller           The handle of the hot-plug controller.\r
+  @param RemainingDevicePath  The remaining device path for the PCI-like hot-plug device.\r
+  @param NumberOfChildren     The number of child handles. \r
+                              For a add operation, it is an output parameter. \r
+                              For a remove operation, it¡¯s an input parameter.\r
+  @param ChildHandleBuffer    The buffer which contains the child handles.\r
   \r
-  @retval EFI_NOT_FOUND Can not find bridge according to controller handle.\r
-  @retval EFI_SUCCESS   Success operating.\r
+  @retval EFI_INVALID_PARAMETER  Operation is not a legal value.\r
+                                 Controller is NULL or not a valid handle.\r
+                                 NumberOfChildren is NULL.\r
+                                 ChildHandleBuffer is NULL while Operation is add.\r
+  @retval EFI_OUT_OF_RESOURCES   There are no enough resources to start the devices.\r
+  @retval EFI_NOT_FOUND          Can not find bridge according to controller handle.\r
+  @retval EFI_SUCCESS            The handles for the specified device have been created or destroyed\r
+                                 as requested, and for an add operation, the new handles are\r
+                                 returned in ChildHandleBuffer.\r
 **/\r
 typedef\r
 EFI_STATUS\r