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
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
IN OUT VOID *KernelSetup\r
);\r
\r
-\r
/**\r
Allocates pages for the kernel setup image.\r
\r
@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
EFI_STATUS\r
EFIAPI\r
LoadLinuxInitializeKernelSetup (\r
- IN VOID *KernelSetup\r
+ IN VOID *KernelSetup\r
);\r
\r
/**\r
@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
@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
@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
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
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