1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
8 * $Id: main.c 11997 2007-01-13 09:08:18Z miipekk $
10 * Copyright (C) 2005 by Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
22 #define EFILE_NOT_FOUND -1
23 #define EREAD_CHKSUM_FAILED -2
24 #define EREAD_MODEL_FAILED -3
25 #define EREAD_IMAGE_FAILED -4
26 #define EBAD_CHKSUM -5
27 #define EFILE_TOO_BIG -6
29 /* Functions common to all bootloaders */
30 void reset_screen(void);
31 void printf(const char *format
, ...);
32 char *strerror(int error
);
33 int load_firmware(unsigned char* buf
, char* firmware
, int buffer_size
);
34 int load_raw_firmware(unsigned char* buf
, char* firmware
, int buffer_size
);