1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
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 ****************************************************************************/
22 #include "ata.h" /* for volume definitions */
25 unsigned long start
; /* first sector (LBA) */
26 unsigned long size
; /* number of sectors */
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
);