edwin_rong | 1dac418 | 2011-07-19 17:10:35 +0800 | [diff] [blame^] | 1 | /* Driver for Realtek USB RTS51xx 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_SYS_H |
| 28 | #define __RTS51X_SYS_H |
| 29 | |
| 30 | #include "rts51x.h" |
| 31 | #include "rts51x_chip.h" |
| 32 | #include "rts51x_card.h" |
| 33 | |
| 34 | #define USING_POLLING_CYCLE_DELINK |
| 35 | |
| 36 | extern int rts51x_check_start_time(struct rts51x_chip *chip); |
| 37 | extern void rts51x_set_start_time(struct rts51x_chip *chip); |
| 38 | extern void rts51x_clear_start_time(struct rts51x_chip *chip); |
| 39 | |
| 40 | /* typedef dma_addr_t ULONG_PTR; */ |
| 41 | |
| 42 | static inline void rts51x_reset_detected_cards(struct rts51x_chip *chip) |
| 43 | { |
| 44 | /* rts51x_reset_cards(chip); */ |
| 45 | } |
| 46 | |
| 47 | static inline void clear_first_install_mark(struct rts51x_chip *chip) |
| 48 | { |
| 49 | } |
| 50 | |
| 51 | void rts51x_enter_ss(struct rts51x_chip *chip); |
| 52 | void rts51x_exit_ss(struct rts51x_chip *chip); |
| 53 | |
| 54 | #endif /* __RTS51X_SYS_H */ |