51 ASSERT (This !=
NULL);
53 FactoryInfo = This->TableFactoryInfo;
56 DEBUG ((DEBUG_ERROR,
"ERROR: Invalid Generator pointer\n"));
57 return EFI_INVALID_PARAMETER;
61 DEBUG ((DEBUG_ERROR,
"ERROR: Generator Type is not SMBIOS\n"));
62 return EFI_INVALID_PARAMETER;
68 if (TableId >= EStdSmbiosTableIdMax) {
69 ASSERT (TableId < EStdSmbiosTableIdMax);
70 return EFI_INVALID_PARAMETER;
80 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomSMBIOSGenerators));
81 return EFI_INVALID_PARAMETER;
117 DEBUG ((DEBUG_ERROR,
"ERROR: SMBIOS register - Invalid Generator\n"));
118 return EFI_INVALID_PARAMETER;
124 "ERROR: SMBIOS register - Generator" \
125 " Type is not SMBIOS\n"
127 return EFI_INVALID_PARAMETER;
134 if (TableId >= EStdSmbiosTableIdMax) {
135 ASSERT (TableId < EStdSmbiosTableIdMax);
136 return EFI_INVALID_PARAMETER;
142 return EFI_ALREADY_STARTED;
145 if (TableId >
FixedPcdGet16 (PcdMaxCustomSMBIOSGenerators)) {
146 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomSMBIOSGenerators));
147 return EFI_INVALID_PARAMETER;
153 return EFI_ALREADY_STARTED;
181 DEBUG ((DEBUG_ERROR,
"ERROR: SMBIOS deregister - Invalid Generator\n"));
182 return EFI_INVALID_PARAMETER;
188 "ERROR: SMBIOS deregister - Generator" \
189 " Type is not SMBIOS\n"
191 return EFI_INVALID_PARAMETER;
196 if (TableId >= EStdSmbiosTableIdMax) {
197 ASSERT (TableId < EStdSmbiosTableIdMax);
198 return EFI_INVALID_PARAMETER;
203 return EFI_INVALID_PARAMETER;
208 return EFI_NOT_FOUND;
211 if (TableId >
FixedPcdGet16 (PcdMaxCustomSMBIOSGenerators)) {
212 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomSMBIOSGenerators));
213 return EFI_INVALID_PARAMETER;
220 return EFI_INVALID_PARAMETER;
225 return EFI_NOT_FOUND;
229 DEBUG ((DEBUG_INFO,
"Deregistering %s\n",
Generator->Description));
#define DEBUG(Expression)
#define FixedPcdGet16(TokenName)
EFI_STATUS EFIAPI DeregisterSmbiosTableGenerator(IN CONST SMBIOS_TABLE_GENERATOR *CONST Generator)
EFI_STATUS EFIAPI GetSmbiosTableGenerator(IN CONST EDKII_DYNAMIC_TABLE_FACTORY_PROTOCOL *CONST This, IN CONST SMBIOS_TABLE_GENERATOR_ID GeneratorId, OUT CONST SMBIOS_TABLE_GENERATOR **CONST Generator)
EDKII_DYNAMIC_TABLE_FACTORY_INFO TableFactoryInfo
EFI_STATUS EFIAPI RegisterSmbiosTableGenerator(IN CONST SMBIOS_TABLE_GENERATOR *CONST Generator)
TABLE_GENERATOR_ID SMBIOS_TABLE_GENERATOR_ID
#define IS_GENERATOR_TYPE_SMBIOS(TableGeneratorId)
#define GET_TABLE_ID(TableGeneratorId)
#define IS_GENERATOR_NAMESPACE_STD(TableGeneratorId)
CONST SMBIOS_TABLE_GENERATOR * StdSmbiosTableGeneratorList[EStdSmbiosTableIdMax]
An array for holding the list of Standard SMBIOS Table Generators.
CONST SMBIOS_TABLE_GENERATOR * CustomSmbiosTableGeneratorList[FixedPcdGet16(PcdMaxCustomSMBIOSGenerators)]
An array for holding the list of Custom SMBIOS Table Generators.