1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21#ifndef __ASM_ARCH_MMC_H_
22#define __ASM_ARCH_MMC_H_
23
24#ifndef __ASSEMBLY__
25struct s5p_mmc {
26 unsigned int sysad;
27 unsigned short blksize;
28 unsigned short blkcnt;
29 unsigned int argument;
30 unsigned short trnmod;
31 unsigned short cmdreg;
32 unsigned int rspreg0;
33 unsigned int rspreg1;
34 unsigned int rspreg2;
35 unsigned int rspreg3;
36 unsigned int bdata;
37 unsigned int prnsts;
38 unsigned char hostctl;
39 unsigned char pwrcon;
40 unsigned char blkgap;
41 unsigned char wakcon;
42 unsigned short clkcon;
43 unsigned char timeoutcon;
44 unsigned char swrst;
45 unsigned int norintsts;
46 unsigned int norintstsen;
47 unsigned int norintsigen;
48 unsigned short acmd12errsts;
49 unsigned char res1[2];
50 unsigned int capareg;
51 unsigned char res2[4];
52 unsigned int maxcurr;
53 unsigned char res3[0x34];
54 unsigned int control2;
55 unsigned int control3;
56 unsigned char res4[4];
57 unsigned int control4;
58 unsigned char res5[0x6e];
59 unsigned short hcver;
60 unsigned char res6[0xFFF00];
61};
62
63struct mmc_host {
64 struct s5p_mmc *reg;
65 unsigned int version;
66 unsigned int clock;
67};
68
69int s5p_mmc_init(int dev_index, int bus_width);
70
71#endif
72#endif
73