diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2019-01-10 16:53:34 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-01-31 08:38:59 +0000 |
commit | bcd84fe149c29b48a8580dd64aba3a1333411039 (patch) | |
tree | 5af623f349db03eb33125090bd96a294396e3d52 /src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h | |
parent | d053f393c46c8a568f55c789e789e4e56026ad85 (diff) |
mb/emulation/qemu-i440fx: change file handling
Reduce the number of fw_find_file calls by returning the file structure
at fw_cfg_check_file. The file structure can then be used to allocate memory
and access the file content directly without recurrence searching.
Remove now unnecessary function fw_cfg_load_file.
Fixed breaking function calls and add include guard at fw_cfg_if.h.
Change-Id: I48cc943aaa999e4323e9d7e5dd666c5316533dcc
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/30845
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h b/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h index 8f1e24ccfa..46aee9b3d6 100644 --- a/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h +++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h @@ -16,6 +16,8 @@ * This are the qemu firmware config interface defines and structs. * Copyed over from qemu soure tree, include/hw/nvram/fw_cfg.h */ +#ifndef FW_CFG_IF_H +#define FW_CFG_IF_H #include <stdint.h> @@ -90,3 +92,5 @@ typedef struct FwCfgSmbios { uint8_t tabletype; uint16_t fieldoffset; } FwCfgSmbios; + +#endif /* FW_CFG_IF_H */ |