]>
Commit | Line | Data |
---|---|---|
75e4db2d | 1 | /** @file |
2 | * | |
3 | * Copyright (c) 2011, ARM Limited. All rights reserved. | |
4 | * | |
5 | * This program and the accompanying materials | |
6 | * are licensed and made available under the terms and conditions of the BSD License | |
7 | * which accompanies this distribution. The full text of the license may be found at | |
8 | * http://opensource.org/licenses/bsd-license.php | |
9 | * | |
10 | * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, | |
11 | * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |
12 | * | |
13 | **/ | |
14 | ||
15 | #ifndef __LOADER_INTERNAL_H | |
16 | #define __LOADER_INTERNAL_H | |
17 | ||
18 | #include <Uefi.h> | |
19 | #include <Library/BaseMemoryLib.h> | |
20 | #include <Library/BdsLib.h> | |
21 | #include <Library/DebugLib.h> | |
22 | #include <Library/DevicePathLib.h> | |
23 | #include <Library/MemoryAllocationLib.h> | |
24 | #include <Library/UefiBootServicesTableLib.h> | |
25 | #include <Library/UefiLib.h> | |
26 | ||
27 | #include <Protocol/LoadedImage.h> | |
28 | ||
29 | #define LINUX_KERNEL_NAME L"zImage" | |
30 | #define FDT_NAME L"platform.dtb" | |
31 | ||
32 | #define LINUX_LOADER_SIGNATURE SIGNATURE_32('l', 'i', 'l', 'o') | |
33 | ||
34 | typedef struct { | |
35 | UINT32 Signature; | |
36 | UINT16 CmdLineLength; | |
37 | UINT16 InitrdPathListLength; | |
38 | ||
39 | // These following fields have variable length: | |
40 | //CHAR8* CmdLine; | |
41 | //CHAR16* Initrd; | |
42 | } LINUX_LOADER_OPTIONAL_DATA; | |
43 | ||
44 | EFI_STATUS | |
45 | LinuxLoaderConfig ( | |
46 | IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage | |
47 | ); | |
48 | ||
49 | #endif |