summaryrefslogtreecommitdiff
path: root/firmware/export/mmc.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:25:04 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-11-01 16:25:04 +0000
commitad9db4de3dee9db8f08b5a28f731b066c35e41e6 (patch)
tree266209a72c75a7436b253719408d092477396354 /firmware/export/mmc.h
parent2f8a0081c64534da23fc0fa9cc685eb7454fd9c9 (diff)
downloadrockbox-ad9db4de3dee9db8f08b5a28f731b066c35e41e6.tar.gz
rockbox-ad9db4de3dee9db8f08b5a28f731b066c35e41e6.zip
Now also commit added files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18961 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/mmc.h')
-rw-r--r--firmware/export/mmc.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/firmware/export/mmc.h b/firmware/export/mmc.h
new file mode 100644
index 0000000000..2e7fb2441d
--- /dev/null
+++ b/firmware/export/mmc.h
@@ -0,0 +1,55 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Alan Korr
11 * Copyright (C) 2008 by Frank Gevaerts
12 *
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 ****************************************************************************/
22#ifndef __MMC_H__
23#define __MMC_H__
24
25#include <stdbool.h>
26#include "mv.h" /* for HAVE_MULTIVOLUME or not */
27
28struct storage_info;
29
30void mmc_enable(bool on);
31void mmc_spindown(int seconds);
32void mmc_sleep(void);
33void mmc_sleepnow(void);
34bool mmc_disk_is_active(void);
35int mmc_hard_reset(void);
36int mmc_soft_reset(void);
37int mmc_init(void);
38void mmc_close(void);
39int mmc_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf);
40int mmc_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const void* buf);
41void mmc_spin(void);
42
43#if (CONFIG_LED == LED_REAL)
44void mmc_set_led_enabled(bool enabled);
45#endif
46
47void mmc_get_info(IF_MV2(int drive,) struct storage_info *info);
48#ifdef HAVE_HOTSWAP
49bool mmc_removable(IF_MV_NONVOID(int drive));
50bool mmc_present(IF_MV_NONVOID(int drive));
51#endif
52
53long mmc_last_disk_activity(void);
54
55#endif