summaryrefslogtreecommitdiff
path: root/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h
diff options
context:
space:
mode:
authorGabriel Somlo <somlo@cmu.edu>2014-05-20 16:33:19 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-05-20 16:33:19 +0000
commita145e28decc529bf26981ae57c3fc2ffe0b946f2 (patch)
treeefb48cc2330ec371614f251c4fda42fcbbd15526 /OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h
parent6b23d767f6c762178503cf26e4c6d066fd311f25 (diff)
downloadedk2-platforms-a145e28decc529bf26981ae57c3fc2ffe0b946f2.tar.xz
OvmfPkg/SMBIOS: Add QEMU support to OVMF SMBIOS driver
Locate QEMU SMBIOS data in fw_cfg and install it via the SMBIOS protocol. Starting with qemu-2.1, on pc/x86 machines of type >= 2.1, full SMBIOS tables are generated and inserted into fw_cfg (i.e., no per-field patching of locally generated structures is required). Aside from new code to extract a SMBIOS blob from fw_cfg, this patch utilizes the pre-existing infrastructure (already used by Xen) to handle final SMBIOS table creation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gabriel Somlo <somlo@cmu.edu> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15542 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h')
-rw-r--r--OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h
index bf99e43ba3..e2606e1de8 100644
--- a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h
+++ b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h
@@ -25,6 +25,7 @@
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
+#include <Library/MemoryAllocationLib.h>
/**
@@ -40,6 +41,18 @@ GetXenSmbiosTables (
/**
+ Locates and extracts the QEMU SMBIOS table data if present in fw_cfg
+
+ @return Address of extracted QEMU SMBIOS data
+
+**/
+UINT8 *
+GetQemuSmbiosTables (
+ VOID
+ );
+
+
+/**
Validates the SMBIOS entry point structure
@param EntryPointStructure SMBIOS entry point structure