]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Include/Library/BdsLib.h
ArmPlatformPkg/Bds: Add return carriage after the user presses 'ESC'
[mirror_edk2.git] / ArmPkg / Include / Library / BdsLib.h
CommitLineData
a355a365 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 __BDS_ENTRY_H__\r
16#define __BDS_ENTRY_H__\r
17\r
6bab33c7 18/**\r
19 Connect a Device Path and return the handle of the driver that support this DevicePath\r
20\r
21 @param DevicePath Device Path of the File to connect\r
22 @param Handle Handle of the driver that support this DevicePath\r
23 @param RemainingDevicePath Remaining DevicePath nodes that do not match the driver DevicePath\r
24\r
25 @retval EFI_SUCCESS A driver that matches the Device Path has been found\r
26 @retval EFI_NOT_FOUND No handles match the search.\r
27 @retval EFI_INVALID_PARAMETER DevicePath or Handle is NULL\r
28\r
29**/\r
30EFI_STATUS\r
31BdsConnectDevicePath (\r
32 IN EFI_DEVICE_PATH_PROTOCOL* DevicePath,\r
33 OUT EFI_HANDLE *Handle,\r
34 OUT EFI_DEVICE_PATH_PROTOCOL **RemainingDevicePath\r
35 );\r
36\r
a355a365 37/**\r
38 Connect all DXE drivers\r
39\r
40 @retval EFI_SUCCESS All drivers have been connected\r
41 @retval EFI_NOT_FOUND No handles match the search.\r
42 @retval EFI_OUT_OF_RESOURCES There is not resource pool memory to store the matching results.\r
43\r
44**/\r
45EFI_STATUS\r
46BdsConnectAllDrivers (\r
47 VOID\r
48 );\r
49\r
50/**\r
51 Start a Linux kernel from a Device Path\r
52\r
53 @param LinuxKernel Device Path to the Linux Kernel\r
6bab33c7 54 @param Parameters Linux kernel arguments\r
a355a365 55 @param Fdt Device Path to the Flat Device Tree\r
56\r
57 @retval EFI_SUCCESS All drivers have been connected\r
58 @retval EFI_NOT_FOUND The Linux kernel Device Path has not been found\r
59 @retval EFI_OUT_OF_RESOURCES There is not enough resource memory to store the matching results.\r
60\r
61**/\r
62EFI_STATUS\r
63BdsBootLinux (\r
64 IN EFI_DEVICE_PATH_PROTOCOL* LinuxKernelDevicePath,\r
65 IN CONST CHAR8* Arguments,\r
66 IN EFI_DEVICE_PATH_PROTOCOL* FdtDevicePath\r
67 );\r
68\r
6bab33c7 69/**\r
70 Start an EFI Application from a Device Path\r
71\r
72 @param ParentImageHandle Handle of the calling image\r
73 @param DevicePath Location of the EFI Application\r
74\r
75 @retval EFI_SUCCESS All drivers have been connected\r
76 @retval EFI_NOT_FOUND The Linux kernel Device Path has not been found\r
77 @retval EFI_OUT_OF_RESOURCES There is not enough resource memory to store the matching results.\r
78\r
79**/\r
80EFI_STATUS\r
81BdsStartEfiApplication (\r
82 IN EFI_HANDLE ParentImageHandle,\r
83 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath\r
84 );\r
85\r
a355a365 86/**\r
87 Start an EFI Application from any Firmware Volume\r
88\r
89 @param EfiApp EFI Application Name\r
90\r
91 @retval EFI_SUCCESS All drivers have been connected\r
92 @retval EFI_NOT_FOUND The Linux kernel Device Path has not been found\r
93 @retval EFI_OUT_OF_RESOURCES There is not enough resource memory to store the matching results.\r
94\r
95**/\r
96EFI_STATUS\r
97BdsLoadApplication (\r
98 IN EFI_HANDLE ParentImageHandle,\r
99 IN CHAR16* EfiApp\r
100 );\r
101\r
102#endif\r