From 7e810011201bf926cba09ec07424893e4cd8ce67 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/sd.h | 285 +++++++++++++++++++++ 1 file changed, 285 insertions(+) create mode 100644 target/linux/realtek/files/drivers/usb/misc/rts51xx/sd.h (limited to 'target/linux/realtek/files/drivers/usb/misc/rts51xx/sd.h') diff --git a/target/linux/realtek/files/drivers/usb/misc/rts51xx/sd.h b/target/linux/realtek/files/drivers/usb/misc/rts51xx/sd.h new file mode 100644 index 000000000..f5f2c5d8e --- /dev/null +++ b/target/linux/realtek/files/drivers/usb/misc/rts51xx/sd.h @@ -0,0 +1,285 @@ +/* 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 rsp_buf[0] & SD_TRANSFER_ERR)) + +struct timing_phase_path { + int start; + int end; + int mid; + int len; +}; + +int sd_select_card(struct rts51x_chip *chip, int select); +int reset_sd_card(struct rts51x_chip *chip); +int sd_switch_clock(struct rts51x_chip *chip); +void sd_stop_seq_mode(struct rts51x_chip *chip); +int sd_rw(struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, u16 sector_cnt); +void sd_cleanup_work(struct rts51x_chip *chip); +int sd_power_off_card3v3(struct rts51x_chip *chip); +int release_sd_card(struct rts51x_chip *chip); + +#ifdef SUPPORT_SD_LOCK +int sd_update_lock_status(struct rts51x_chip *chip); +#endif + +#endif + -- cgit v1.2.3