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