From e6d87036412b952cb083eff2dc716aee97a771f2 Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Fri, 17 May 2013 20:40:24 +0300 Subject: Move to rsdk 3.2.4. Compiles cleanly. Signed-off-by: Roman Yeryomin --- .../realtek/files/drivers/usb/misc/rts51xx/ms.h | 217 +++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 target/linux/realtek/files/drivers/usb/misc/rts51xx/ms.h (limited to 'target/linux/realtek/files/drivers/usb/misc/rts51xx/ms.h') diff --git a/target/linux/realtek/files/drivers/usb/misc/rts51xx/ms.h b/target/linux/realtek/files/drivers/usb/misc/rts51xx/ms.h new file mode 100644 index 000000000..c8f5df5a4 --- /dev/null +++ b/target/linux/realtek/files/drivers/usb/misc/rts51xx/ms.h @@ -0,0 +1,217 @@ +/* Driver for Realtek RTS51xx USB card reader + * Header file + * + * Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2, or (at your option) any + * later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, see multi_flag |= 0x80 +#define MS_CLR_BAD_BLOCK_FLG(ms_card) (ms_card)->multi_flag &= 0x7F +#define MS_TST_BAD_BLOCK_FLG(ms_card) (ms_card)->multi_flag & 0x80 + +#define CHECK_MS_TRANS_FAIL(chip, retval) (((retval) != STATUS_SUCCESS) || \ + (chip->rsp_buf[0] & MS_TRANSFER_ERR)) + +void mspro_polling_format_status(struct rts51x_chip *chip); +void mspro_format_sense(struct rts51x_chip *chip, unsigned int lun); + +void mspro_stop_seq_mode(struct rts51x_chip *chip); +int reset_ms_card(struct rts51x_chip *chip); +int ms_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, u16 sector_cnt); +int mspro_format(struct scsi_cmnd *srb, struct rts51x_chip *chip, int short_data_len, int quick_format); +void ms_free_l2p_tbl(struct rts51x_chip *chip); +void ms_cleanup_work(struct rts51x_chip *chip); +int ms_power_off_card3v3(struct rts51x_chip *chip); +int release_ms_card(struct rts51x_chip *chip); +int ms_delay_write(struct rts51x_chip *chip); + +#endif + -- cgit v1.2.3