add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / eeprom_settings.h
blobaade86bc0dd610189fc5fda3afd0b1a2b376b54b
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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_
23 #include <stdbool.h>
24 #include "inttypes.h"
26 #define EEPROM_SETTINGS_VERSION 0x24c01002
27 #define EEPROM_SETTINGS_BL_MINVER 7
29 enum boot_methods {
30 BOOT_DISK = 0,
31 BOOT_RAM,
32 BOOT_ROM,
33 BOOT_RECOVERY,
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);
55 #endif