hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
/** @file
*  FdtHelperLib.h
*
*  Copyright (c) 2021, NUVIA Inc. All rights reserved.
*
*  SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
 
#ifndef FDT_HELPER_LIB_
#define FDT_HELPER_LIB_
 
/**
  Get MPIDR for a given cpu from device tree passed by Qemu.
 
  @param [in]   CpuId    Index of cpu to retrieve MPIDR value for.
 
  @retval                MPIDR value of CPU at index <CpuId>
**/
UINT64
FdtHelperGetMpidr (
  IN UINTN   CpuId
  );
 
/** Walks through the Device Tree created by Qemu and counts the number
    of CPUs present in it.
 
    @return The number of CPUs present.
**/
EFIAPI
UINT32
FdtHelperCountCpus (
  VOID
  );
 
#endif /* FDT_HELPER_LIB_ */