-
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.
usb-storage: make sddr09 a separate module
This patch (as1207) converts usb-storage's sddr09 subdriver into a separate module. An unexpected complication arises because of DPCM devices, in which one LUN uses the sddr09 transport and one uses the standard CB transport. Since these devices can be used even when USB_STORAGE_SDDR09 isn't configured, their entries in unusual_devs.h require special treatment. If SDDR09 isn't configured then the entries remain in unusual_devs.h; if it is then the entries are present in unusual_sddr09.h instead. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Alan Stern
authored and
Greg Kroah-Hartman
committed
Mar 24, 2009
1 parent
e6e244b
commit 0ff7188
Showing
8 changed files
with
174 additions
and
108 deletions.
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
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 was deleted.
Oops, something went wrong.
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,56 @@ | ||
/* Unusual Devices File for SanDisk SDDR-09 SmartMedia reader | ||
* | ||
* 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, write to the Free Software Foundation, Inc., | ||
* 675 Mass Ave, Cambridge, MA 02139, USA. | ||
*/ | ||
|
||
#if defined(CONFIG_USB_STORAGE_SDDR09) || \ | ||
defined(CONFIG_USB_STORAGE_SDDR09_MODULE) | ||
|
||
UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100, | ||
"Microtech", | ||
"CameraMate (DPCM_USB)", | ||
US_SC_SCSI, US_PR_DPCM_USB, NULL, 0), | ||
|
||
UNUSUAL_DEV( 0x04e6, 0x0003, 0x0000, 0x9999, | ||
"Sandisk", | ||
"ImageMate SDDR09", | ||
US_SC_SCSI, US_PR_EUSB_SDDR09, usb_stor_sddr09_init, | ||
0), | ||
|
||
/* This entry is from Andries.Brouwer@cwi.nl */ | ||
UNUSUAL_DEV( 0x04e6, 0x0005, 0x0100, 0x0208, | ||
"SCM Microsystems", | ||
"eUSB SmartMedia / CompactFlash Adapter", | ||
US_SC_SCSI, US_PR_DPCM_USB, usb_stor_sddr09_dpcm_init, | ||
0), | ||
|
||
UNUSUAL_DEV( 0x066b, 0x0105, 0x0100, 0x0100, | ||
"Olympus", | ||
"Camedia MAUSB-2", | ||
US_SC_SCSI, US_PR_EUSB_SDDR09, usb_stor_sddr09_init, | ||
0), | ||
|
||
UNUSUAL_DEV( 0x0781, 0x0200, 0x0000, 0x9999, | ||
"Sandisk", | ||
"ImageMate SDDR-09", | ||
US_SC_SCSI, US_PR_EUSB_SDDR09, usb_stor_sddr09_init, | ||
0), | ||
|
||
UNUSUAL_DEV( 0x07af, 0x0006, 0x0100, 0x0100, | ||
"Microtech", | ||
"CameraMate (DPCM_USB)", | ||
US_SC_SCSI, US_PR_DPCM_USB, NULL, 0), | ||
|
||
#endif /* defined(CONFIG_USB_STORAGE_SDDR09) || ... */ |
Oops, something went wrong.