]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/Include/Library/CbParseLib.h
CorebootPayloadPkg/PlatformBdsLib: Pass more serial parameters
[mirror_edk2.git] / CorebootModulePkg / Include / Library / CbParseLib.h
index 170375b365b0ccd85817ddf3bb9928f1a4f9fdb0..a023246d71cd5deb9d49e0ab6a66542c2c674e18 100644 (file)
@@ -30,7 +30,7 @@ CbParseMemoryInfo (
   IN UINT64*    pLowMemorySize,\r
   IN UINT64*    pHighMemorySize\r
   );\r
-  \r
+
 /**\r
   Acquire the coreboot memory table with the given table id\r
 \r
@@ -45,11 +45,11 @@ CbParseMemoryInfo (
 **/\r
 RETURN_STATUS\r
 CbParseCbMemTable (\r
-  IN UINT32     TableId, \r
+  IN UINT32     TableId,
   IN VOID**     pMemTable,\r
   IN UINT32*    pMemTableSize\r
   );\r
-  \r
+
 /**\r
   Acquire the acpi table from coreboot\r
 \r
@@ -66,7 +66,7 @@ CbParseAcpiTable (
   IN VOID**     pMemTable,\r
   IN UINT32*    pMemTableSize\r
   );\r
-  \r
+
 /**\r
   Acquire the smbios table from coreboot\r
 \r
@@ -83,7 +83,7 @@ CbParseSmbiosTable (
   IN VOID**     pMemTable,\r
   IN UINT32*    pMemTableSize\r
   );\r
-  \r
+
 /**\r
   Find the required fadt information\r
 \r
@@ -107,13 +107,16 @@ CbParseFadtInfo (
   IN UINTN*     pPmEvtReg,\r
   IN UINTN*     pPmGpeEnReg\r
   );\r
-  \r
+
 /**\r
   Find the serial port information\r
 \r
   @param  pRegBase           Pointer to the base address of serial port registers\r
   @param  pRegAccessType     Pointer to the access type of serial port registers\r
+  @param  pRegWidth          Pointer to the register width in bytes
   @param  pBaudrate          Pointer to the serial port baudrate\r
+  @param  pInputHertz        Pointer to the input clock frequency
+  @param  pUartPciAddr       Pointer to the UART PCI bus, dev and func address
 \r
   @retval RETURN_SUCCESS     Successfully find the serial port information.\r
   @retval RETURN_NOT_FOUND   Failed to find the serial port information .\r
@@ -121,9 +124,12 @@ CbParseFadtInfo (
 **/\r
 RETURN_STATUS\r
 CbParseSerialInfo (\r
-  IN UINT32*     pRegBase,\r
-  IN UINT32*     pRegAccessType,\r
-  IN UINT32*     pBaudrate\r
+  OUT UINT32     *pRegBase,
+  OUT UINT32     *pRegAccessType,
+  OUT UINT32     *pRegWidth,
+  OUT UINT32     *pBaudrate,
+  OUT UINT32     *pInputHertz,
+  OUT UINT32     *pUartPciAddr
   );\r
 \r
 /**\r
@@ -141,7 +147,7 @@ CbParseGetCbHeader (
   IN UINTN  Level,\r
   IN VOID** HeaderPtr\r
   );\r
-  \r
+
 /**\r
   Find the video frame buffer information\r
 \r