summaryrefslogtreecommitdiff
path: root/UefiPayloadPkg/Library/CustomFdtNodeParserNullLib/CustomFdtNodeParserNullLib.c
blob: 4b2a8b92389a6ac91b72732479d47e3ccb40fe48 (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
42
43
44
45
46
/** @file
  Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <PiPei.h>
#include <Pi/PiHob.h>

/**
  Check the HOB and decide if it is need inside Payload
  Payload maintainer may make decision which HOB is need or needn't
  Then add the check logic in the function.
  @param[in] Hob The HOB to check
  @retval TRUE  If HOB is need inside Payload
  @retval FALSE If HOB is needn't inside Payload
**/
BOOLEAN
FitIsHobNeed (
  EFI_PEI_HOB_POINTERS  Hob
  )
{
  return FALSE;
}

/**
  It will Parse FDT -custom node based on information from bootloaders.
  @param[in]  FdtBase The starting memory address of FdtBase.
  @param[in]  HobList The starting memory address of New Hob list.
  @retval HobList   The base address of Hoblist.

**/
UINTN
CustomFdtNodeParser (
  IN VOID  *Fdt,
  IN VOID  *HobList
  )
{
  UINTN  CHobList;

  CHobList = 0;
  if (HobList != NULL) {
    CHobList = (UINTN)HobList;
  }

  return CHobList;
}