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 ACPI\n"));
62 return EFI_INVALID_PARAMETER;
68 if (TableId >= EStdAcpiTableIdMax) {
69 ASSERT (TableId < EStdAcpiTableIdMax);
70 return EFI_INVALID_PARAMETER;
80 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomACPIGenerators));
81 return EFI_INVALID_PARAMETER;
117 DEBUG ((DEBUG_ERROR,
"ERROR: ACPI register - Invalid Generator\n"));
118 return EFI_INVALID_PARAMETER;
124 "ERROR: ACPI register - Generator" \
125 " Type is not ACPI\n"
127 return EFI_INVALID_PARAMETER;
134 if (TableId >= EStdAcpiTableIdMax) {
135 ASSERT (TableId < EStdAcpiTableIdMax);
136 return EFI_INVALID_PARAMETER;
142 return EFI_ALREADY_STARTED;
146 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomACPIGenerators));
147 return EFI_INVALID_PARAMETER;
153 return EFI_ALREADY_STARTED;
181 DEBUG ((DEBUG_ERROR,
"ERROR: ACPI deregister - Invalid Generator\n"));
182 return EFI_INVALID_PARAMETER;
188 "ERROR: ACPI deregister - Generator" \
189 " Type is not ACPI\n"
191 return EFI_INVALID_PARAMETER;
196 if (TableId >= EStdAcpiTableIdMax) {
197 ASSERT (TableId < EStdAcpiTableIdMax);
198 return EFI_INVALID_PARAMETER;
203 return EFI_INVALID_PARAMETER;
208 return EFI_NOT_FOUND;
212 ASSERT (TableId <=
FixedPcdGet16 (PcdMaxCustomACPIGenerators));
213 return EFI_INVALID_PARAMETER;
220 return EFI_INVALID_PARAMETER;
225 return EFI_NOT_FOUND;
229 DEBUG ((DEBUG_INFO,
"Deregistering %s\n",
Generator->Description));
EFI_STATUS EFIAPI GetAcpiTableGenerator(IN CONST EDKII_DYNAMIC_TABLE_FACTORY_PROTOCOL *CONST This, IN CONST ACPI_TABLE_GENERATOR_ID GeneratorId, OUT CONST ACPI_TABLE_GENERATOR **CONST Generator)
EDKII_DYNAMIC_TABLE_FACTORY_INFO TableFactoryInfo
EFI_STATUS EFIAPI RegisterAcpiTableGenerator(IN CONST ACPI_TABLE_GENERATOR *CONST Generator)
EFI_STATUS EFIAPI DeregisterAcpiTableGenerator(IN CONST ACPI_TABLE_GENERATOR *CONST Generator)
#define IS_GENERATOR_TYPE_ACPI(TableGeneratorId)
TABLE_GENERATOR_ID ACPI_TABLE_GENERATOR_ID
#define DEBUG(Expression)
#define FixedPcdGet16(TokenName)
#define GET_TABLE_ID(TableGeneratorId)
#define IS_GENERATOR_NAMESPACE_STD(TableGeneratorId)
CONST ACPI_TABLE_GENERATOR * StdAcpiTableGeneratorList[EStdAcpiTableIdMax]
An array for holding the list of Standard ACPI Table Generators.
CONST ACPI_TABLE_GENERATOR * CustomAcpiTableGeneratorList[FixedPcdGet16(PcdMaxCustomACPIGenerators)]
An array for holding the list of Custom ACPI Table Generators.