]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/LoadLinuxLib.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Include / Library / LoadLinuxLib.h
index 36ee352e5e6fa40c2ca3e6ddaf940c0abbd562a7..65f5895bfc6ba3acfda3237705754f9c8f15e89b 100644 (file)
@@ -2,20 +2,13 @@
   Load/boot UEFI Linux.\r
 \r
   Copyright (c) 2011 - 2013, 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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 #ifndef __LOAD_LINUX_LIB__\r
 #define __LOAD_LINUX_LIB__\r
 \r
-\r
 /**\r
   Verifies that the kernel setup image is valid and supported.\r
   The kernel setup image should be checked before using other library\r
 EFI_STATUS\r
 EFIAPI\r
 LoadLinuxCheckKernelSetup (\r
-  IN VOID        *KernelSetup,\r
-  IN UINTN       KernelSetupSize\r
+  IN VOID   *KernelSetup,\r
+  IN UINTN  KernelSetupSize\r
   );\r
 \r
-\r
 /**\r
   Gets the initial runtime size of the Linux kernel image by examining\r
   the kernel setup image.\r
@@ -44,7 +36,7 @@ LoadLinuxCheckKernelSetup (
   @param[in]     KernelSetup - The kernel setup image\r
   @param[in]     KernelSize - The kernel size on disk.\r
 \r
-  @retval    0                An error occured\r
+  @retval    0                An error occurred\r
   @retval    !0               The initial size required by the kernel to\r
                               begin execution.\r
 \r
@@ -52,11 +44,10 @@ LoadLinuxCheckKernelSetup (
 UINTN\r
 EFIAPI\r
 LoadLinuxGetKernelSize (\r
-  IN VOID        *KernelSetup,\r
-  IN UINTN       KernelSize\r
+  IN VOID   *KernelSetup,\r
+  IN UINTN  KernelSize\r
   );\r
 \r
-\r
 /**\r
   Loads and boots UEFI Linux.\r
 \r
@@ -77,7 +68,6 @@ LoadLinux (
   IN OUT VOID  *KernelSetup\r
   );\r
 \r
-\r
 /**\r
   Allocates pages for the kernel setup image.\r
 \r
@@ -87,13 +77,12 @@ LoadLinux (
   @retval    !NULL - The address of the pages allocated\r
 \r
 **/\r
-VOID*\r
+VOID *\r
 EFIAPI\r
 LoadLinuxAllocateKernelSetupPages (\r
-  IN UINTN                  Pages\r
+  IN UINTN  Pages\r
   );\r
 \r
-\r
 /**\r
   Clears the uninitialised space before and after the struct setup_header\r
   in the kernel setup image. The kernel requires that these be zeroed\r
@@ -111,7 +100,7 @@ LoadLinuxAllocateKernelSetupPages (
 EFI_STATUS\r
 EFIAPI\r
 LoadLinuxInitializeKernelSetup (\r
-  IN VOID        *KernelSetup\r
+  IN VOID  *KernelSetup\r
   );\r
 \r
 /**\r
@@ -125,14 +114,13 @@ LoadLinuxInitializeKernelSetup (
   @retval    !NULL - The address of the pages allocated\r
 \r
 **/\r
-VOID*\r
+VOID *\r
 EFIAPI\r
 LoadLinuxAllocateKernelPages (\r
-  IN VOID                   *KernelSetup,\r
-  IN UINTN                  Pages\r
+  IN VOID   *KernelSetup,\r
+  IN UINTN  Pages\r
   );\r
 \r
-\r
 /**\r
   Allocates pages for the kernel command line.\r
 \r
@@ -142,13 +130,12 @@ LoadLinuxAllocateKernelPages (
   @retval    !NULL - The address of the pages allocated\r
 \r
 **/\r
-VOID*\r
+VOID *\r
 EFIAPI\r
 LoadLinuxAllocateCommandLinePages (\r
-  IN UINTN                  Pages\r
+  IN UINTN  Pages\r
   );\r
 \r
-\r
 /**\r
   Allocates pages for the initrd image.\r
 \r
@@ -159,14 +146,13 @@ LoadLinuxAllocateCommandLinePages (
   @retval    !NULL - The address of the pages allocated\r
 \r
 **/\r
-VOID*\r
+VOID *\r
 EFIAPI\r
 LoadLinuxAllocateInitrdPages (\r
-  IN VOID                   *KernelSetup,\r
-  IN UINTN                  Pages\r
+  IN VOID   *KernelSetup,\r
+  IN UINTN  Pages\r
   );\r
 \r
-\r
 /**\r
   Sets the kernel command line parameter within the setup image.\r
 \r
@@ -181,11 +167,10 @@ LoadLinuxAllocateInitrdPages (
 EFI_STATUS\r
 EFIAPI\r
 LoadLinuxSetCommandLine (\r
-  IN OUT VOID    *KernelSetup,\r
-  IN CHAR8       *CommandLine\r
+  IN OUT VOID  *KernelSetup,\r
+  IN CHAR8     *CommandLine\r
   );\r
 \r
-\r
 /**\r
   Sets the kernel initial ram disk pointer within the setup image.\r
 \r
@@ -201,11 +186,9 @@ LoadLinuxSetCommandLine (
 EFI_STATUS\r
 EFIAPI\r
 LoadLinuxSetInitrd (\r
-  IN OUT VOID    *KernelSetup,\r
-  IN VOID        *Initrd,\r
-  IN UINTN       InitrdSize\r
+  IN OUT VOID  *KernelSetup,\r
+  IN VOID      *Initrd,\r
+  IN UINTN     InitrdSize\r
   );\r
 \r
-\r
 #endif\r
-\r