From db9d169ddb1cda58d1d42f20c2d6c1b99e0200ed Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 27 Aug 2014 11:25:13 +0200 Subject: qemu: 2.1+ smbios tables support Starting with version 2.1 qemu provides a full set of smbios tables for the virtual hardware emulated, except type 0 (bios information). This patch adds support for loading those tables to coreboot. The code is used by both i440fx and q35. Change-Id: Id034f0c214e8890194145a92f06354201dee7963 Signed-off-by: Gerd Hoffmann Reviewed-on: http://review.coreboot.org/8608 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/emulation/qemu-i440fx/northbridge.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainboard/emulation/qemu-i440fx/northbridge.c') diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c index 08d563fbe5..f12a272f89 100644 --- a/src/mainboard/emulation/qemu-i440fx/northbridge.c +++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c @@ -213,6 +213,11 @@ static int qemu_get_smbios_data17(int handle, int parent_handle, unsigned long * static int qemu_get_smbios_data(device_t dev, int *handle, unsigned long *current) { int len; + + len = fw_cfg_smbios_tables(handle, current); + if (len != 0) + return len; + len = qemu_get_smbios_data16(*handle, current); len += qemu_get_smbios_data17(*handle+1, *handle, current); *handle += 2; -- cgit v1.2.3