forked from microsoft/mu_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MfciDeviceIdSupportLibNull.c
119 lines (109 loc) · 2.32 KB
/
MfciDeviceIdSupportLibNull.c
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/** @file
This library provides access to platform data that becomes the MFCI DeviceId.
See MfciDeviceIdSupportLib.h for helpful documentation not duplicated here
Copyright (c) Microsoft Corporation
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <Library/MfciDeviceIdSupportLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
CONST MFCI_DEVICE_ID_FN_TO_VAR_NAME_MAP gDeviceIdFnToTargetVarNameMap[MFCI_TARGET_VAR_COUNT] = { 0 };
/**
* Get the Manufacturer Name
*
* @param[out] Manufacturer
* @param[out] ManufacturerSize
*
* It is the callers responsibility to free the buffer returned.
*
* @return EFI_STATUS
*
* @retval EFI_UNSUPPORTED Likely using the NULL library instance
* @retval EFI_SUCCESS Successfully retrieved the string and length
*/
EFI_STATUS
EFIAPI
MfciIdSupportGetManufacturer (
OUT CHAR16 **Manufacturer,
OUT UINTN *ManufacturerSize OPTIONAL
)
{
return EFI_UNSUPPORTED;
}
/**
* Get the ProductName
*
* @param[out] ProductName
* @param[out] ProductNameSize
*
* It is the callers responsibility to free the buffer returned.
*
* @return EFI_STATUS
*/
EFI_STATUS
EFIAPI
MfciIdSupportGetProductName (
OUT CHAR16 **ProductName,
OUT UINTN *ProductNameSize OPTIONAL
)
{
return EFI_UNSUPPORTED;
}
/**
* Get the SerialNumber
*
* @param[out] SerialNumber
* @param[out] SerialNumberSize
*
* It is the callers responsibility to free the buffer returned.
*
* @return EFI_STATUS
*/
EFI_STATUS
EFIAPI
MfciIdSupportGetSerialNumber (
OUT CHAR16 **SerialNumber,
OUT UINTN *SerialNumberSize OPTIONAL
)
{
return EFI_UNSUPPORTED;
}
/**
* Get OEM1
*
* @param[out] Oem1
* @param[out] Oem1Size
*
* It is the callers responsibility to free the buffer returned.
*
* @return EFI_STATUS
*/
EFI_STATUS
EFIAPI
MfciIdSupportGetOem1 (
OUT CHAR16 **Oem1,
OUT UINTN *Oem1Size OPTIONAL
)
{
return EFI_UNSUPPORTED;
}
/**
* Get OEM2
*
* @param[out] Oem2
* @param[out] Oem2Size
*
* It is the callers responsibility to free the buffer returned.
*
* @return EFI_STATUS
*/
EFI_STATUS
EFIAPI
MfciIdSupportGetOem2 (
OUT CHAR16 **Oem2,
OUT UINTN *Oem2Size OPTIONAL
)
{
return EFI_UNSUPPORTED;
}