50 ASSERT (This !=
NULL);
52 FactoryInfo = This->TableFactoryInfo;
55 DEBUG ((DEBUG_ERROR,
"ERROR: Invalid Generator pointer\n"));
56 return EFI_INVALID_PARAMETER;
60 DEBUG ((DEBUG_ERROR,
"ERROR: Generator Type is not DT\n"));
61 return EFI_INVALID_PARAMETER;
67 if (TableId >= EStdDtTableIdMax) {
68 ASSERT (TableId < EStdDtTableIdMax);
69 return EFI_INVALID_PARAMETER;
80 return EFI_INVALID_PARAMETER;
116 DEBUG ((DEBUG_ERROR,
"ERROR: DT register - Invalid Generator\n"));
117 return EFI_INVALID_PARAMETER;
123 "ERROR: DT register - Generator" \
126 return EFI_INVALID_PARAMETER;
133 if (TableId >= EStdDtTableIdMax) {
134 ASSERT (TableId < EStdDtTableIdMax);
135 return EFI_INVALID_PARAMETER;
141 return EFI_ALREADY_STARTED;
145 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomDTGenerators));
146 return EFI_INVALID_PARAMETER;
152 return EFI_ALREADY_STARTED;
180 DEBUG ((DEBUG_ERROR,
"ERROR: DT deregister - Invalid Generator\n"));
181 return EFI_INVALID_PARAMETER;
187 "ERROR: DT deregister - Generator" \
190 return EFI_INVALID_PARAMETER;
195 if (TableId >= EStdDtTableIdMax) {
196 ASSERT (TableId < EStdDtTableIdMax);
197 return EFI_INVALID_PARAMETER;
202 return EFI_INVALID_PARAMETER;
207 return EFI_NOT_FOUND;
211 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomDTGenerators));
212 return EFI_INVALID_PARAMETER;
219 return EFI_INVALID_PARAMETER;
224 return EFI_NOT_FOUND;
228 DEBUG ((DEBUG_INFO,
"Deregistering %s\n",
Generator->Description));
EFI_STATUS EFIAPI RegisterDtTableGenerator(IN CONST DT_TABLE_GENERATOR *CONST Generator)
EDKII_DYNAMIC_TABLE_FACTORY_INFO TableFactoryInfo
EFI_STATUS EFIAPI GetDtTableGenerator(IN CONST EDKII_DYNAMIC_TABLE_FACTORY_PROTOCOL *CONST This, IN CONST DT_TABLE_GENERATOR_ID GeneratorId, OUT CONST DT_TABLE_GENERATOR **CONST Generator)
EFI_STATUS EFIAPI DeregisterDtTableGenerator(IN CONST DT_TABLE_GENERATOR *CONST Generator)
TABLE_GENERATOR_ID DT_TABLE_GENERATOR_ID
#define IS_GENERATOR_TYPE_DT(TableGeneratorId)
#define DEBUG(Expression)
#define FixedPcdGet16(TokenName)
#define GET_TABLE_ID(TableGeneratorId)
#define IS_GENERATOR_NAMESPACE_STD(TableGeneratorId)
CONST DT_TABLE_GENERATOR * StdDtTableGeneratorList[EStdDtTableIdMax]
An array for holding the list of Standard DT Table Generators.
CONST DT_TABLE_GENERATOR * CustomDtTableGeneratorList[FixedPcdGet16(PcdMaxCustomDTGenerators)]
An array for holding the list of Custom DT Table Generators.