diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-12-08 13:35:06 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-11 21:32:46 +0000 |
commit | de1f34cb6351c028ebcc61fea9fa78008ca1a529 (patch) | |
tree | 5741f0c6de842fd7966eb6df47dbd0adb94da6d7 /hw/fw_cfg.h | |
parent | 1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757 (diff) | |
download | qemu-de1f34cb6351c028ebcc61fea9fa78008ca1a529.tar.gz qemu-de1f34cb6351c028ebcc61fea9fa78008ca1a529.tar.bz2 qemu-de1f34cb6351c028ebcc61fea9fa78008ca1a529.zip |
Change fw_cfg_add_file() to get full file path as a parameter.
Change fw_cfg_add_file() to get full file path as a parameter instead
of building one internally. Two reasons for that. First caller may need
to know how file is named. Second this moves policy of file naming out
from fw_cfg. Platform may want to use more then two levels of
directories for instance.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/fw_cfg.h')
-rw-r--r-- | hw/fw_cfg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h index 4d13a4f394..856bf9199d 100644 --- a/hw/fw_cfg.h +++ b/hw/fw_cfg.h @@ -60,8 +60,8 @@ int fw_cfg_add_i32(FWCfgState *s, uint16_t key, uint32_t value); int fw_cfg_add_i64(FWCfgState *s, uint16_t key, uint64_t value); int fw_cfg_add_callback(FWCfgState *s, uint16_t key, FWCfgCallback callback, void *callback_opaque, uint8_t *data, size_t len); -int fw_cfg_add_file(FWCfgState *s, const char *dir, const char *filename, - uint8_t *data, uint32_t len); +int fw_cfg_add_file(FWCfgState *s, const char *filename, uint8_t *data, + uint32_t len); FWCfgState *fw_cfg_init(uint32_t ctl_port, uint32_t data_port, target_phys_addr_t crl_addr, target_phys_addr_t data_addr); |