1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 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 0xEA 19 #define SDIO_ERR_VAL16 0xEAEA 20 #define SDIO_ERR_VAL32 0xEAEAEAEA 21 22 u8 sd_f0_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 23 24 s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 25 s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 26 s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 27 s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata); 28 29 u8 sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 30 u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err); 31 s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 32 s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 33 void sd_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err); 34 void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err); 35 s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 36 s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata); 37 38 39 void rtw_sdio_set_irq_thd(struct dvobj_priv *dvobj, void *thd_hdl); 40 #endif 41