1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 5 * 6 ******************************************************************************/ 7 #ifndef __SDIO_OPS_H__ 8 #define __SDIO_OPS_H__ 9 10 11 #include <sdio_ops_linux.h> 12 13 extern void sdio_set_intf_ops(struct adapter *padapter, struct _io_ops *pops); 14 15 /* extern void sdio_func1cmd52_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem); */ 16 /* extern void sdio_func1cmd52_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem); */ 17 extern u8 SdioLocalCmd52Read1Byte(struct adapter *padapter, u32 addr); 18 extern void SdioLocalCmd52Write1Byte(struct adapter *padapter, u32 addr, u8 v); 19 extern s32 sdio_local_read(struct adapter *padapter, u32 addr, u32 cnt, u8 *pbuf); 20 extern s32 sdio_local_write(struct adapter *padapter, u32 addr, u32 cnt, u8 *pbuf); 21 22 u32 _sdio_read32(struct adapter *padapter, u32 addr); 23 s32 _sdio_write32(struct adapter *padapter, u32 addr, u32 val); 24 25 extern void sd_int_hdl(struct adapter *padapter); 26 extern u8 CheckIPSStatus(struct adapter *padapter); 27 28 extern void InitInterrupt8723BSdio(struct adapter *padapter); 29 extern void InitSysInterrupt8723BSdio(struct adapter *padapter); 30 extern void EnableInterrupt8723BSdio(struct adapter *padapter); 31 extern void DisableInterrupt8723BSdio(struct adapter *padapter); 32 extern u8 HalQueryTxBufferStatus8723BSdio(struct adapter *padapter); 33 extern void HalQueryTxOQTBufferStatus8723BSdio(struct adapter *padapter); 34 #endif /* !__SDIO_OPS_H__ */ 35