summaryrefslogtreecommitdiff
path: root/firmware/export/eeprom_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/eeprom_settings.h')
-rw-r--r--firmware/export/eeprom_settings.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/firmware/export/eeprom_settings.h b/firmware/export/eeprom_settings.h
new file mode 100644
index 0000000000..a3515bd69e
--- /dev/null
+++ b/firmware/export/eeprom_settings.h
@@ -0,0 +1,48 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 by Miika Pekkarinen
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef _EEPROM_SETTINGS_H_
21#define _EEPROM_SETTINGS_H_
22
23#include <stdbool.h>
24#include "inttypes.h"
25
26#define EEPROM_SETTINGS_VERSION 0x24c01001
27#define EEPROM_SETTINGS_BL_MINVER 7
28
29struct eeprom_settings
30{
31 long version; /* Settings version number */
32 bool initialized; /* Is eeprom_settings ready to be used */
33 bool disk_clean; /* Is disk intact from last reboot */
34 bool boot_disk; /* Load firmware from disk (default=FLASH) */
35 uint8_t bl_version; /* Installed bootloader version */
36
37 /* This must be the last entry */
38 uint32_t checksum; /* Checksum of this structure */
39};
40
41extern struct eeprom_settings firmware_settings;
42
43bool detect_flashed_rockbox(void);
44bool eeprom_settings_init(void);
45bool eeprom_settings_store(void);
46
47#endif
48