Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rtsx.c File Reference
#include <linux/blkdev.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include <linux/workqueue.h>
#include "rtsx.h"
#include "rtsx_chip.h"
#include "rtsx_transport.h"
#include "rtsx_scsi.h"
#include "rtsx_card.h"
#include "general.h"
#include "ms.h"
#include "sd.h"
#include "xd.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRIVER_VERSION   "v1.10"
 
#define SPRINTF(args...)   do { if (pos < buffer+length) pos += sprintf(pos, ## args); } while (0)
 

Functions

 MODULE_DESCRIPTION ("Realtek PCI-Express card reader driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRIVER_VERSION)
 
 module_param (delay_use, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (delay_use,"seconds to delay before using a new device")
 
 module_param (ss_en, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (ss_en,"enable selective suspend")
 
 module_param (ss_interval, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (ss_interval,"Interval to enter ss state in seconds")
 
 module_param (auto_delink_en, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (auto_delink_en,"enable auto delink")
 
 module_param (aspm_l0s_l1_en, byte, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (aspm_l0s_l1_en,"enable device aspm")
 
 module_param (msi_en, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (msi_en,"enable msi")
 
int rtsx_read_pci_cfg_byte (u8 bus, u8 dev, u8 func, u8 offset, u8 *val)
 
 MODULE_DEVICE_TABLE (pci, rtsx_ids)
 

Macro Definition Documentation

#define DRIVER_VERSION   "v1.10"

Definition at line 41 of file rtsx.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 23 of file rtsx.c.

#define SPRINTF (   args...)    do { if (pos < buffer+length) pos += sprintf(pos, ## args); } while (0)

Definition at line 132 of file rtsx.c.

Function Documentation

MODULE_DESCRIPTION ( "Realtek PCI-Express card reader driver )
MODULE_DEVICE_TABLE ( pci  ,
rtsx_ids   
)
MODULE_LICENSE ( "GPL"  )
module_param ( delay_use  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param ( ss_en  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( ss_interval  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( auto_delink_en  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( aspm_l0s_l1_en  ,
byte  ,
S_IRUGO S_IWUSR 
)
module_param ( msi_en  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( delay_use  ,
"seconds to delay before using a new device  
)
MODULE_PARM_DESC ( ss_en  ,
"enable selective suspend  
)
MODULE_PARM_DESC ( ss_interval  ,
"Interval to enter ss state in seconds  
)
MODULE_PARM_DESC ( auto_delink_en  ,
"enable auto delink"   
)
MODULE_PARM_DESC ( aspm_l0s_l1_en  ,
"enable device aspm"   
)
MODULE_PARM_DESC ( msi_en  ,
"enable msi"   
)
MODULE_VERSION ( DRIVER_VERSION  )
int rtsx_read_pci_cfg_byte ( u8  bus,
u8  dev,
u8  func,
u8  offset,
u8 val 
)

Definition at line 329 of file rtsx.c.