Include the Xobox chapter in the Recorder/Ondio manuals (adding a screenshot and...
[Rockbox.git] / rbutil / irivertools.h
blob9718f92d003d709bd148af9f38a5a98b3424e041
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * Module: rbutil
9 * File: irivertools.h
11 * Copyright (C) 2007 Dominik Wenger
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.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
22 #ifndef IRIVERTOOLS_H_INCLUDED
23 #define IRIVERTOOLS_H_INCLUDED
25 #include "rbutil.h"
26 #include "installlog.h"
28 #define ESTF_SIZE 32
30 struct sumpairs {
31 char *unpatched;
32 char *patched;
35 /* precalculated checksums for H110/H115 */
36 static struct sumpairs h100pairs[] = {
37 #include "h100sums.h"
40 /* precalculated checksums for H120/H140 */
41 static struct sumpairs h120pairs[] = {
42 #include "h120sums.h"
45 /* precalculated checksums for H320/H340 */
46 static struct sumpairs h300pairs[] = {
47 #include "h300sums.h"
51 enum striptype
53 STRIP_NONE,
54 STRIP_HEADER_CHECKSUM,
55 STRIP_HEADER_CHECKSUM_ESTF
58 /* protos for iriver.c */
60 int intable(char *md5, struct sumpairs *table, int len);
62 bool PatchFirmware(wxString firmware,wxString bootloader,int series, int table_entry);
65 #endif // IRIVERTOOLS_H_INCLUDED