#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.
|
| 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) |
|
#define DRIVER_VERSION "v1.10" |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
rtsx_ids |
|
|
) |
| |
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_PARM_DESC |
( |
delay_use |
, |
|
|
"seconds to delay before using a new device" |
|
|
) |
| |
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" |
|
|
) |
| |
int rtsx_read_pci_cfg_byte |
( |
u8 |
bus, |
|
|
u8 |
dev, |
|
|
u8 |
func, |
|
|
u8 |
offset, |
|
|
u8 * |
val |
|
) |
| |