summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2018-06-04 09:14:51 +0800
committerEric Dong <eric.dong@intel.com>2018-06-11 16:10:21 +0800
commita6eaba4d7f23262ab8e8502b476bdf5249a54ad4 (patch)
treec2b9e13f606cfce408251977d2f0fc91253276a0 /ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c
parent64285f15264906c761b5a6772b5b590b32caa03c (diff)
downloadedk2-a6eaba4d7f23262ab8e8502b476bdf5249a54ad4.tar.gz
edk2-a6eaba4d7f23262ab8e8502b476bdf5249a54ad4.tar.bz2
edk2-a6eaba4d7f23262ab8e8502b476bdf5249a54ad4.zip
ShellPkg/UefiShellAcpiViewCommandLib: Fix ECC issues
Make the function comments follow EDK2 coding style. Cc: Sami Mujawar <sami.mujawar@arm.com> Cc: Evan Lloyd <evan.lloyd@arm.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c')
-rw-r--r--ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c32
1 files changed, 19 insertions, 13 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c
index c7acdceb94..c33bb1e923 100644
--- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c
+++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c
@@ -1,4 +1,4 @@
-/**
+/** @file
RSDP table parser
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
@@ -21,12 +21,13 @@
// Local Variables
STATIC CONST UINT64* XsdtAddress;
-/** This function validates the RSDT Address.
+/**
+ This function validates the RSDT Address.
@param [in] Ptr Pointer to the start of the field data.
@param [in] Context Pointer to context specific information e.g. this
could be a pointer to the ACPI table header.
-*/
+**/
STATIC
VOID
EFIAPI
@@ -35,12 +36,13 @@ ValidateRsdtAddress (
IN VOID* Context
);
-/** This function validates the XSDT Address.
+/**
+ This function validates the XSDT Address.
@param [in] Ptr Pointer to the start of the field data.
@param [in] Context Pointer to context specific information e.g. this
could be a pointer to the ACPI table header.
-*/
+**/
STATIC
VOID
EFIAPI
@@ -49,8 +51,9 @@ ValidateXsdtAddress (
IN VOID* Context
);
-/** An array describing the ACPI RSDP Table.
-*/
+/**
+ An array describing the ACPI RSDP Table.
+**/
STATIC CONST ACPI_PARSER RsdpParser[] = {
{L"Signature", 8, 0, NULL, Dump8Chars, NULL, NULL, NULL},
{L"Checksum", 1, 8, L"0x%x", NULL, NULL, NULL, NULL},
@@ -64,12 +67,13 @@ STATIC CONST ACPI_PARSER RsdpParser[] = {
{L"Reserved", 3, 33, L"%x %x %x", Dump3Chars, NULL, NULL, NULL}
};
-/** This function validates the RSDT Address.
+/**
+ This function validates the RSDT Address.
@param [in] Ptr Pointer to the start of the field data.
@param [in] Context Pointer to context specific information e.g. this
could be a pointer to the ACPI table header.
-*/
+**/
STATIC
VOID
EFIAPI
@@ -95,12 +99,13 @@ ValidateRsdtAddress (
#endif
}
-/** This function validates the XSDT Address.
+/**
+ This function validates the XSDT Address.
@param [in] Ptr Pointer to the start of the field data.
@param [in] Context Pointer to context specific information e.g. this
could be a pointer to the ACPI table header.
-*/
+**/
STATIC
VOID
EFIAPI
@@ -126,7 +131,8 @@ ValidateXsdtAddress (
#endif
}
-/** This function parses the ACPI RSDP table.
+/**
+ This function parses the ACPI RSDP table.
This function invokes the parser for the XSDT table.
* Note - This function does not support parsing of RSDT table.
@@ -138,7 +144,7 @@ ValidateXsdtAddress (
@param [in] Ptr Pointer to the start of the buffer.
@param [in] AcpiTableLength Length of the ACPI table.
@param [in] AcpiTableRevision Revision of the ACPI table.
-*/
+**/
VOID
EFIAPI
ParseAcpiRsdp (