blob: beb10ba8962e2562bf3f04d45d886009021082a4 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/*/@file
Hardware info parsing functions.
Binary data is expected as a consecutive series of header - object pairs.
Provides static Qemu fw-cfg wrappers as well as list-like interface to
dynamically manipulate hardware info objects and parsing from a generic
blob.
Copyright 2021 - 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/DebugLib.h>
#include <Library/HardwareInfoLib.h>
EFI_STATUS
CreateHardwareInfoList (
IN UINT8 *Blob,
IN UINTN BlobSize,
IN HARDWARE_INFO_TYPE TypeFilter,
OUT LIST_ENTRY *ListHead
)
{
ASSERT (FALSE);
return EFI_UNSUPPORTED;
}
VOID
FreeHardwareInfoList (
IN OUT LIST_ENTRY *ListHead
)
{
ASSERT (FALSE);
}
UINTN
GetHardwareInfoCountByType (
IN LIST_ENTRY *ListHead,
IN HARDWARE_INFO_TYPE Type,
IN UINTN TypeSize
)
{
ASSERT (FALSE);
return 0;
}
LIST_ENTRY *
GetFirstHardwareInfoByType (
IN LIST_ENTRY *ListHead,
IN HARDWARE_INFO_TYPE Type,
IN UINTN TypeSize
)
{
ASSERT (FALSE);
return ListHead;
}
LIST_ENTRY *
GetNextHardwareInfoByType (
IN LIST_ENTRY *ListHead,
IN LIST_ENTRY *Node,
IN HARDWARE_INFO_TYPE Type,
IN UINTN TypeSize
)
{
ASSERT (FALSE);
return ListHead;
}
BOOLEAN
EndOfHardwareInfoList (
IN LIST_ENTRY *ListHead,
IN LIST_ENTRY *Node
)
{
ASSERT (FALSE);
return TRUE;
}
|