1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2019 Realtek Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of version 2 of the GNU General Public License as 7 * published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 *****************************************************************************/ 15 #ifndef __SDIO_OPS_LINUX_H__ 16 #define __SDIO_OPS_LINUX_H__ 17 18 #define SDIO_ERR_VAL8 0xFF 19 #define SDIO_ERR_VAL16 0xFFFF 20 #define SDIO_ERR_VAL32 0xFFFFFFFF 21 22 23 bool rtw_is_sdio30(struct dvobj_priv *d); 24 u32 rtw_sdio_get_clock(struct dvobj_priv *d); 25 26 27 s32 _sd_read(struct dvobj_priv *d, u32 addr, u32 cnt, void *pdata); 28 s32 sd_read(struct dvobj_priv *d, u32 addr, u32 cnt, void *pdata); 29 s32 _sd_write(struct dvobj_priv *d, u32 addr, u32 cnt, void *pdata); 30 s32 sd_write(struct dvobj_priv *d, u32 addr, u32 cnt, void *pdata); 31 32 void rtw_sdio_set_irq_thd(struct dvobj_priv *d, _thread_hdl_ thd_hdl); 33 int __must_check rtw_sdio_raw_read(struct dvobj_priv *d, unsigned int addr, 34 void *buf, size_t len, bool fixed); 35 int __must_check rtw_sdio_raw_write(struct dvobj_priv *d, unsigned int addr, 36 void *buf, size_t len, bool fixed); 37 38 #endif /* __SDIO_OPS_LINUX_H__ */ 39 40