Micky Ching | fa590c2 | 2013-11-12 17:16:08 +0800 | [diff] [blame] | 1 | /* Driver for Realtek PCI-Express card reader |
| 2 | * Header file |
| 3 | * |
| 4 | * Copyright(c) 2009-2013 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 | * Wei WANG (wei_wang@realsil.com.cn) |
| 21 | * Micky Ching (micky_ching@realsil.com.cn) |
| 22 | */ |
| 23 | |
| 24 | #ifndef __RTSX_SYS_H |
| 25 | #define __RTSX_SYS_H |
| 26 | |
| 27 | #include "rtsx.h" |
| 28 | #include "rtsx_chip.h" |
| 29 | #include "rtsx_card.h" |
| 30 | |
Micky Ching | fa590c2 | 2013-11-12 17:16:08 +0800 | [diff] [blame] | 31 | static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip) |
| 32 | { |
| 33 | struct rtsx_dev *dev = chip->rtsx; |
| 34 | |
| 35 | spin_lock(&(dev->reg_lock)); |
| 36 | rtsx_enter_ss(chip); |
| 37 | spin_unlock(&(dev->reg_lock)); |
| 38 | } |
| 39 | |
| 40 | static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag) |
| 41 | { |
| 42 | rtsx_reset_cards(chip); |
| 43 | } |
| 44 | |
| 45 | #define RTSX_MSG_IN_INT(x) |
| 46 | |
| 47 | #endif /* __RTSX_SYS_H */ |
| 48 | |