TianoCore EDK2 master
Loading...
Searching...
No Matches
X86Xen.c File Reference
#include <Library/BaseLib.h>
#include <Library/HobLib.h>
#include <Pi/PiHob.h>
#include "XenSmbiosPlatformDxe.h"

Go to the source code of this file.

Macros

#define XEN_SMBIOS_PHYSICAL_ADDRESS   0x000EB000
 
#define XEN_SMBIOS_PHYSICAL_END   0x000F0000
 

Functions

STATIC BOOLEAN IsEntryPointStructureValid (IN SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure)
 
SMBIOS_TABLE_ENTRY_POINTGetXenSmbiosTables (VOID)
 

Detailed Description

Detect Xen hvmloader SMBIOS data for usage by OVMF.

Copyright (c) 2011, Bei Guan gbtju.nosp@m.85@g.nosp@m.mail..nosp@m.com Copyright (c) 2011, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file X86Xen.c.

Macro Definition Documentation

◆ XEN_SMBIOS_PHYSICAL_ADDRESS

#define XEN_SMBIOS_PHYSICAL_ADDRESS   0x000EB000

Definition at line 17 of file X86Xen.c.

◆ XEN_SMBIOS_PHYSICAL_END

#define XEN_SMBIOS_PHYSICAL_END   0x000F0000

Definition at line 18 of file X86Xen.c.

Function Documentation

◆ GetXenSmbiosTables()

SMBIOS_TABLE_ENTRY_POINT * GetXenSmbiosTables ( VOID  )

Locates the Xen SMBIOS data if it exists

Returns
SMBIOS_TABLE_ENTRY_POINT Address of Xen SMBIOS data

Definition at line 62 of file X86Xen.c.

◆ IsEntryPointStructureValid()

STATIC BOOLEAN IsEntryPointStructureValid ( IN SMBIOS_TABLE_ENTRY_POINT EntryPointStructure)

Validates the SMBIOS entry point structure

Parameters
EntryPointStructureSMBIOS entry point structure
Return values
TRUEThe entry point structure is valid
FALSEThe entry point structure is not valid

Definition at line 31 of file X86Xen.c.