add global proxy / cache settings to httpget class. This removes the need of passing...
[Rockbox.git] / firmware / export / eeprom_24cxx.h
blobc52dd830ef81f3d43836c96fc60e1e089d9033b7
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_24CXX_H
21 #define _EEPROM_24CXX_H
23 #ifdef IRIVER_H300_SERIES
24 #define EEPROM_ADDR 0xA2
25 #define EEPROM_SIZE 256
26 #else
27 #define EEPROM_ADDR 0xA0
28 #define EEPROM_SIZE 128
29 #endif
31 void eeprom_24cxx_init(void);
32 int eeprom_24cxx_read_byte(unsigned int address, char *c);
33 int eeprom_24cxx_read(unsigned char address, void *dest, int length);
34 int eeprom_24cxx_write(unsigned char address, const void *src, int length);
36 #endif