summaryrefslogtreecommitdiff
path: root/rbutil/irivertools.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2007-02-21 20:27:14 +0000
committerDominik Wenger <domonoky@googlemail.com>2007-02-21 20:27:14 +0000
commite863d595b50867c550d53cd9d92032fcbb82ef3c (patch)
tree2f21dc466248a72c897305fc6c6f182eb692ca2c /rbutil/irivertools.h
parenta5e0380d9045c3a075ad633fef981f4a4ae82f14 (diff)
downloadrockbox-e863d595b50867c550d53cd9d92032fcbb82ef3c.tar.gz
rockbox-e863d595b50867c550d53cd9d92032fcbb82ef3c.zip
Implementation of Bootloader installation/uninstallation for all Targets in rbUtil. Needs testing. FS#6643
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12439 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/irivertools.h')
-rwxr-xr-xrbutil/irivertools.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/rbutil/irivertools.h b/rbutil/irivertools.h
new file mode 100755
index 0000000000..deae3f4006
--- /dev/null
+++ b/rbutil/irivertools.h
@@ -0,0 +1,65 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * Module: rbutil
9 * File: irivertools.h
10 *
11 * Copyright (C) 2007 Dominik Wenger
12 *
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
15 *
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
18 *
19 ****************************************************************************/
20
21
22#ifndef IRIVERTOOLS_H_INCLUDED
23#define IRIVERTOOLS_H_INCLUDED
24
25#include "rbutil.h"
26#include "installlog.h"
27
28#define ESTF_SIZE 32
29
30struct sumpairs {
31 char *unpatched;
32 char *patched;
33};
34
35/* precalculated checksums for H110/H115 */
36static struct sumpairs h100pairs[] = {
37#include "h100sums.h"
38};
39
40/* precalculated checksums for H120/H140 */
41static struct sumpairs h120pairs[] = {
42#include "h120sums.h"
43};
44
45/* precalculated checksums for H320/H340 */
46static struct sumpairs h300pairs[] = {
47#include "h300sums.h"
48};
49
50
51enum striptype
52{
53 STRIP_NONE,
54 STRIP_HEADER_CHECKSUM,
55 STRIP_HEADER_CHECKSUM_ESTF
56};
57
58/* protos for iriver.c */
59
60int intable(wxString md5, struct sumpairs *table, int len);
61
62bool PatchFirmware(wxString firmware,wxString bootloader,int series, int table_entry);
63
64
65#endif // IRIVERTOOLS_H_INCLUDED