diff options
author | Li Qiang <liq3ea@163.com> | 2019-04-24 07:06:40 -0700 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-05-23 14:10:31 +0200 |
commit | c99f5f1dd4161012ee9ba69e7f5d351e52ed18ae (patch) | |
tree | af3405ce58debcbba1b2a88a5e294cf87888e967 /tests/libqos/fw_cfg.h | |
parent | 7a44091d48c1054a859f44a70ef280c7cef4698f (diff) | |
download | qemu-c99f5f1dd4161012ee9ba69e7f5d351e52ed18ae.zip qemu-c99f5f1dd4161012ee9ba69e7f5d351e52ed18ae.tar.gz qemu-c99f5f1dd4161012ee9ba69e7f5d351e52ed18ae.tar.bz2 |
tests: fw_cfg: add a function to get the fw_cfg file
This is useful to write qtest about fw_cfg file entry.
Signed-off-by: Li Qiang <liq3ea@163.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190424140643.62457-3-liq3ea@163.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests/libqos/fw_cfg.h')
-rw-r--r-- | tests/libqos/fw_cfg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libqos/fw_cfg.h b/tests/libqos/fw_cfg.h index 60de81e..13325cc 100644 --- a/tests/libqos/fw_cfg.h +++ b/tests/libqos/fw_cfg.h @@ -31,6 +31,8 @@ void qfw_cfg_get(QFWCFG *fw_cfg, uint16_t key, void *data, size_t len); uint16_t qfw_cfg_get_u16(QFWCFG *fw_cfg, uint16_t key); uint32_t qfw_cfg_get_u32(QFWCFG *fw_cfg, uint16_t key); uint64_t qfw_cfg_get_u64(QFWCFG *fw_cfg, uint16_t key); +size_t qfw_cfg_get_file(QFWCFG *fw_cfg, const char *filename, + void *data, size_t buflen); QFWCFG *mm_fw_cfg_init(QTestState *qts, uint64_t base); void mm_fw_cfg_uninit(QFWCFG *fw_cfg); |