1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 by Miika Pekkarinen
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 ****************************************************************************/
20 #ifndef _EEPROM_SETTINGS_H_
21 #define _EEPROM_SETTINGS_H_
26 #define EEPROM_SETTINGS_VERSION 0x24c01002
27 #define EEPROM_SETTINGS_BL_MINVER 7
36 struct eeprom_settings
38 long version
; /* Settings version number */
39 bool initialized
; /* Is eeprom_settings ready to be used */
40 bool disk_clean
; /* Is disk intact from last reboot */
41 uint8_t bootmethod
; /* The default boot method. */
42 uint8_t bl_version
; /* Installed bootloader version */
44 long reserved
; /* A few reserved bits for the future. */
46 /* This must be the last entry */
47 uint32_t checksum
; /* Checksum of this structure */
50 extern struct eeprom_settings firmware_settings
;
52 bool eeprom_settings_init(void);
53 bool eeprom_settings_store(void);