// SPDX-License-Identifier: GPL-2.0 /****************************************************************************** * * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. * *******************************************************************************/ #include <drv_types.h> #include <rtw_debug.h> static bool rtw_sdio_claim_host_needed(struct sdio_func *func) { … } inline void rtw_sdio_set_irq_thd(struct dvobj_priv *dvobj, void *thd_hdl) { … } /* * Return: *0 Success *others Fail */ s32 _sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) { … } /* * Return: *0 Success *others Fail */ s32 sd_cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) { … } /* * Return: *0 Success *others Fail */ s32 _sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) { … } /* * Return: *0 Success *others Fail */ s32 sd_cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pdata) { … } u8 sd_read8(struct intf_hdl *pintfhdl, u32 addr, s32 *err) { … } u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err) { … } void sd_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err) { … } void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err) { … } /* * Use CMD53 to read data from SDIO device. * This function MUST be called after sdio_claim_host() or * in SDIO ISR(host had been claimed). * * Parameters: *psdio pointer of SDIO_DATA *addr address to read *cnt amount to read *pdata pointer to put data, this should be a "DMA:able scratch buffer"! * * Return: *0 Success *others Fail */ s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) { … } /* * Use CMD53 to read data from SDIO device. * * Parameters: *psdio pointer of SDIO_DATA *addr address to read *cnt amount to read *pdata pointer to put data, this should be a "DMA:able scratch buffer"! * * Return: *0 Success *others Fail */ s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) { … } /* * Use CMD53 to write data to SDIO device. * This function MUST be called after sdio_claim_host() or * in SDIO ISR(host had been claimed). * * Parameters: *psdio pointer of SDIO_DATA *addr address to write *cnt amount to write *pdata data pointer, this should be a "DMA:able scratch buffer"! * * Return: *0 Success *others Fail */ s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) { … } /* * Use CMD53 to write data to SDIO device. * * Parameters: * psdio pointer of SDIO_DATA * addr address to write * cnt amount to write * pdata data pointer, this should be a "DMA:able scratch buffer"! * * Return: * 0 Success * others Fail */ s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) { … }