diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-01-08 15:25:38 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-11 13:41:00 -0600 |
commit | bdb5ee3064d5ae786b0bcb6cf6ff4e3554a72990 (patch) | |
tree | 929cf6f134782c6cf8370c9fd0a0e1f1da611a77 /hw/loader.h | |
parent | 2cae6f5e34d85fe44ec2329a7fbc22dc8cfb079f (diff) |
roms: minor fixes and cleanups.
Changes:
- Drop extra file argument from rom_add_file().
- Drop fw_dir check in do_info_roms, we allways have a dir name.
- code style fixes.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/loader.h')
-rw-r--r-- | hw/loader.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/loader.h b/hw/loader.h index 77beb0e93f..698160b825 100644 --- a/hw/loader.h +++ b/hw/loader.h @@ -19,7 +19,8 @@ void pstrcpy_targphys(const char *name, target_phys_addr_t dest, int buf_size, const char *source); -int rom_add_file(const char *file, const char *fw_dir, const char *fw_file, + +int rom_add_file(const char *file, const char *fw_dir, target_phys_addr_t addr); int rom_add_blob(const char *name, const void *blob, size_t len, target_phys_addr_t addr); @@ -30,7 +31,7 @@ void *rom_ptr(target_phys_addr_t addr); void do_info_roms(Monitor *mon); #define rom_add_file_fixed(_f, _a) \ - rom_add_file(_f, NULL, NULL, _a) + rom_add_file(_f, NULL, _a) #define rom_add_blob_fixed(_f, _b, _l, _a) \ rom_add_blob(_f, _b, _l, _a) |