diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-01-31 20:15:50 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-01-31 20:15:50 +0000 |
commit | 02dce4500dd8f60a0a911aacd367a1cff8e15da6 (patch) | |
tree | ffd145c74a2794af7f0e5b8c27300e304a186048 /rbutil/mkamsboot/mkamsboot.h | |
parent | 6f2bba961f7744dd1f136a95b5a460daa0f9e1fe (diff) | |
download | rockbox-02dce4500dd8f60a0a911aacd367a1cff8e15da6.tar.gz rockbox-02dce4500dd8f60a0a911aacd367a1cff8e15da6.zip |
mkamsboot: restructure model / firmware file information.
Merge the various arrays holding model specific information into a
structure and give it a distinct name. Avoids problems when linking with
Rockbox Utility.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29177 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkamsboot/mkamsboot.h')
-rw-r--r-- | rbutil/mkamsboot/mkamsboot.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/rbutil/mkamsboot/mkamsboot.h b/rbutil/mkamsboot/mkamsboot.h index d87a5df4f7..156315e4e4 100644 --- a/rbutil/mkamsboot/mkamsboot.h +++ b/rbutil/mkamsboot/mkamsboot.h @@ -56,10 +56,23 @@ struct md5sums { char *md5; }; -extern const unsigned short hw_revisions[]; -extern const unsigned short fw_revisions[]; -extern const char* model_names[]; -extern const int bootloader_sizes[]; +struct ams_models { + unsigned short hw_revision; + unsigned short fw_revision; + /* Descriptive name of this model */ + const char* model_name; + /* Dualboot functions for this model */ + const unsigned char* bootloader; + /* Size of dualboot functions for this model */ + int bootloader_size; + /* Model name used in the Rockbox header in ".sansa" files - these match the + -add parameter to the "scramble" tool */ + const char* rb_model_name; + /* Model number used to initialise the checksum in the Rockbox header in + ".sansa" files - these are the same as MODEL_NUMBER in config-target.h */ + const int rb_model_num; +}; +extern const struct ams_models ams_identity[]; /* load_rockbox_file() * |