diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-08-27 11:25:13 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-03-10 10:44:46 +0100 |
commit | db9d169ddb1cda58d1d42f20c2d6c1b99e0200ed (patch) | |
tree | 756824f951dabe6dd654c0d204bc6035d579ddbd /src/mainboard/emulation/qemu-i440fx/northbridge.c | |
parent | f14bd79ae161e65a0f6bb675452323ecd905a27e (diff) | |
download | coreboot-db9d169ddb1cda58d1d42f20c2d6c1b99e0200ed.tar.xz |
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 <kraxel@redhat.com>
Reviewed-on: http://review.coreboot.org/8608
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/northbridge.c')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/northbridge.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |