spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / drivers / staging / rts5139 / sd_cprm.h
blob75e263b6594cbf3b77b1cd66c07269777959b4d3
1 /* Driver for Realtek RTS51xx USB card reader
2 * Header file
4 * Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
9 * later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, see <http://www.gnu.org/licenses/>.
19 * Author:
20 * wwang (wei_wang@realsil.com.cn)
21 * No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China
22 * Maintainer:
23 * Edwin Rong (edwin_rong@realsil.com.cn)
24 * No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China
27 #ifndef __RTS51X_SD_CPRM_H
28 #define __RTS51X_SD_CPRM_H
30 #include "rts51x_chip.h"
31 #include "sd.h"
33 #ifdef SUPPORT_CPRM
34 int ext_sd_execute_no_data(struct rts51x_chip *chip, unsigned int lun,
35 u8 cmd_idx, u8 standby, u8 acmd, u8 rsp_code,
36 u32 arg);
37 int ext_sd_execute_read_data(struct rts51x_chip *chip, unsigned int lun,
38 u8 cmd_idx, u8 cmd12, u8 standby, u8 acmd,
39 u8 rsp_code, u32 arg, u32 data_len, void *data_buf,
40 unsigned int buf_len, int use_sg);
41 int ext_sd_execute_write_data(struct rts51x_chip *chip, unsigned int lun,
42 u8 cmd_idx, u8 cmd12, u8 standby, u8 acmd,
43 u8 rsp_code, u32 arg, u32 data_len,
44 void *data_buf, unsigned int buf_len, int use_sg);
46 int sd_pass_thru_mode(struct scsi_cmnd *srb, struct rts51x_chip *chip);
47 int sd_execute_no_data(struct scsi_cmnd *srb, struct rts51x_chip *chip);
48 int sd_execute_read_data(struct scsi_cmnd *srb, struct rts51x_chip *chip);
49 int sd_execute_write_data(struct scsi_cmnd *srb, struct rts51x_chip *chip);
50 int sd_get_cmd_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip);
51 int sd_hw_rst(struct scsi_cmnd *srb, struct rts51x_chip *chip);
52 #endif
54 #endif /* __RTS51X_SD_CPRM_H */