When setting a cache path also enable the cache implicitly.
[Rockbox.git] / firmware / export / disk.h
blob1f07007c2bbf77dfa8b617a5266414db7486dea3
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Björn Stenberg
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 ****************************************************************************/
19 #ifndef _DISK_H_
20 #define _DISK_H_
22 #include "ata.h" /* for volume definitions */
24 struct partinfo {
25 unsigned long start; /* first sector (LBA) */
26 unsigned long size; /* number of sectors */
27 unsigned char type;
30 #define PARTITION_TYPE_FAT32 0x0b
31 #define PARTITION_TYPE_FAT32_LBA 0x0c
32 #define PARTITION_TYPE_FAT16 0x06
33 #define PARTITION_TYPE_OS2_HIDDEN_C_DRIVE 0x84
35 /* returns a pointer to an array of 8 partinfo structs */
36 struct partinfo* disk_init(IF_MV_NONVOID(int volume));
37 struct partinfo* disk_partinfo(int partition);
38 int disk_mount_all(void); /* returns the # of successful mounts */
39 int disk_mount(int drive);
40 int disk_unmount(int drive);
42 /* The number of 512-byte sectors in a "logical" sector. Needed for ipod 5.5G */
43 #ifdef MAX_LOG_SECTOR_SIZE
44 extern int disk_sector_multiplier;
45 #endif
47 #endif