Lines Matching defs:sdmmc_softc
114 struct sdmmc_softc;
118 struct sdmmc_softc *sc;
123 struct sdmmc_softc {
146 static struct sdmmc_softc sdmmc_softc;
154 static int sdmmc_getdisklabel(struct sdmmc_softc *sc);
156 static int sdmmc_enable(struct sdmmc_softc*);
158 static int sdmmc_mem_send_if_cond(struct sdmmc_softc*, uint32_t, uint32_t*);
159 static int sdmmc_mmc_command(struct sdmmc_softc*, struct sdmmc_command*);
160 static void sdmmc_go_idle_state(struct sdmmc_softc*);
161 static int sdmmc_mem_send_op_cond(struct sdmmc_softc*, uint32_t, uint32_t *);
162 static int sdmmc_set_bus_power(struct sdmmc_softc*, uint32_t, uint32_t);
163 static int sdmmc_app_command(struct sdmmc_softc*, uint16_t,
165 static int sdmmc_mmc_command(struct sdmmc_softc*, struct sdmmc_command*);
166 static int sdmmc_scan(struct sdmmc_softc*);
167 static void sdmmc_mem_scan(struct sdmmc_softc*);
168 static int sdmmc_set_relative_addr(struct sdmmc_softc*);
169 static int sdmmc_mem_send_cid(struct sdmmc_softc*, sdmmc_response*);
171 static int sdmmc_mem_send_csd(struct sdmmc_softc*, sdmmc_response*);
172 static int sdmmc_decode_csd(struct sdmmc_softc*, sdmmc_response);
173 static int sdmmc_decode_cid(struct sdmmc_softc*, sdmmc_response);
175 static int sdmmc_mem_read_block(struct sdmmc_softc*, uint32_t, u_char*, size_t);
176 static int sdmmc_select_card(struct sdmmc_softc*);
177 static int sdmmc_mem_set_blocklen(struct sdmmc_softc*);
179 static int sdmmc_mem_send_scr(struct sdmmc_softc*, uint32_t[2]);
180 static int sdmmc_mem_decode_scr(struct sdmmc_softc*);
181 static int sdmmc_set_bus_width(struct sdmmc_softc*, int);
182 static int sdmmc_mem_sd_switch(struct sdmmc_softc *, int, int, int, void*);
187 static void sdmmc_dump_command(struct sdmmc_softc*, struct sdmmc_command*);
206 of->f_devdata = (void*)&sdmmc_softc.partitions[part];
246 sdmmc_getdisklabel(struct sdmmc_softc *sc)
359 struct sdmmc_softc *sc = &sdmmc_softc;
472 sdmmc_enable(struct sdmmc_softc *sc)
565 sdmmc_mem_send_if_cond(struct sdmmc_softc *sc, uint32_t ocr, uint32_t *ocrp)
584 sdmmc_go_idle_state(struct sdmmc_softc *sc)
595 sdmmc_mem_send_op_cond(struct sdmmc_softc *sc, uint32_t ocr, uint32_t *ocrp)
648 sdmmc_set_bus_power(struct sdmmc_softc *sc, uint32_t host_ocr,
671 sdmmc_app_command(struct sdmmc_softc *sc, uint16_t rca,
702 sdmmc_dump_command(struct sdmmc_softc *sc, struct sdmmc_command *cmd)
726 sdmmc_mmc_command(struct sdmmc_softc *sc, struct sdmmc_command *cmd)
762 sdmmc_scan(struct sdmmc_softc *sc)
786 sdmmc_mem_scan(struct sdmmc_softc *sc)
883 sdmmc_set_relative_addr(struct sdmmc_softc *sc)
913 sdmmc_mem_send_cid(struct sdmmc_softc *sc, sdmmc_response *resp)
992 sdmmc_mem_send_csd(struct sdmmc_softc *sc, sdmmc_response *resp)
1013 sdmmc_decode_csd(struct sdmmc_softc *sc, sdmmc_response resp)
1098 sdmmc_decode_cid(struct sdmmc_softc *sc, sdmmc_response resp)
1146 sdmmc_mem_read_block(struct sdmmc_softc *sc, uint32_t blkno,
1198 sdmmc_select_card(struct sdmmc_softc *sc)
1230 sdmmc_mem_set_blocklen(struct sdmmc_softc *sc)
1251 sdmmc_mem_send_scr(struct sdmmc_softc *sc, uint32_t scr[2])
1290 sdmmc_mem_decode_scr(struct sdmmc_softc *sc)
1324 sdmmc_set_bus_width(struct sdmmc_softc *sc, int width)
1357 sdmmc_mem_sd_switch(struct sdmmc_softc *sc, int mode, int group,