summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Logo/Logo.h
blob: 65d8b507be9f1820f6fc4d9bef7aa2e3ebfb4c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/** @file
  Consolidated header file for Logo DXE Driver.

  Provides headers and platform-specific logo image ID based on build configuration and
  manages logo display through the Edkii Platform Logo protocol.

  Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
  Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved.<BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#pragma once

#include <Uefi.h>
#include <Protocol/GraphicsOutput.h>
#include <Protocol/HiiDatabase.h>
#include <Protocol/HiiImageEx.h>
#include <Protocol/HiiPackageList.h>
#include <Protocol/PlatformLogo.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BmpSupportLib.h>
#include <Library/DebugLib.h>
#include <Library/DxeServicesLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PcdLib.h>
#include <Library/UefiBootServicesTableLib.h>

/**
  Get the logo image ID for the current build configuration.

  Returns the HII image ID for embedded logo (HII mode) or 0 for FFS mode.

  @retval IMAGE_TOKEN(IMG_LOGO)  HII embedded logo image ID (LogoDxe variant).
  @retval 0                      No HII logo (LogoFfsDxe variant).

**/
EFI_IMAGE_ID
GetLogoImageId (
  VOID
  );