drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / rts5139 / sd_cprm.h
CommitLineData
1dac4186 1/* Driver for Realtek RTS51xx USB card reader
2 * Header file
3 *
4 * Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved.
5 *
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.
10 *
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.
15 *
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/>.
18 *
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
25 */
26
27#ifndef __RTS51X_SD_CPRM_H
28#define __RTS51X_SD_CPRM_H
29
30#include "rts51x_chip.h"
31#include "sd.h"
32
33#ifdef SUPPORT_CPRM
355d8ae5 34int ext_rts51x_sd_execute_no_data(struct rts51x_chip *chip, unsigned int lun,
1dac4186 35 u8 cmd_idx, u8 standby, u8 acmd, u8 rsp_code,
36 u32 arg);
355d8ae5 37int ext_rts51x_sd_execute_read_data(struct rts51x_chip *chip, unsigned int lun,
1dac4186 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);
355d8ae5 41int ext_rts51x_sd_execute_write_data(struct rts51x_chip *chip, unsigned int lun,
1dac4186 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);
45
355d8ae5
RT
46int rts51x_sd_pass_thru_mode(struct scsi_cmnd *srb, struct rts51x_chip *chip);
47int rts51x_sd_execute_no_data(struct scsi_cmnd *srb, struct rts51x_chip *chip);
48int rts51x_sd_execute_read_data(struct scsi_cmnd *srb, struct rts51x_chip *chip);
49int rts51x_sd_execute_write_data(struct scsi_cmnd *srb, struct rts51x_chip *chip);
50int rts51x_sd_get_cmd_rsp(struct scsi_cmnd *srb, struct rts51x_chip *chip);
51int rts51x_sd_hw_rst(struct scsi_cmnd *srb, struct rts51x_chip *chip);
1dac4186 52#endif
53
54#endif /* __RTS51X_SD_CPRM_H */