From 289b45fdffa42db85fa4ad63338677ab8f15e9a2 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 12 Jun 2013 10:18:58 +0200 Subject: qemu: add fw_cfg files support Qemu can provide files using the firmware config interface. This is used to pass config options, virtual machine config info and option roms into the guest. This patch adds support for reading the file index and loading files from qemu. Change-Id: I57d4a734527c4117239f355121cf1fb8a390ab0d Signed-off-by: Gerd Hoffmann Reviewed-on: http://review.coreboot.org/4029 Tested-by: build bot (Jenkins) --- src/mainboard/emulation/qemu-i440fx/fw_cfg.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mainboard/emulation/qemu-i440fx/fw_cfg.h') diff --git a/src/mainboard/emulation/qemu-i440fx/fw_cfg.h b/src/mainboard/emulation/qemu-i440fx/fw_cfg.h index 063e48f838..2a10d8bce9 100644 --- a/src/mainboard/emulation/qemu-i440fx/fw_cfg.h +++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg.h @@ -16,4 +16,6 @@ */ void fw_cfg_get(int entry, void *dst, int dstlen); +int fw_cfg_check_file(const char *name); +void fw_cfg_load_file(const char *name, void *dst); int fw_cfg_max_cpus(void); -- cgit v1.2.3