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