]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Application/LinuxLoader/LinuxInternal.h
ARM Packages: Fixed line endings
[mirror_edk2.git] / ArmPkg / Application / LinuxLoader / LinuxInternal.h
CommitLineData
1e57a462 1/** @file\r
2*\r
3* Copyright (c) 2011, ARM Limited. All rights reserved.\r
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
28\r
29#define LINUX_KERNEL_NAME L"zImage"\r
30#define FDT_NAME L"platform.dtb"\r
31\r
32#define LINUX_LOADER_SIGNATURE SIGNATURE_32('l', 'i', 'l', 'o')\r
33\r
34typedef struct {\r
35 UINT32 Signature;\r
36 UINT16 CmdLineLength;\r
37 UINT16 InitrdPathListLength;\r
38\r
39 // These following fields have variable length:\r
40 //CHAR8* CmdLine;\r
41 //CHAR16* Initrd;\r
42} LINUX_LOADER_OPTIONAL_DATA;\r
43\r
44EFI_STATUS\r
45LinuxLoaderConfig (\r
46 IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage\r
47 );\r
48\r
49#endif\r