cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rtsx_sys.h (734B)


      1/* SPDX-License-Identifier: GPL-2.0+ */
      2/*
      3 * Driver for Realtek PCI-Express card reader
      4 *
      5 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
      6 *
      7 * Author:
      8 *   Wei WANG (wei_wang@realsil.com.cn)
      9 *   Micky Ching (micky_ching@realsil.com.cn)
     10 */
     11
     12#ifndef __RTSX_SYS_H
     13#define __RTSX_SYS_H
     14
     15#include "rtsx.h"
     16#include "rtsx_chip.h"
     17#include "rtsx_card.h"
     18
     19static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip)
     20{
     21	struct rtsx_dev *dev = chip->rtsx;
     22
     23	spin_lock(&dev->reg_lock);
     24	rtsx_enter_ss(chip);
     25	spin_unlock(&dev->reg_lock);
     26}
     27
     28static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag)
     29{
     30	rtsx_reset_cards(chip);
     31}
     32
     33#define RTSX_MSG_IN_INT(x)
     34
     35#endif  /* __RTSX_SYS_H */
     36