Use browse_folder() for browsing eq presets and languages.
[kugel-rb.git] / firmware / export / eeprom_settings.h
blob00039fa1544f9cdb67eab147a97fe3fb37485523
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 by Miika Pekkarinen
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _EEPROM_SETTINGS_H_
23 #define _EEPROM_SETTINGS_H_
25 #include <stdbool.h>
26 #include "inttypes.h"
28 #define EEPROM_SETTINGS_VERSION 0x24c01002
29 #define EEPROM_SETTINGS_BL_MINVER 7
31 enum boot_methods {
32 BOOT_DISK = 0,
33 BOOT_RAM,
34 BOOT_ROM,
35 BOOT_RECOVERY,
38 struct eeprom_settings
40 long version; /* Settings version number */
41 bool initialized; /* Is eeprom_settings ready to be used */
42 bool disk_clean; /* Is disk intact from last reboot */
43 uint8_t bootmethod; /* The default boot method. */
44 uint8_t bl_version; /* Installed bootloader version */
46 long reserved; /* A few reserved bits for the future. */
48 /* This must be the last entry */
49 uint32_t checksum; /* Checksum of this structure */
52 extern struct eeprom_settings firmware_settings;
54 bool eeprom_settings_init(void);
55 bool eeprom_settings_store(void);
57 #endif