TianoCore EDK2
master
Loading...
Searching...
No Matches
Xen.c
Go to the documentation of this file.
1
12
#include "
SmbiosPlatformDxe.h
"
13
#include "
XenSmbiosPlatformDxe.h
"
14
25
EFI_STATUS
26
EFIAPI
27
XenSmbiosTablePublishEntry
(
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
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
GetXenSmbiosTables
SMBIOS_TABLE_ENTRY_POINT * GetXenSmbiosTables(VOID)
Definition:
ArmXen.c:20
InstallAllStructures
EFI_STATUS InstallAllStructures(IN EFI_SMBIOS_PROTOCOL *Smbios, IN UINT8 *TableAddress)
Definition:
SmbiosPlatformDxe.c:131
NULL
#define NULL
Definition:
Base.h:319
IN
#define IN
Definition:
Base.h:279
SmbiosPlatformDxe.h
XenSmbiosTablePublishEntry
EFI_STATUS EFIAPI XenSmbiosTablePublishEntry(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition:
Xen.c:27
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
XenSmbiosPlatformDxe.h
EFI_SYSTEM_TABLE
Definition:
UefiSpec.h:2028
SMBIOS_TABLE_ENTRY_POINT
Definition:
SmBios.h:158
OvmfPkg
SmbiosPlatformDxe
Xen.c
Generated on Fri Nov 15 2024 18:01:22 for TianoCore EDK2 by
1.9.6