-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 235648 b: refs/heads/master c: 77d89b0 h: refs/heads/master v: v3
- Loading branch information
wwang
authored and
Greg Kroah-Hartman
committed
Jan 21, 2011
1 parent
0736a8e
commit 50f99b2
Showing
29 changed files
with
24,399 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 88c8a4437b061dd9dae738802a9eddc297a96278 | ||
refs/heads/master: 77d89b08766c878a2594b15d203e513acf952340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
config RTS_PSTOR | ||
tristate "RealTek PCI-E Card Reader support" | ||
help | ||
Say Y here to include driver code to support the Realtek | ||
PCI-E card readers. | ||
|
||
If this driver is compiled as a module, it will be named rts_pstor. | ||
|
||
config RTS_PSTOR_DEBUG | ||
bool "Realtek PCI-E Card Reader verbose debug" | ||
depends on RTS_PSTOR | ||
help | ||
Say Y here in order to have the rts_pstor code generate | ||
verbose debugging messages. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
EXTRA_CFLAGS := -Idrivers/scsi | ||
|
||
obj-$(CONFIG_RTS_PSTOR) := rts_pstor.o | ||
|
||
rts_pstor-y := \ | ||
rtsx.o \ | ||
rtsx_chip.o \ | ||
rtsx_transport.o \ | ||
rtsx_scsi.o \ | ||
rtsx_card.o \ | ||
general.o \ | ||
sd.o \ | ||
xd.o \ | ||
ms.o \ | ||
spi.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TODO: | ||
- support more pcie card reader of Realtek family | ||
- use kernel coding style | ||
- checkpatch.pl fixes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* Driver for Realtek PCI-Express card reader | ||
* Header file | ||
* | ||
* Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2, or (at your option) any | ||
* later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program; if not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Author: | ||
* wwang (wei_wang@realsil.com.cn) | ||
* No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China | ||
*/ | ||
|
||
#ifndef __REALTEK_RTSX_DEBUG_H | ||
#define __REALTEK_RTSX_DEBUG_H | ||
|
||
#include <linux/kernel.h> | ||
|
||
#define RTSX_STOR "rts_pstor: " | ||
|
||
#if CONFIG_RTS_PSTOR_DEBUG | ||
#define RTSX_DEBUGP(x...) printk(KERN_DEBUG RTSX_STOR x) | ||
#define RTSX_DEBUGPN(x...) printk(KERN_DEBUG x) | ||
#define RTSX_DEBUGPX(x...) printk(x) | ||
#define RTSX_DEBUG(x) x | ||
#else | ||
#define RTSX_DEBUGP(x...) | ||
#define RTSX_DEBUGPN(x...) | ||
#define RTSX_DEBUGPX(x...) | ||
#define RTSX_DEBUG(x) | ||
#endif | ||
|
||
#endif /* __REALTEK_RTSX_DEBUG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* Driver for Realtek PCI-Express card reader | ||
* | ||
* Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2, or (at your option) any | ||
* later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program; if not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Author: | ||
* wwang (wei_wang@realsil.com.cn) | ||
* No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China | ||
*/ | ||
|
||
#include "general.h" | ||
|
||
int bit1cnt_long(u32 data) | ||
{ | ||
int i, cnt = 0; | ||
for (i = 0; i < 32; i++) { | ||
if (data & 0x01) | ||
cnt++; | ||
data >>= 1; | ||
} | ||
return cnt; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* Driver for Realtek PCI-Express card reader | ||
* Header file | ||
* | ||
* Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2, or (at your option) any | ||
* later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program; if not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* Author: | ||
* wwang (wei_wang@realsil.com.cn) | ||
* No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China | ||
*/ | ||
|
||
#ifndef __RTSX_GENERAL_H | ||
#define __RTSX_GENERAL_H | ||
|
||
#include "rtsx.h" | ||
|
||
int bit1cnt_long(u32 data); | ||
|
||
#endif /* __RTSX_GENERAL_H */ |
Oops, something went wrong.