VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/SmbiosPlatformDxe/CloudHv.c@ 102466

Last change on this file since 102466 was 99404, checked in by vboxsync, 23 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 826 bytes
Line 
1/** @file
2 Find Cloud Hypervisor SMBIOS data.
3
4 SPDX-License-Identifier: BSD-2-Clause-Patent
5**/
6
7#include <IndustryStandard/CloudHv.h> // CLOUDHV_SMBIOS_ADDRESS
8#include <IndustryStandard/SmBios.h> // SMBIOS_TABLE_3_0_ENTRY_POINT
9
10/**
11 Locates and extracts Cloud Hypervisor SMBIOS data
12
13 @return Address of extracted Cloud Hypervisor SMBIOS data
14
15**/
16UINT8 *
17GetCloudHvSmbiosTables (
18 VOID
19 )
20{
21 SMBIOS_TABLE_3_0_ENTRY_POINT *CloudHvTables = (VOID *)CLOUDHV_SMBIOS_ADDRESS;
22
23 if ((CloudHvTables->AnchorString[0] == '_') &&
24 (CloudHvTables->AnchorString[1] == 'S') &&
25 (CloudHvTables->AnchorString[2] == 'M') &&
26 (CloudHvTables->AnchorString[3] == '3') &&
27 (CloudHvTables->AnchorString[4] == '_'))
28 {
29 return (UINT8 *)(UINTN)CloudHvTables->TableAddress;
30 }
31
32 return NULL;
33}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette