TianoCore EDK2 master
Loading...
Searching...
No Matches
DynamicTableFactoryDxe.c
Go to the documentation of this file.
1
10#include <Library/DebugLib.h>
11#include <Library/PcdLib.h>
13#include <Protocol/AcpiTable.h>
14
15// Module specific include files.
16#include <AcpiTableGenerator.h>
24
25#include "DynamicTableFactory.h"
26
31
37 CREATE_REVISION (1, 0),
48};
49
61EFIAPI
63 IN EFI_HANDLE ImageHandle,
64 IN EFI_SYSTEM_TABLE *SystemTable
65 )
66{
67 EFI_STATUS Status;
68
69 Status = gBS->InstallProtocolInterface (
70 &ImageHandle,
74 );
75 if (EFI_ERROR (Status)) {
76 DEBUG ((
77 DEBUG_ERROR,
78 "ERROR: Failed to install the Dynamic Table Factory Protocol." \
79 " Status = %r\n",
80 Status
81 ));
82 }
83
84 return Status;
85}
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)
EFI_STATUS EFIAPI RegisterAcpiTableGenerator(IN CONST ACPI_TABLE_GENERATOR *CONST Generator)
EFI_STATUS EFIAPI DeregisterAcpiTableGenerator(IN CONST ACPI_TABLE_GENERATOR *CONST Generator)
EFI_STATUS EFIAPI RegisterDtTableGenerator(IN CONST DT_TABLE_GENERATOR *CONST Generator)
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)
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 DynamicTableFactoryDxeInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_GUID gEdkiiDynamicTableFactoryProtocolGuid
#define CONST
Definition: Base.h:259
#define STATIC
Definition: Base.h:264
#define IN
Definition: Base.h:279
#define DEBUG(Expression)
Definition: DebugLib.h:434
EFI_STATUS EFIAPI DeregisterSmbiosTableGenerator(IN CONST SMBIOS_TABLE_GENERATOR *CONST Generator)
EFI_STATUS EFIAPI RegisterSmbiosTableGenerator(IN CONST SMBIOS_TABLE_GENERATOR *CONST Generator)
#define CREATE_REVISION(Major, Minor)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_BOOT_SERVICES * gBS
@ EFI_NATIVE_INTERFACE
Definition: UefiSpec.h:1193