Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Driver for Realtek PCI-Express card reader
0004  *
0005  * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
0006  *
0007  * Author:
0008  *   Wei WANG (wei_wang@realsil.com.cn)
0009  *   Micky Ching (micky_ching@realsil.com.cn)
0010  */
0011 
0012 #ifndef __RTSX_SYS_H
0013 #define __RTSX_SYS_H
0014 
0015 #include "rtsx.h"
0016 #include "rtsx_chip.h"
0017 #include "rtsx_card.h"
0018 
0019 static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip)
0020 {
0021     struct rtsx_dev *dev = chip->rtsx;
0022 
0023     spin_lock(&dev->reg_lock);
0024     rtsx_enter_ss(chip);
0025     spin_unlock(&dev->reg_lock);
0026 }
0027 
0028 static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag)
0029 {
0030     rtsx_reset_cards(chip);
0031 }
0032 
0033 #define RTSX_MSG_IN_INT(x)
0034 
0035 #endif  /* __RTSX_SYS_H */
0036