summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ata-sd-target.h
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2008-05-13 01:53:19 +0000
committerMark Arigo <markarigo@gmail.com>2008-05-13 01:53:19 +0000
commit76567482215b9d786ba329072b715729ea506b7e (patch)
tree18632252c5d0c0edd71cb76ad6d39dc26c33861f /firmware/target/arm/ata-sd-target.h
parent1ab5caff29de51c09cd1c77de06610e199739967 (diff)
downloadrockbox-76567482215b9d786ba329072b715729ea506b7e.tar.gz
rockbox-76567482215b9d786ba329072b715729ea506b7e.zip
Preparing for the Philips SA9200 part 1. Move the Sansa ADC & ATA drivers up one level.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17487 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ata-sd-target.h')
-rw-r--r--firmware/target/arm/ata-sd-target.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/firmware/target/arm/ata-sd-target.h b/firmware/target/arm/ata-sd-target.h
new file mode 100644
index 0000000000..dce2ca9030
--- /dev/null
+++ b/firmware/target/arm/ata-sd-target.h
@@ -0,0 +1,45 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2007 by Antonius Hellmann
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#ifndef ATA_SD_TARGET_H
20#define ATA_SD_TARGET_H
21
22#include "inttypes.h"
23
24typedef struct
25{
26 int initialized;
27
28 unsigned int ocr; /* OCR register */
29 unsigned int csd[4]; /* CSD register */
30 unsigned int cid[4]; /* CID register */
31 unsigned int rca;
32
33 uint64_t capacity; /* size in bytes */
34 unsigned long numblocks; /* size in flash blocks */
35 unsigned int block_size; /* block size in bytes */
36 unsigned int max_read_bl_len;/* max read data block length */
37 unsigned int block_exp; /* block size exponent */
38 unsigned char current_bank; /* The bank that we are working with */
39} tSDCardInfo;
40
41tCardInfo *card_get_info_target(int card_no);
42bool card_detect_target(void);
43void card_enable_monitoring_target(bool on);
44
45#endif