]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | This driver produces file explorer protocol layered on top of the FileExplorerLib from the MdeModulePkg.\r | |
3 | \r | |
4 | Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #include <PiDxe.h>\r | |
10 | \r | |
11 | #include <Protocol/FileExplorer.h>\r | |
12 | #include <Library/FileExplorerLib.h>\r | |
13 | #include <Library/UefiBootServicesTableLib.h>\r | |
14 | #include <Library/DebugLib.h>\r | |
15 | #include <Library/UefiDriverEntryPoint.h>\r | |
16 | \r | |
17 | EFI_HANDLE mFileExplorerThunkHandle = NULL;\r | |
18 | \r | |
19 | CONST EFI_FILE_EXPLORER_PROTOCOL mFileExplorerProtocol = {\r | |
20 | ChooseFile\r | |
21 | };\r | |
22 | \r | |
23 | /**\r | |
24 | The user Entry Point for File explorer module.\r | |
25 | \r | |
26 | This is the entry point for Print DXE Driver. It installs the file explorer Protocol.\r | |
27 | \r | |
28 | @param[in] ImageHandle The firmware allocated handle for the EFI image.\r | |
29 | @param[in] SystemTable A pointer to the EFI System Table.\r | |
30 | \r | |
31 | @retval EFI_SUCCESS The entry point is executed successfully.\r | |
32 | @retval Others Some error occurs when executing this entry point.\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
36 | EFIAPI\r | |
37 | FileExplorerEntryPoint (\r | |
38 | IN EFI_HANDLE ImageHandle,\r | |
39 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
40 | )\r | |
41 | {\r | |
42 | EFI_STATUS Status;\r | |
43 | \r | |
44 | Status = gBS->InstallMultipleProtocolInterfaces (\r | |
45 | &mFileExplorerThunkHandle,\r | |
46 | &gEfiFileExplorerProtocolGuid, &mFileExplorerProtocol,\r | |
47 | NULL\r | |
48 | );\r | |
49 | ASSERT_EFI_ERROR (Status);\r | |
50 | \r | |
51 | return Status;\r | |
52 | }\r |