aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/unusual_devs.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2008-12-01 10:36:15 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-07 13:00:06 -0500
commitc20b15fde50c32174af4b48851e5ddadba36330e (patch)
tree1a06cf7037f9b1c5290e9c754881c11bc2966947 /drivers/usb/storage/unusual_devs.h
parentf1632df36b9467b75b7abfd2799aef67ec74a60a (diff)
USB: usb-storage: merge DPCM support into SDDR09
The DPCM subdriver is a little peculiar, in that it's meant to support devices where LUN 0 is Compact Flash and uses the CB transport whereas LUN 1 is SmartMedia and uses the SDDR09 transport. Thus DPCM isn't really a transport in itself; it's more like a demultiplexer. Much of the DPCM code is part of the SDDR09 subdriver already, and the remaining part is fairly small. This patch (as1182) moves that extra piece into sddr09.c, thereby eliminating dpcm.c. Also eliminated is the Kconfig entry for DPCM support; it is now listed as part of the SDDR09 entry. In order to make sure that the semantics are the same as before, each unusual_devs entry for DPCM is now present twice: once with DPCM support if SDDR09 is configured (as before), and once with the SINGLE_LUN flag and CB support otherwise. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/unusual_devs.h')
-rw-r--r--drivers/usb/storage/unusual_devs.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index 745809778310..0fd42a0c794f 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -296,11 +296,17 @@ UNUSUAL_DEV( 0x0424, 0x0fdc, 0x0210, 0x0210,
296 US_SC_DEVICE, US_PR_DEVICE, NULL, 296 US_SC_DEVICE, US_PR_DEVICE, NULL,
297 US_FL_SINGLE_LUN ), 297 US_FL_SINGLE_LUN ),
298 298
299#ifdef CONFIG_USB_STORAGE_DPCM 299#ifdef CONFIG_USB_STORAGE_SDDR09
300UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100, 300UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100,
301 "Microtech", 301 "Microtech",
302 "CameraMate (DPCM_USB)", 302 "CameraMate (DPCM_USB)",
303 US_SC_SCSI, US_PR_DPCM_USB, NULL, 0 ), 303 US_SC_SCSI, US_PR_DPCM_USB, NULL, 0 ),
304#else
305UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100,
306 "Microtech",
307 "CameraMate",
308 US_SC_SCSI, US_PR_CB, NULL,
309 US_FL_SINGLE_LUN ),
304#endif 310#endif
305 311
306/* Patch submitted by Daniel Drake <dsd@gentoo.org> 312/* Patch submitted by Daniel Drake <dsd@gentoo.org>
@@ -601,6 +607,12 @@ UNUSUAL_DEV( 0x04e6, 0x0005, 0x0100, 0x0208,
601 "eUSB SmartMedia / CompactFlash Adapter", 607 "eUSB SmartMedia / CompactFlash Adapter",
602 US_SC_SCSI, US_PR_DPCM_USB, usb_stor_sddr09_dpcm_init, 608 US_SC_SCSI, US_PR_DPCM_USB, usb_stor_sddr09_dpcm_init,
603 0), 609 0),
610#else
611UNUSUAL_DEV( 0x04e6, 0x0005, 0x0100, 0x0208,
612 "SCM Microsystems",
613 "eUSB CompactFlash Adapter",
614 US_SC_SCSI, US_PR_CB, NULL,
615 US_FL_SINGLE_LUN),
604#endif 616#endif
605 617
606/* Reported by Markus Demleitner <msdemlei@cl.uni-heidelberg.de> */ 618/* Reported by Markus Demleitner <msdemlei@cl.uni-heidelberg.de> */
@@ -1175,11 +1187,17 @@ UNUSUAL_DEV( 0x07af, 0x0005, 0x0100, 0x0100,
1175 US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init, 1187 US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init,
1176 US_FL_SCM_MULT_TARG ), 1188 US_FL_SCM_MULT_TARG ),
1177 1189
1178#ifdef CONFIG_USB_STORAGE_DPCM 1190#ifdef CONFIG_USB_STORAGE_SDDR09
1179UNUSUAL_DEV( 0x07af, 0x0006, 0x0100, 0x0100, 1191UNUSUAL_DEV( 0x07af, 0x0006, 0x0100, 0x0100,
1180 "Microtech", 1192 "Microtech",
1181 "CameraMate (DPCM_USB)", 1193 "CameraMate (DPCM_USB)",
1182 US_SC_SCSI, US_PR_DPCM_USB, NULL, 0 ), 1194 US_SC_SCSI, US_PR_DPCM_USB, NULL, 0 ),
1195#else
1196UNUSUAL_DEV( 0x07af, 0x0006, 0x0100, 0x0100,
1197 "Microtech",
1198 "CameraMate",
1199 US_SC_SCSI, US_PR_CB, NULL,
1200 US_FL_SINGLE_LUN ),
1183#endif 1201#endif
1184 1202
1185#ifdef CONFIG_USB_STORAGE_ALAUDA 1203#ifdef CONFIG_USB_STORAGE_ALAUDA