1 /* Driver for Realtek RTS51xx USB card reader
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
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/>.
20 * wwang (wei_wang@realsil.com.cn)
21 * No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China
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"
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
,
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
);
54 #endif /* __RTS51X_SD_CPRM_H */