]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/SmbiosPlatformDxe/Xen.c
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / SmbiosPlatformDxe / Xen.c
CommitLineData
ce270905
LE
1/** @file\r
2 This driver installs SMBIOS information for OVMF on Xen\r
3\r
4 Copyright (C) 2021, Red Hat, Inc.\r
5 Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>\r
6 Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
7\r
8 SPDX-License-Identifier: BSD-2-Clause-Patent\r
9\r
10**/\r
11\r
12#include "SmbiosPlatformDxe.h"\r
13#include "XenSmbiosPlatformDxe.h"\r
14\r
15/**\r
16 Installs SMBIOS information for OVMF on Xen\r
17\r
18 @param ImageHandle Module's image handle\r
19 @param SystemTable Pointer of EFI_SYSTEM_TABLE\r
20\r
21 @retval EFI_SUCCESS Smbios data successfully installed\r
22 @retval Other Smbios data was not installed\r
23\r
24**/\r
25EFI_STATUS\r
26EFIAPI\r
27XenSmbiosTablePublishEntry (\r
ac0a286f
MK
28 IN EFI_HANDLE ImageHandle,\r
29 IN EFI_SYSTEM_TABLE *SystemTable\r
ce270905
LE
30 )\r
31{\r
32 EFI_STATUS Status;\r
33 SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure;\r
34 UINT8 *SmbiosTables;\r
35\r
36 Status = EFI_NOT_FOUND;\r
37 //\r
38 // Add Xen SMBIOS data if found\r
39 //\r
40 EntryPointStructure = GetXenSmbiosTables ();\r
41 if (EntryPointStructure != NULL) {\r
ac0a286f 42 SmbiosTables = (UINT8 *)(UINTN)EntryPointStructure->TableAddress;\r
ce270905
LE
43 if (SmbiosTables != NULL) {\r
44 Status = InstallAllStructures (SmbiosTables);\r
45 }\r
46 }\r
47\r
48 return Status;\r
49}\r