]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/FspSupport/BootModePei/BootModePei.c
Vlv2TbltDevicePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2TbltDevicePkg / FspSupport / BootModePei / BootModePei.c
1 /** @file
2 This PEIM will parse the hoblist from fsp and report them into pei core.
3 This file contains the main entrypoint of the PEIM.
4
5 Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10
11 #include <PiPei.h>
12 #include <Ppi/MasterBootMode.h>
13
14 static EFI_PEI_PPI_DESCRIPTOR mPpiList[] = {
15 {
16 EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
17 &gEfiPeiMasterBootModePpiGuid,
18 NULL
19 },
20 };
21
22 /**
23 This is the entrypoint of PEIM
24
25 @param FileHandle Handle of the file being invoked.
26 @param PeiServices Describes the list of possible PEI Services.
27
28 @retval EFI_SUCCESS if it completed successfully.
29 **/
30 EFI_STATUS
31 EFIAPI
32 BootModePeiEntryPoint (
33 IN EFI_PEI_FILE_HANDLE FileHandle,
34 IN CONST EFI_PEI_SERVICES **PeiServices
35 )
36 {
37 (*PeiServices)->SetBootMode(PeiServices, BOOT_WITH_FULL_CONFIGURATION);
38
39 (*PeiServices)->InstallPpi (PeiServices, &mPpiList[0]);
40
41 return EFI_SUCCESS;
42 }