17#define XEN_SMBIOS_PHYSICAL_ADDRESS 0x000EB000
18#define XEN_SMBIOS_PHYSICAL_END 0x000F0000
40 BytePtr = (UINT8 *)EntryPointStructure;
41 Length = EntryPointStructure->EntryPointLength;
44 for (Index = 0; Index < Length; Index++) {
45 Checksum = Checksum + (UINT8)BytePtr[Index];
74 if (GuidHob ==
NULL) {
78 for (XenSmbiosPtr = (UINT8 *)(
UINTN)XEN_SMBIOS_PHYSICAL_ADDRESS;
79 XenSmbiosPtr < (UINT8 *)(
UINTN)XEN_SMBIOS_PHYSICAL_END;
84 if (!
AsciiStrnCmp ((CHAR8 *)XenSmbiosEntryPointStructure->AnchorString,
"_SM_", 4) &&
85 !
AsciiStrnCmp ((CHAR8 *)XenSmbiosEntryPointStructure->IntermediateAnchorString,
"_DMI_", 5) &&
88 return XenSmbiosEntryPointStructure;
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
INTN EFIAPI AsciiStrnCmp(IN CONST CHAR8 *FirstString, IN CONST CHAR8 *SecondString, IN UINTN Length)
SMBIOS_TABLE_ENTRY_POINT * GetXenSmbiosTables(VOID)
STATIC BOOLEAN IsEntryPointStructureValid(IN SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure)