From b4d07578554926c36b6256eca974bc12d41dffb5 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Sun, 12 Mar 2017 18:18:06 +0100 Subject: emulation/qemu-i440fx: Use SMBIOS macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idda4d74f9b934ccefe6ea5b553bde587059cde64 Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/18790 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé --- src/mainboard/emulation/qemu-i440fx/northbridge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainboard/emulation') diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c index 575069cc7e..d465afe6d0 100644 --- a/src/mainboard/emulation/qemu-i440fx/northbridge.c +++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c @@ -177,9 +177,9 @@ static int qemu_get_smbios_data16(int handle, unsigned long *current) t->type = SMBIOS_PHYS_MEMORY_ARRAY; t->handle = handle; t->length = len - 2; - t->location = 3; /* Location: System Board */ - t->use = 3; /* System memory */ - t->memory_error_correction = 3; /* No error correction */ + t->location = MEMORY_ARRAY_LOCATION_SYSTEM_BOARD; + t->use = MEMORY_ARRAY_USE_SYSTEM; + t->memory_error_correction = MEMORY_ARRAY_ECC_NONE; t->maximum_capacity = qemu_get_memory_size(); *current += len; return len; -- cgit v1.2.3