TianoCore EDK2 master
Loading...
Searching...
No Matches
Xen.c
Go to the documentation of this file.
1
12#include "SmbiosPlatformDxe.h"
14
26EFIAPI
28 IN EFI_HANDLE ImageHandle,
29 IN EFI_SYSTEM_TABLE *SystemTable
30 )
31{
32 EFI_STATUS Status;
33 SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure;
34 UINT8 *SmbiosTables;
35
36 Status = EFI_NOT_FOUND;
37 //
38 // Add Xen SMBIOS data if found
39 //
40 EntryPointStructure = GetXenSmbiosTables ();
41 if (EntryPointStructure != NULL) {
42 SmbiosTables = (UINT8 *)(UINTN)EntryPointStructure->TableAddress;
43 if (SmbiosTables != NULL) {
44 Status = InstallAllStructures (SmbiosTables);
45 }
46 }
47
48 return Status;
49}
UINT64 UINTN
SMBIOS_TABLE_ENTRY_POINT * GetXenSmbiosTables(VOID)
Definition: ArmXen.c:20
EFI_STATUS InstallAllStructures(IN EFI_SMBIOS_PROTOCOL *Smbios, IN UINT8 *TableAddress)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
EFI_STATUS EFIAPI XenSmbiosTablePublishEntry(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: Xen.c:27
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33