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 _RTW_IO_H_ 16 #define _RTW_IO_H_ 17 18 #ifdef CONFIG_PCI_HCI 19 #define MAX_CONTINUAL_IO_ERR 4 20 #endif 21 22 #ifdef CONFIG_USB_HCI 23 #define MAX_CONTINUAL_IO_ERR 4 24 #endif 25 26 #ifdef CONFIG_SDIO_HCI 27 #define SD_IO_TRY_CNT (8) 28 #define MAX_CONTINUAL_IO_ERR SD_IO_TRY_CNT 29 #endif 30 31 #ifdef CONFIG_GSPI_HCI 32 #define SD_IO_TRY_CNT (8) 33 #define MAX_CONTINUAL_IO_ERR SD_IO_TRY_CNT 34 #endif 35 36 37 int rtw_inc_and_chk_continual_io_error(struct dvobj_priv *dvobj); 38 void rtw_reset_continual_io_error(struct dvobj_priv *dvobj); 39 40 #endif /* _RTW_IO_H_ */ 41