TianoCore EDK2
master
Loading...
Searching...
No Matches
HardwareInfoPei.c
1
/*/@file
2
Hardware info parsing functions.
3
Binary data is expected as a consecutive series of header - object pairs.
4
Provides static Qemu fw-cfg wrappers as well as list-like interface to
5
dynamically manipulate hardware info objects and parsing from a generic
6
blob.
7
8
Copyright 2021 - 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
9
SPDX-License-Identifier: BSD-2-Clause-Patent
10
11
**/
12
13
#include <
Library/DebugLib.h
>
14
15
#include <Library/HardwareInfoLib.h>
16
17
EFI_STATUS
18
CreateHardwareInfoList (
19
IN
UINT8 *Blob,
20
IN
UINTN
BlobSize,
21
IN
HARDWARE_INFO_TYPE TypeFilter,
22
OUT
LIST_ENTRY
*ListHead
23
)
24
{
25
ASSERT (
FALSE
);
26
return
EFI_UNSUPPORTED;
27
}
28
29
VOID
30
FreeHardwareInfoList (
31
IN
OUT
LIST_ENTRY
*ListHead
32
)
33
{
34
ASSERT (
FALSE
);
35
}
36
37
UINTN
38
GetHardwareInfoCountByType (
39
IN
LIST_ENTRY
*ListHead,
40
IN
HARDWARE_INFO_TYPE Type,
41
IN
UINTN
TypeSize
42
)
43
{
44
ASSERT (
FALSE
);
45
return
0;
46
}
47
48
LIST_ENTRY
*
49
GetFirstHardwareInfoByType (
50
IN
LIST_ENTRY
*ListHead,
51
IN
HARDWARE_INFO_TYPE Type,
52
IN
UINTN
TypeSize
53
)
54
{
55
ASSERT (
FALSE
);
56
return
ListHead;
57
}
58
59
LIST_ENTRY
*
60
GetNextHardwareInfoByType (
61
IN
LIST_ENTRY
*ListHead,
62
IN
LIST_ENTRY
*Node,
63
IN
HARDWARE_INFO_TYPE Type,
64
IN
UINTN
TypeSize
65
)
66
{
67
ASSERT (
FALSE
);
68
return
ListHead;
69
}
70
71
BOOLEAN
72
EndOfHardwareInfoList (
73
IN
LIST_ENTRY
*ListHead,
74
IN
LIST_ENTRY
*Node
75
)
76
{
77
ASSERT (
FALSE
);
78
return
TRUE
;
79
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
TRUE
#define TRUE
Definition:
Base.h:301
FALSE
#define FALSE
Definition:
Base.h:307
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
DebugLib.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
_LIST_ENTRY
Definition:
Base.h:247
OvmfPkg
Library
HardwareInfoLib
HardwareInfoPei.c
Generated on Fri Nov 15 2024 18:01:21 for TianoCore EDK2 by
1.9.6