diff options
Diffstat (limited to 'firmware/export/ata_mmc.h')
-rw-r--r-- | firmware/export/ata_mmc.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/firmware/export/ata_mmc.h b/firmware/export/ata_mmc.h new file mode 100644 index 0000000000..afc0dc24af --- /dev/null +++ b/firmware/export/ata_mmc.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2004 by Jens Arnold | ||
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_MMC_H__ | ||
20 | #define __ATA_MMC_H__ | ||
21 | |||
22 | typedef struct | ||
23 | { | ||
24 | bool initialized; | ||
25 | unsigned char bitrate_register; | ||
26 | unsigned int read_timeout; /* n * 8 clock cycles */ | ||
27 | unsigned int write_timeout; /* n * 8 clock cycles */ | ||
28 | |||
29 | unsigned long ocr; /* OCR register */ | ||
30 | unsigned long csd[4]; /* CSD register, 16 bytes */ | ||
31 | unsigned long cid[4]; /* CID register, 16 bytes */ | ||
32 | unsigned int speed; /* bit/s */ | ||
33 | unsigned int nsac; /* clock cycles */ | ||
34 | unsigned int tsac; /* n * 0.1 ns */ | ||
35 | unsigned int r2w_factor; | ||
36 | } tCardInfo; | ||
37 | |||
38 | unsigned long mmc_extract_bits(const unsigned long *p, unsigned int start, | ||
39 | unsigned int size); | ||
40 | tCardInfo *mmc_card_info(int card_no); | ||
41 | |||
42 | #endif | ||