]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiSdt.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / AcpiTableDxe / AcpiSdt.h
index f11bdee9ac9dbb2e5b5451ea7172ba790494b84f..9e39c22e23c165a74af0e5710330788629fdad19 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   ACPI Sdt Protocol Driver\r
 \r
-  Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>\r
   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
@@ -130,7 +130,7 @@ typedef UINT32 AML_OP_ATTRIBUTE;
 #define AML_HAS_CHILD_OBJ        0x4     // it is ACPI attribute - if OpCode has Child Object.\r
 #define AML_IN_NAMESPACE         0x10000 // It is UEFI SDT attribute - if OpCode will be in NameSpace\r
                                          // NOTE; Not all OBJECT will be in NameSpace\r
-                                         // For example, BankField | CreateBitField | CreateByteField | CreateDWordField | \r
+                                         // For example, BankField | CreateBitField | CreateByteField | CreateDWordField |\r
                                          //   CreateField | CreateQWordField | CreateWordField | Field | IndexField.\r
 \r
 struct _AML_BYTE_ENCODING {\r
@@ -147,7 +147,7 @@ struct _AML_BYTE_ENCODING {
 \r
 /**\r
   Returns a requested ACPI table.\r
-  \r
+\r
   The GetAcpiTable() function returns a pointer to a buffer containing the ACPI table associated\r
   with the Index that was input. The following structures are not considered elements in the list of\r
   ACPI tables:\r
@@ -157,20 +157,20 @@ struct _AML_BYTE_ENCODING {
   Version is updated with a bit map containing all the versions of ACPI of which the table is a\r
   member. For tables installed via the EFI_ACPI_TABLE_PROTOCOL.InstallAcpiTable() interface,\r
   the function returns the value of EFI_ACPI_STD_PROTOCOL.AcpiVersion.\r
-  \r
+\r
   @param[in]    Index       The zero-based index of the table to retrieve.\r
   @param[out]   Table       Pointer for returning the table buffer.\r
   @param[out]   Version     On return, updated with the ACPI versions to which this table belongs. Type\r
                             EFI_ACPI_TABLE_VERSION is defined in "Related Definitions" in the\r
-                            EFI_ACPI_SDT_PROTOCOL.    \r
+                            EFI_ACPI_SDT_PROTOCOL.\r
   @param[out]   TableKey    On return, points to the table key for the specified ACPI system definition table.\r
                             This is identical to the table key used in the EFI_ACPI_TABLE_PROTOCOL.\r
                             The TableKey can be passed to EFI_ACPI_TABLE_PROTOCOL.UninstallAcpiTable()\r
                             to uninstall the table.\r
-                            \r
+\r
   @retval EFI_SUCCESS       The function completed successfully.\r
-  @retval EFI_NOT_FOUND     The requested index is too large and a table was not found.                                  \r
-**/  \r
+  @retval EFI_NOT_FOUND     The requested index is too large and a table was not found.\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 GetAcpiTable2 (\r
@@ -182,17 +182,17 @@ GetAcpiTable2 (
 \r
 /**\r
   Register or unregister a callback when an ACPI table is installed.\r
-  \r
+\r
   This function registers or unregisters a function which will be called whenever a new ACPI table is\r
   installed.\r
-  \r
+\r
   @param[in]    Register        If TRUE, then the specified function will be registered. If FALSE, then the specified\r
                                 function will be unregistered.\r
   @param[in]    Notification    Points to the callback function to be registered or unregistered.\r
-  \r
+\r
   @retval EFI_SUCCESS           Callback successfully registered or unregistered.\r
   @retval EFI_INVALID_PARAMETER Notification is NULL\r
-  @retval EFI_INVALID_PARAMETER Register is FALSE and Notification does not match a known registration function.                        \r
+  @retval EFI_INVALID_PARAMETER Register is FALSE and Notification does not match a known registration function.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -203,12 +203,12 @@ RegisterNotify (
 \r
 /**\r
   Create a handle for the first ACPI opcode in an ACPI system description table.\r
-  \r
+\r
   @param[in]    TableKey    The table key for the ACPI table, as returned by GetTable().\r
   @param[out]   Handle      On return, points to the newly created ACPI handle.\r
 \r
   @retval EFI_SUCCESS       Handle created successfully.\r
-  @retval EFI_NOT_FOUND     TableKey does not refer to a valid ACPI table.  \r
+  @retval EFI_NOT_FOUND     TableKey does not refer to a valid ACPI table.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -219,29 +219,29 @@ OpenSdt (
 \r
 /**\r
   Create a handle from an ACPI opcode\r
-  \r
+\r
   @param[in]  Buffer                 Points to the ACPI opcode.\r
   @param[out] Handle                 Upon return, holds the handle.\r
-  \r
+\r
   @retval   EFI_SUCCESS             Success\r
   @retval   EFI_INVALID_PARAMETER   Buffer is NULL or Handle is NULL or Buffer points to an\r
                                     invalid opcode.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
 Open (\r
   IN    VOID            *Buffer,\r
-  OUT   EFI_ACPI_HANDLE *Handle \r
+  OUT   EFI_ACPI_HANDLE *Handle\r
   );\r
 \r
 /**\r
   Close an ACPI handle.\r
-  \r
+\r
   @param[in] Handle Returns the handle.\r
-  \r
+\r
   @retval EFI_SUCCESS           Success\r
-  @retval EFI_INVALID_PARAMETER Handle is NULL or does not refer to a valid ACPI object.  \r
+  @retval EFI_INVALID_PARAMETER Handle is NULL or does not refer to a valid ACPI object.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -251,7 +251,7 @@ Close (
 \r
 /**\r
   Retrieve information about an ACPI object.\r
-  \r
+\r
   @param[in]    Handle      ACPI object handle.\r
   @param[in]    Index       Index of the data to retrieve from the object. In general, indexes read from left-to-right\r
                             in the ACPI encoding, with index 0 always being the ACPI opcode.\r
@@ -259,7 +259,7 @@ Close (
                             for the specified index.\r
   @param[out]   Data        Upon return, points to the pointer to the data.\r
   @param[out]   DataSize    Upon return, points to the size of Data.\r
-  \r
+\r
   @retval       EFI_SUCCESS           Success.\r
   @retval       EFI_INVALID_PARAMETER Handle is NULL or does not refer to a valid ACPI object.\r
 **/\r
@@ -275,7 +275,7 @@ GetOption (
 \r
 /**\r
   Change information about an ACPI object.\r
-  \r
+\r
   @param[in]  Handle    ACPI object handle.\r
   @param[in]  Index     Index of the data to retrieve from the object. In general, indexes read from left-to-right\r
                         in the ACPI encoding, with index 0 always being the ACPI opcode.\r
@@ -299,14 +299,14 @@ SetOption (
 \r
 /**\r
   Return the child ACPI objects.\r
-  \r
+\r
   @param[in]        ParentHandle    Parent handle.\r
   @param[in, out]   Handle          On entry, points to the previously returned handle or NULL to start with the first\r
                                     handle. On return, points to the next returned ACPI handle or NULL if there are no\r
                                     child objects.\r
 \r
   @retval EFI_SUCCESS               Success\r
-  @retval EFI_INVALID_PARAMETER     ParentHandle is NULL or does not refer to a valid ACPI object.                                \r
+  @retval EFI_INVALID_PARAMETER     ParentHandle is NULL or does not refer to a valid ACPI object.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -317,14 +317,14 @@ GetChild (
 \r
 /**\r
   Returns the handle of the ACPI object representing the specified ACPI path\r
-  \r
+\r
   @param[in]    HandleIn    Points to the handle of the object representing the starting point for the path search.\r
   @param[in]    AcpiPath    Points to the ACPI path, which conforms to the ACPI encoded path format.\r
   @param[out]   HandleOut   On return, points to the ACPI object which represents AcpiPath, relative to\r
                             HandleIn.\r
-                            \r
+\r
   @retval EFI_SUCCESS           Success\r
-  @retval EFI_INVALID_PARAMETER HandleIn is NULL or does not refer to a valid ACPI object.                            \r
+  @retval EFI_INVALID_PARAMETER HandleIn is NULL or does not refer to a valid ACPI object.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -340,21 +340,21 @@ FindPath (
 \r
 /**\r
   Create a handle from an ACPI opcode\r
-  \r
+\r
   @param[in]  Buffer                 Points to the ACPI opcode.\r
   @param[in]  BufferSize             Max buffer size.\r
   @param[out] Handle                 Upon return, holds the handle.\r
-  \r
+\r
   @retval   EFI_SUCCESS             Success\r
   @retval   EFI_INVALID_PARAMETER   Buffer is NULL or Handle is NULL or Buffer points to an\r
                                     invalid opcode.\r
-  \r
+\r
 **/\r
 EFI_STATUS\r
 SdtOpenEx (\r
   IN    VOID            *Buffer,\r
   IN    UINTN           BufferSize,\r
-  OUT   EFI_ACPI_HANDLE *Handle \r
+  OUT   EFI_ACPI_HANDLE *Handle\r
   );\r
 \r
 //\r
@@ -365,8 +365,8 @@ SdtOpenEx (
   Get AML NameString size.\r
 \r
   @param[in]    Buffer     AML NameString.\r
-  @param[out]   BufferSize AML NameString size \r
-  \r
+  @param[out]   BufferSize AML NameString size\r
+\r
   @retval       EFI_SUCCESS           Success.\r
   @retval       EFI_INVALID_PARAMETER Buffer does not refer to a valid AML NameString.\r
 **/\r
@@ -416,11 +416,11 @@ AmlSearchByOpByte (
 \r
 /**\r
   Return object size.\r
-  \r
+\r
   @param[in]    AmlByteEncoding      AML Byte Encoding.\r
   @param[in]    Buffer               AML object buffer.\r
   @param[in]    MaxBufferSize        AML object buffer MAX size. The parser can not parse any data exceed this region.\r
-  \r
+\r
   @return       Size of the object.\r
 **/\r
 UINTN\r
@@ -432,9 +432,9 @@ AmlGetObjectSize (
 \r
 /**\r
   Return object name.\r
-  \r
+\r
   @param[in]    AmlHandle            AML handle.\r
-  \r
+\r
   @return       Name of the object.\r
 **/\r
 CHAR8 *\r
@@ -444,7 +444,7 @@ AmlGetObjectName (
 \r
 /**\r
   Retrieve information according to AmlHandle\r
-  \r
+\r
   @param[in]    AmlHandle            AML handle.\r
   @param[in]    Index                Index of the data to retrieve from the object. In general, indexes read from left-to-right\r
                                      in the ACPI encoding, with index 0 always being the ACPI opcode.\r
@@ -452,7 +452,7 @@ AmlGetObjectName (
                                      for the specified index.\r
   @param[out]   Data                 Upon return, points to the pointer to the data.\r
   @param[out]   DataSize             Upon return, points to the size of Data.\r
-  \r
+\r
   @retval       EFI_SUCCESS           Success.\r
   @retval       EFI_INVALID_PARAMETER AmlHandle does not refer to a valid ACPI object.\r
 **/\r
@@ -467,10 +467,10 @@ AmlParseOptionHandleCommon (
 \r
 /**\r
   Return offset of last option.\r
-  \r
+\r
   @param[in]    AmlHandle            AML Handle.\r
   @param[out]   Buffer               Upon return, points to the offset after last option.\r
-  \r
+\r
   @retval       EFI_SUCCESS           Success.\r
   @retval       EFI_INVALID_PARAMETER AmlHandle does not refer to a valid ACPI object.\r
 **/\r
@@ -482,14 +482,14 @@ AmlGetOffsetAfterLastOption (
 \r
 /**\r
   Return the child ACPI objects from Root Handle.\r
-  \r
+\r
   @param[in]        AmlParentHandle Parent handle. It is Root Handle.\r
   @param[in]        AmlHandle       The previously returned handle or NULL to start with the first handle.\r
   @param[out]       Buffer          On return, points to the next returned ACPI handle or NULL if there are no\r
                                     child objects.\r
 \r
   @retval EFI_SUCCESS               Success\r
-  @retval EFI_INVALID_PARAMETER     ParentHandle is NULL or does not refer to a valid ACPI object.                                \r
+  @retval EFI_INVALID_PARAMETER     ParentHandle is NULL or does not refer to a valid ACPI object.\r
 **/\r
 EFI_STATUS\r
 AmlGetChildFromRoot (\r
@@ -500,14 +500,14 @@ AmlGetChildFromRoot (
 \r
 /**\r
   Return the child ACPI objects from Non-Root Handle.\r
-  \r
+\r
   @param[in]        AmlParentHandle Parent handle. It is Non-Root Handle.\r
   @param[in]        AmlHandle       The previously returned handle or NULL to start with the first handle.\r
   @param[out]       Buffer          On return, points to the next returned ACPI handle or NULL if there are no\r
                                     child objects.\r
 \r
   @retval EFI_SUCCESS               Success\r
-  @retval EFI_INVALID_PARAMETER     ParentHandle is NULL or does not refer to a valid ACPI object.                                \r
+  @retval EFI_INVALID_PARAMETER     ParentHandle is NULL or does not refer to a valid ACPI object.\r
 **/\r
 EFI_STATUS\r
 AmlGetChildFromNonRoot (\r
@@ -531,16 +531,16 @@ AmlNameFromAslName (
 \r
 /**\r
   Returns the handle of the ACPI object representing the specified ACPI AML path\r
-  \r
+\r
   @param[in]    AmlHandle   Points to the handle of the object representing the starting point for the path search.\r
   @param[in]    AmlPath     Points to the ACPI AML path.\r
   @param[out]   Buffer      On return, points to the ACPI object which represents AcpiPath, relative to\r
                             HandleIn.\r
   @param[in]    FromRoot    TRUE means to find AML path from \ (Root) Node.\r
                             FALSE means to find AML path from this Node (The HandleIn).\r
-                            \r
+\r
   @retval EFI_SUCCESS           Success\r
-  @retval EFI_INVALID_PARAMETER HandleIn does not refer to a valid ACPI object.                            \r
+  @retval EFI_INVALID_PARAMETER HandleIn does not refer to a valid ACPI object.\r
 **/\r
 EFI_STATUS\r
 AmlFindPath (\r
@@ -574,7 +574,7 @@ AmlPrintNameSeg (
   Check if it is AML Root name\r
 \r
   @param[in]    Buffer AML path.\r
-  \r
+\r
   @retval       TRUE  AML path is root.\r
   @retval       FALSE AML path is not root.\r
 **/\r