sdmmcvar.h revision 1.15.6.1 1 1.15.6.1 skrll /* $NetBSD: sdmmcvar.h,v 1.15.6.1 2015/04/06 15:18:13 skrll Exp $ */
2 1.1 nonaka /* $OpenBSD: sdmmcvar.h,v 1.13 2009/01/09 10:55:22 jsg Exp $ */
3 1.1 nonaka
4 1.1 nonaka /*
5 1.1 nonaka * Copyright (c) 2006 Uwe Stuehler <uwe (at) openbsd.org>
6 1.1 nonaka *
7 1.1 nonaka * Permission to use, copy, modify, and distribute this software for any
8 1.1 nonaka * purpose with or without fee is hereby granted, provided that the above
9 1.1 nonaka * copyright notice and this permission notice appear in all copies.
10 1.1 nonaka *
11 1.1 nonaka * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 1.1 nonaka * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 1.1 nonaka * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 1.1 nonaka * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 1.1 nonaka * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 1.1 nonaka * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 1.1 nonaka * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 1.1 nonaka */
19 1.1 nonaka
20 1.1 nonaka #ifndef _SDMMCVAR_H_
21 1.1 nonaka #define _SDMMCVAR_H_
22 1.1 nonaka
23 1.12 matt #ifdef _KERNEL_OPT
24 1.12 matt #include "opt_sdmmc.h"
25 1.12 matt #endif
26 1.12 matt
27 1.1 nonaka #include <sys/queue.h>
28 1.1 nonaka #include <sys/mutex.h>
29 1.3 nonaka #include <sys/callout.h>
30 1.1 nonaka
31 1.11 dyoung #include <sys/bus.h>
32 1.1 nonaka
33 1.1 nonaka #include <dev/sdmmc/sdmmcchip.h>
34 1.1 nonaka #include <dev/sdmmc/sdmmcreg.h>
35 1.1 nonaka
36 1.2 nonaka #define SDMMC_SECTOR_SIZE_SB 9
37 1.2 nonaka #define SDMMC_SECTOR_SIZE (1 << SDMMC_SECTOR_SIZE_SB) /* =512 */
38 1.2 nonaka
39 1.1 nonaka struct sdmmc_csd {
40 1.1 nonaka int csdver; /* CSD structure format */
41 1.1 nonaka u_int mmcver; /* MMC version (for CID format) */
42 1.1 nonaka int capacity; /* total number of sectors */
43 1.1 nonaka int read_bl_len; /* block length for reads */
44 1.1 nonaka int write_bl_len; /* block length for writes */
45 1.1 nonaka int r2w_factor;
46 1.1 nonaka int tran_speed; /* transfer speed (kbit/s) */
47 1.8 kiyohara int ccc; /* Card Command Class for SD */
48 1.1 nonaka /* ... */
49 1.1 nonaka };
50 1.1 nonaka
51 1.1 nonaka struct sdmmc_cid {
52 1.1 nonaka int mid; /* manufacturer identification number */
53 1.1 nonaka int oid; /* OEM/product identification number */
54 1.1 nonaka char pnm[8]; /* product name (MMC v1 has the longest) */
55 1.1 nonaka int rev; /* product revision */
56 1.1 nonaka int psn; /* product serial number */
57 1.1 nonaka int mdt; /* manufacturing date */
58 1.1 nonaka };
59 1.1 nonaka
60 1.3 nonaka struct sdmmc_scr {
61 1.3 nonaka int sd_spec;
62 1.3 nonaka int bus_width;
63 1.3 nonaka };
64 1.3 nonaka
65 1.1 nonaka typedef uint32_t sdmmc_response[4];
66 1.1 nonaka
67 1.1 nonaka struct sdmmc_softc;
68 1.1 nonaka
69 1.1 nonaka struct sdmmc_task {
70 1.1 nonaka void (*func)(void *arg);
71 1.1 nonaka void *arg;
72 1.1 nonaka int onqueue;
73 1.1 nonaka struct sdmmc_softc *sc;
74 1.1 nonaka TAILQ_ENTRY(sdmmc_task) next;
75 1.1 nonaka };
76 1.1 nonaka
77 1.1 nonaka #define sdmmc_init_task(xtask, xfunc, xarg) \
78 1.1 nonaka do { \
79 1.1 nonaka (xtask)->func = (xfunc); \
80 1.1 nonaka (xtask)->arg = (xarg); \
81 1.1 nonaka (xtask)->onqueue = 0; \
82 1.1 nonaka (xtask)->sc = NULL; \
83 1.1 nonaka } while (/*CONSTCOND*/0)
84 1.1 nonaka
85 1.1 nonaka #define sdmmc_task_pending(xtask) ((xtask)->onqueue)
86 1.1 nonaka
87 1.1 nonaka struct sdmmc_command {
88 1.1 nonaka struct sdmmc_task c_task; /* task queue entry */
89 1.1 nonaka uint16_t c_opcode; /* SD or MMC command index */
90 1.1 nonaka uint32_t c_arg; /* SD/MMC command argument */
91 1.1 nonaka sdmmc_response c_resp; /* response buffer */
92 1.1 nonaka bus_dmamap_t c_dmamap;
93 1.7 kiyohara int c_dmaseg; /* DMA segment number */
94 1.7 kiyohara int c_dmaoff; /* offset in DMA segment */
95 1.1 nonaka void *c_data; /* buffer to send or read into */
96 1.1 nonaka int c_datalen; /* length of data buffer */
97 1.1 nonaka int c_blklen; /* block length */
98 1.1 nonaka int c_flags; /* see below */
99 1.3 nonaka #define SCF_ITSDONE (1U << 0) /* command is complete */
100 1.3 nonaka #define SCF_RSP_PRESENT (1U << 1)
101 1.3 nonaka #define SCF_RSP_BSY (1U << 2)
102 1.3 nonaka #define SCF_RSP_136 (1U << 3)
103 1.3 nonaka #define SCF_RSP_CRC (1U << 4)
104 1.3 nonaka #define SCF_RSP_IDX (1U << 5)
105 1.3 nonaka #define SCF_CMD_READ (1U << 6) /* read command (data expected) */
106 1.3 nonaka /* non SPI */
107 1.3 nonaka #define SCF_CMD_AC (0U << 8)
108 1.3 nonaka #define SCF_CMD_ADTC (1U << 8)
109 1.3 nonaka #define SCF_CMD_BC (2U << 8)
110 1.3 nonaka #define SCF_CMD_BCR (3U << 8)
111 1.3 nonaka #define SCF_CMD_MASK (3U << 8)
112 1.3 nonaka /* SPI */
113 1.3 nonaka #define SCF_RSP_SPI_S1 (1U << 10)
114 1.3 nonaka #define SCF_RSP_SPI_S2 (1U << 11)
115 1.3 nonaka #define SCF_RSP_SPI_B4 (1U << 12)
116 1.3 nonaka #define SCF_RSP_SPI_BSY (1U << 13)
117 1.1 nonaka /* response types */
118 1.1 nonaka #define SCF_RSP_R0 0 /* none */
119 1.1 nonaka #define SCF_RSP_R1 (SCF_RSP_PRESENT|SCF_RSP_CRC|SCF_RSP_IDX)
120 1.1 nonaka #define SCF_RSP_R1B (SCF_RSP_PRESENT|SCF_RSP_CRC|SCF_RSP_IDX|SCF_RSP_BSY)
121 1.1 nonaka #define SCF_RSP_R2 (SCF_RSP_PRESENT|SCF_RSP_CRC|SCF_RSP_136)
122 1.1 nonaka #define SCF_RSP_R3 (SCF_RSP_PRESENT)
123 1.1 nonaka #define SCF_RSP_R4 (SCF_RSP_PRESENT)
124 1.1 nonaka #define SCF_RSP_R5 (SCF_RSP_PRESENT|SCF_RSP_CRC|SCF_RSP_IDX)
125 1.1 nonaka #define SCF_RSP_R5B (SCF_RSP_PRESENT|SCF_RSP_CRC|SCF_RSP_IDX|SCF_RSP_BSY)
126 1.1 nonaka #define SCF_RSP_R6 (SCF_RSP_PRESENT|SCF_RSP_CRC|SCF_RSP_IDX)
127 1.1 nonaka #define SCF_RSP_R7 (SCF_RSP_PRESENT|SCF_RSP_CRC|SCF_RSP_IDX)
128 1.15 nonaka #define SCF_RSP_MASK (0x1f << 1)
129 1.3 nonaka /* SPI */
130 1.3 nonaka #define SCF_RSP_SPI_R1 (SCF_RSP_SPI_S1)
131 1.3 nonaka #define SCF_RSP_SPI_R1B (SCF_RSP_SPI_S1|SCF_RSP_SPI_BSY)
132 1.3 nonaka #define SCF_RSP_SPI_R2 (SCF_RSP_SPI_S1|SCF_RSP_SPI_S2)
133 1.3 nonaka #define SCF_RSP_SPI_R3 (SCF_RSP_SPI_S1|SCF_RSP_SPI_B4)
134 1.3 nonaka #define SCF_RSP_SPI_R4 (SCF_RSP_SPI_S1|SCF_RSP_SPI_B4)
135 1.3 nonaka #define SCF_RSP_SPI_R5 (SCF_RSP_SPI_S1|SCF_RSP_SPI_S2)
136 1.3 nonaka #define SCF_RSP_SPI_R7 (SCF_RSP_SPI_S1|SCF_RSP_SPI_B4)
137 1.15 nonaka #define SCF_RSP_SPI_MASK (0xf << 10)
138 1.1 nonaka int c_error; /* errno value on completion */
139 1.1 nonaka
140 1.1 nonaka /* Host controller owned fields for data xfer in progress */
141 1.1 nonaka int c_resid; /* remaining I/O */
142 1.1 nonaka u_char *c_buf; /* remaining data */
143 1.1 nonaka };
144 1.1 nonaka
145 1.1 nonaka /*
146 1.1 nonaka * Decoded PC Card 16 based Card Information Structure (CIS),
147 1.1 nonaka * per card (function 0) and per function (1 and greater).
148 1.1 nonaka */
149 1.1 nonaka struct sdmmc_cis {
150 1.1 nonaka uint16_t manufacturer;
151 1.1 nonaka #define SDMMC_VENDOR_INVALID 0xffff
152 1.1 nonaka uint16_t product;
153 1.1 nonaka #define SDMMC_PRODUCT_INVALID 0xffff
154 1.1 nonaka uint8_t function;
155 1.1 nonaka #define SDMMC_FUNCTION_INVALID 0xff
156 1.1 nonaka u_char cis1_major;
157 1.1 nonaka u_char cis1_minor;
158 1.1 nonaka char cis1_info_buf[256];
159 1.1 nonaka char *cis1_info[4];
160 1.1 nonaka };
161 1.1 nonaka
162 1.1 nonaka /*
163 1.1 nonaka * Structure describing either an SD card I/O function or a SD/MMC
164 1.1 nonaka * memory card from a "stack of cards" that responded to CMD2. For a
165 1.1 nonaka * combo card with one I/O function and one memory card, there will be
166 1.1 nonaka * two of these structures allocated. Each card slot has such a list
167 1.1 nonaka * of sdmmc_function structures.
168 1.1 nonaka */
169 1.1 nonaka struct sdmmc_function {
170 1.1 nonaka /* common members */
171 1.1 nonaka struct sdmmc_softc *sc; /* card slot softc */
172 1.1 nonaka uint16_t rca; /* relative card address */
173 1.8 kiyohara int interface; /* SD/MMC:0, SDIO:standard interface */
174 1.6 kiyohara int width; /* bus width */
175 1.1 nonaka int flags;
176 1.1 nonaka #define SFF_ERROR 0x0001 /* function is poo; ignore it */
177 1.1 nonaka #define SFF_SDHC 0x0002 /* SD High Capacity card */
178 1.1 nonaka SIMPLEQ_ENTRY(sdmmc_function) sf_list;
179 1.1 nonaka /* SD card I/O function members */
180 1.1 nonaka int number; /* I/O function number or -1 */
181 1.1 nonaka device_t child; /* function driver */
182 1.1 nonaka struct sdmmc_cis cis; /* decoded CIS */
183 1.1 nonaka /* SD/MMC memory card members */
184 1.1 nonaka struct sdmmc_csd csd; /* decoded CSD value */
185 1.1 nonaka struct sdmmc_cid cid; /* decoded CID value */
186 1.1 nonaka sdmmc_response raw_cid; /* temp. storage for decoding */
187 1.3 nonaka uint32_t raw_scr[2];
188 1.13 jakllsch struct sdmmc_scr scr; /* decoded SCR value */
189 1.8 kiyohara
190 1.7 kiyohara void *bbuf; /* bounce buffer */
191 1.7 kiyohara bus_dmamap_t bbuf_dmap; /* DMA map for bounce buffer */
192 1.15.6.1 skrll bus_dmamap_t sseg_dmap; /* DMA map for single segment */
193 1.1 nonaka };
194 1.1 nonaka
195 1.1 nonaka /*
196 1.1 nonaka * Structure describing a single SD/MMC/SDIO card slot.
197 1.1 nonaka */
198 1.1 nonaka struct sdmmc_softc {
199 1.1 nonaka device_t sc_dev; /* base device */
200 1.1 nonaka #define SDMMCDEVNAME(sc) (device_xname(sc->sc_dev))
201 1.1 nonaka
202 1.1 nonaka sdmmc_chipset_tag_t sc_sct; /* host controller chipset tag */
203 1.3 nonaka sdmmc_spi_chipset_tag_t sc_spi_sct;
204 1.1 nonaka sdmmc_chipset_handle_t sc_sch; /* host controller chipset handle */
205 1.1 nonaka bus_dma_tag_t sc_dmat;
206 1.1 nonaka bus_dmamap_t sc_dmap;
207 1.14 jakllsch #define SDMMC_MAXNSEGS ((MAXPHYS / PAGE_SIZE) + 1)
208 1.1 nonaka
209 1.1 nonaka struct kmutex sc_mtx; /* lock around host controller */
210 1.1 nonaka int sc_dying; /* bus driver is shutting down */
211 1.1 nonaka
212 1.1 nonaka uint32_t sc_flags;
213 1.1 nonaka #define SMF_INITED 0x0001
214 1.1 nonaka #define SMF_SD_MODE 0x0002 /* host in SD mode (MMC otherwise) */
215 1.1 nonaka #define SMF_IO_MODE 0x0004 /* host in I/O mode (SD mode only) */
216 1.1 nonaka #define SMF_MEM_MODE 0x0008 /* host in memory mode (SD or MMC) */
217 1.1 nonaka #define SMF_CARD_PRESENT 0x4000 /* card presence noticed */
218 1.1 nonaka #define SMF_CARD_ATTACHED 0x8000 /* card driver(s) attached */
219 1.1 nonaka
220 1.1 nonaka uint32_t sc_caps; /* host capability */
221 1.5 kiyohara #define SMC_CAPS_AUTO_STOP 0x0001 /* send CMD12 automagically by host */
222 1.1 nonaka #define SMC_CAPS_4BIT_MODE 0x0002 /* 4-bits data bus width */
223 1.1 nonaka #define SMC_CAPS_DMA 0x0004 /* DMA transfer */
224 1.3 nonaka #define SMC_CAPS_SPI_MODE 0x0008 /* SPI mode */
225 1.3 nonaka #define SMC_CAPS_POLL_CARD_DET 0x0010 /* Polling card detect */
226 1.3 nonaka #define SMC_CAPS_SINGLE_ONLY 0x0020 /* only single read/write */
227 1.4 kiyohara #define SMC_CAPS_8BIT_MODE 0x0040 /* 8-bits data bus width */
228 1.7 kiyohara #define SMC_CAPS_MULTI_SEG_DMA 0x0080 /* multiple segment DMA transfer */
229 1.9 nonaka #define SMC_CAPS_SD_HIGHSPEED 0x0100 /* SD high-speed timing */
230 1.10 nonaka #define SMC_CAPS_MMC_HIGHSPEED 0x0200 /* MMC high-speed timing */
231 1.1 nonaka
232 1.1 nonaka /* function */
233 1.1 nonaka int sc_function_count; /* number of I/O functions (SDIO) */
234 1.1 nonaka struct sdmmc_function *sc_card; /* selected card */
235 1.1 nonaka struct sdmmc_function *sc_fn0; /* function 0, the card itself */
236 1.1 nonaka SIMPLEQ_HEAD(, sdmmc_function) sf_head; /* list of card functions */
237 1.1 nonaka
238 1.1 nonaka /* task queue */
239 1.1 nonaka struct lwp *sc_tskq_lwp; /* asynchronous tasks */
240 1.1 nonaka TAILQ_HEAD(, sdmmc_task) sc_tskq; /* task thread work queue */
241 1.1 nonaka struct kmutex sc_tskq_mtx;
242 1.1 nonaka struct kcondvar sc_tskq_cv;
243 1.1 nonaka
244 1.1 nonaka /* discover task */
245 1.1 nonaka struct sdmmc_task sc_discover_task; /* card attach/detach task */
246 1.1 nonaka struct kmutex sc_discover_task_mtx;
247 1.1 nonaka
248 1.1 nonaka /* interrupt task */
249 1.1 nonaka struct sdmmc_task sc_intr_task; /* card interrupt task */
250 1.1 nonaka struct kmutex sc_intr_task_mtx;
251 1.1 nonaka TAILQ_HEAD(, sdmmc_intr_handler) sc_intrq; /* interrupt handlers */
252 1.1 nonaka
253 1.1 nonaka u_int sc_clkmin; /* host min bus clock */
254 1.1 nonaka u_int sc_clkmax; /* host max bus clock */
255 1.1 nonaka u_int sc_busclk; /* host bus clock */
256 1.1 nonaka int sc_buswidth; /* host bus width */
257 1.3 nonaka
258 1.3 nonaka callout_t sc_card_detect_ch; /* polling card insert/remove */
259 1.1 nonaka };
260 1.1 nonaka
261 1.1 nonaka /*
262 1.1 nonaka * Attach devices at the sdmmc bus.
263 1.1 nonaka */
264 1.1 nonaka struct sdmmc_attach_args {
265 1.1 nonaka uint16_t manufacturer;
266 1.1 nonaka uint16_t product;
267 1.8 kiyohara int interface;
268 1.1 nonaka struct sdmmc_function *sf;
269 1.1 nonaka };
270 1.1 nonaka
271 1.1 nonaka struct sdmmc_product {
272 1.1 nonaka uint16_t pp_vendor;
273 1.1 nonaka uint16_t pp_product;
274 1.1 nonaka const char *pp_cisinfo[4];
275 1.1 nonaka };
276 1.1 nonaka
277 1.1 nonaka #ifndef IPL_SDMMC
278 1.1 nonaka #define IPL_SDMMC IPL_BIO
279 1.1 nonaka #endif
280 1.1 nonaka
281 1.1 nonaka #ifndef splsdmmc
282 1.1 nonaka #define splsdmmc() splbio()
283 1.1 nonaka #endif
284 1.1 nonaka
285 1.1 nonaka #define SDMMC_LOCK(sc)
286 1.1 nonaka #define SDMMC_UNLOCK(sc)
287 1.1 nonaka
288 1.1 nonaka #ifdef SDMMC_DEBUG
289 1.1 nonaka extern int sdmmcdebug;
290 1.1 nonaka #endif
291 1.1 nonaka
292 1.1 nonaka void sdmmc_add_task(struct sdmmc_softc *, struct sdmmc_task *);
293 1.1 nonaka void sdmmc_del_task(struct sdmmc_task *);
294 1.1 nonaka
295 1.1 nonaka struct sdmmc_function *sdmmc_function_alloc(struct sdmmc_softc *);
296 1.1 nonaka void sdmmc_function_free(struct sdmmc_function *);
297 1.1 nonaka int sdmmc_set_bus_power(struct sdmmc_softc *, uint32_t, uint32_t);
298 1.1 nonaka int sdmmc_mmc_command(struct sdmmc_softc *, struct sdmmc_command *);
299 1.3 nonaka int sdmmc_app_command(struct sdmmc_softc *, struct sdmmc_function *,
300 1.3 nonaka struct sdmmc_command *);
301 1.1 nonaka void sdmmc_go_idle_state(struct sdmmc_softc *);
302 1.1 nonaka int sdmmc_select_card(struct sdmmc_softc *, struct sdmmc_function *);
303 1.3 nonaka int sdmmc_set_relative_addr(struct sdmmc_softc *, struct sdmmc_function *);
304 1.1 nonaka
305 1.1 nonaka void sdmmc_intr_enable(struct sdmmc_function *);
306 1.1 nonaka void sdmmc_intr_disable(struct sdmmc_function *);
307 1.1 nonaka void *sdmmc_intr_establish(device_t, int (*)(void *), void *, const char *);
308 1.1 nonaka void sdmmc_intr_disestablish(void *);
309 1.1 nonaka void sdmmc_intr_task(void *);
310 1.1 nonaka
311 1.1 nonaka int sdmmc_decode_csd(struct sdmmc_softc *, sdmmc_response,
312 1.1 nonaka struct sdmmc_function *);
313 1.1 nonaka int sdmmc_decode_cid(struct sdmmc_softc *, sdmmc_response,
314 1.1 nonaka struct sdmmc_function *);
315 1.1 nonaka void sdmmc_print_cid(struct sdmmc_cid *);
316 1.3 nonaka #ifdef SDMMC_DUMP_CSD
317 1.3 nonaka void sdmmc_print_csd(sdmmc_response, struct sdmmc_csd *);
318 1.3 nonaka #endif
319 1.3 nonaka void sdmmc_dump_data(const char *, void *, size_t);
320 1.1 nonaka
321 1.1 nonaka int sdmmc_io_enable(struct sdmmc_softc *);
322 1.1 nonaka void sdmmc_io_scan(struct sdmmc_softc *);
323 1.1 nonaka int sdmmc_io_init(struct sdmmc_softc *, struct sdmmc_function *);
324 1.1 nonaka uint8_t sdmmc_io_read_1(struct sdmmc_function *, int);
325 1.1 nonaka uint16_t sdmmc_io_read_2(struct sdmmc_function *, int);
326 1.1 nonaka uint32_t sdmmc_io_read_4(struct sdmmc_function *, int);
327 1.1 nonaka int sdmmc_io_read_multi_1(struct sdmmc_function *, int, u_char *, int);
328 1.1 nonaka void sdmmc_io_write_1(struct sdmmc_function *, int, uint8_t);
329 1.1 nonaka void sdmmc_io_write_2(struct sdmmc_function *, int, uint16_t);
330 1.1 nonaka void sdmmc_io_write_4(struct sdmmc_function *, int, uint32_t);
331 1.1 nonaka int sdmmc_io_write_multi_1(struct sdmmc_function *, int, u_char *, int);
332 1.1 nonaka int sdmmc_io_function_enable(struct sdmmc_function *);
333 1.1 nonaka void sdmmc_io_function_disable(struct sdmmc_function *);
334 1.1 nonaka
335 1.1 nonaka int sdmmc_read_cis(struct sdmmc_function *, struct sdmmc_cis *);
336 1.1 nonaka void sdmmc_print_cis(struct sdmmc_function *);
337 1.1 nonaka void sdmmc_check_cis_quirks(struct sdmmc_function *);
338 1.1 nonaka
339 1.1 nonaka int sdmmc_mem_enable(struct sdmmc_softc *);
340 1.1 nonaka void sdmmc_mem_scan(struct sdmmc_softc *);
341 1.1 nonaka int sdmmc_mem_init(struct sdmmc_softc *, struct sdmmc_function *);
342 1.3 nonaka int sdmmc_mem_send_op_cond(struct sdmmc_softc *, uint32_t, uint32_t *);
343 1.3 nonaka int sdmmc_mem_send_if_cond(struct sdmmc_softc *, uint32_t, uint32_t *);
344 1.15 nonaka int sdmmc_mem_set_blocklen(struct sdmmc_softc *, struct sdmmc_function *,
345 1.15 nonaka int);
346 1.1 nonaka int sdmmc_mem_read_block(struct sdmmc_function *, uint32_t, u_char *,
347 1.1 nonaka size_t);
348 1.1 nonaka int sdmmc_mem_write_block(struct sdmmc_function *, uint32_t, u_char *,
349 1.1 nonaka size_t);
350 1.1 nonaka
351 1.1 nonaka #endif /* _SDMMCVAR_H_ */
352