aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage/unusual_devs.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2009-02-12 14:47:49 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-24 19:20:34 -0400
commit0ff71883b2d60136430458413c135d545c69b0c4 (patch)
treec8828d2881acc8d4c063ee5336f5a282f766e7c8 /drivers/usb/storage/unusual_devs.h
parente6e244b6cb1f70e7109381626293cd40a8334ed3 (diff)
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>
Diffstat (limited to 'drivers/usb/storage/unusual_devs.h')
-rw-r--r--drivers/usb/storage/unusual_devs.h50
1 files changed, 8 insertions, 42 deletions
diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index cfde74a6faa3..1fe7062f1cda 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -53,6 +53,11 @@
53 * as opposed to devices that do something strangely or wrongly. 53 * as opposed to devices that do something strangely or wrongly.
54 */ 54 */
55 55
56#if !defined(CONFIG_USB_STORAGE_SDDR09) && \
57 !defined(CONFIG_USB_STORAGE_SDDR09_MODULE)
58#define NO_SDDR09
59#endif
60
56/* patch submitted by Vivian Bregier <Vivian.Bregier@imag.fr> 61/* patch submitted by Vivian Bregier <Vivian.Bregier@imag.fr>
57 */ 62 */
58UNUSUAL_DEV( 0x03eb, 0x2002, 0x0100, 0x0100, 63UNUSUAL_DEV( 0x03eb, 0x2002, 0x0100, 0x0100,
@@ -246,12 +251,7 @@ UNUSUAL_DEV( 0x0424, 0x0fdc, 0x0210, 0x0210,
246 US_SC_DEVICE, US_PR_DEVICE, NULL, 251 US_SC_DEVICE, US_PR_DEVICE, NULL,
247 US_FL_SINGLE_LUN ), 252 US_FL_SINGLE_LUN ),
248 253
249#ifdef CONFIG_USB_STORAGE_SDDR09 254#ifdef NO_SDDR09
250UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100,
251 "Microtech",
252 "CameraMate (DPCM_USB)",
253 US_SC_SCSI, US_PR_DPCM_USB, NULL, 0 ),
254#else
255UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100, 255UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100,
256 "Microtech", 256 "Microtech",
257 "CameraMate", 257 "CameraMate",
@@ -467,20 +467,7 @@ UNUSUAL_DEV( 0x04e6, 0x0002, 0x0100, 0x0100,
467 US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init, 467 US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init,
468 US_FL_SCM_MULT_TARG ), 468 US_FL_SCM_MULT_TARG ),
469 469
470#ifdef CONFIG_USB_STORAGE_SDDR09 470#ifdef NO_SDDR09
471UNUSUAL_DEV( 0x04e6, 0x0003, 0x0000, 0x9999,
472 "Sandisk",
473 "ImageMate SDDR09",
474 US_SC_SCSI, US_PR_EUSB_SDDR09, usb_stor_sddr09_init,
475 0),
476
477/* This entry is from Andries.Brouwer@cwi.nl */
478UNUSUAL_DEV( 0x04e6, 0x0005, 0x0100, 0x0208,
479 "SCM Microsystems",
480 "eUSB SmartMedia / CompactFlash Adapter",
481 US_SC_SCSI, US_PR_DPCM_USB, usb_stor_sddr09_dpcm_init,
482 0),
483#else
484UNUSUAL_DEV( 0x04e6, 0x0005, 0x0100, 0x0208, 471UNUSUAL_DEV( 0x04e6, 0x0005, 0x0100, 0x0208,
485 "SCM Microsystems", 472 "SCM Microsystems",
486 "eUSB CompactFlash Adapter", 473 "eUSB CompactFlash Adapter",
@@ -935,14 +922,6 @@ UNUSUAL_DEV( 0x0644, 0x0000, 0x0100, 0x0100,
935 "Floppy Drive", 922 "Floppy Drive",
936 US_SC_UFI, US_PR_CB, NULL, 0 ), 923 US_SC_UFI, US_PR_CB, NULL, 0 ),
937 924
938#ifdef CONFIG_USB_STORAGE_SDDR09
939UNUSUAL_DEV( 0x066b, 0x0105, 0x0100, 0x0100,
940 "Olympus",
941 "Camedia MAUSB-2",
942 US_SC_SCSI, US_PR_EUSB_SDDR09, usb_stor_sddr09_init,
943 0),
944#endif
945
946/* Reported by Darsen Lu <darsen@micro.ee.nthu.edu.tw> */ 925/* Reported by Darsen Lu <darsen@micro.ee.nthu.edu.tw> */
947UNUSUAL_DEV( 0x066f, 0x8000, 0x0001, 0x0001, 926UNUSUAL_DEV( 0x066f, 0x8000, 0x0001, 0x0001,
948 "SigmaTel", 927 "SigmaTel",
@@ -1057,14 +1036,6 @@ UNUSUAL_DEV( 0x0781, 0x0100, 0x0100, 0x0100,
1057 US_SC_SCSI, US_PR_CB, NULL, 1036 US_SC_SCSI, US_PR_CB, NULL,
1058 US_FL_SINGLE_LUN ), 1037 US_FL_SINGLE_LUN ),
1059 1038
1060#ifdef CONFIG_USB_STORAGE_SDDR09
1061UNUSUAL_DEV( 0x0781, 0x0200, 0x0000, 0x9999,
1062 "Sandisk",
1063 "ImageMate SDDR-09",
1064 US_SC_SCSI, US_PR_EUSB_SDDR09, usb_stor_sddr09_init,
1065 0),
1066#endif
1067
1068#ifdef CONFIG_USB_STORAGE_FREECOM 1039#ifdef CONFIG_USB_STORAGE_FREECOM
1069UNUSUAL_DEV( 0x07ab, 0xfc01, 0x0000, 0x9999, 1040UNUSUAL_DEV( 0x07ab, 0xfc01, 0x0000, 0x9999,
1070 "Freecom", 1041 "Freecom",
@@ -1091,12 +1062,7 @@ UNUSUAL_DEV( 0x07af, 0x0005, 0x0100, 0x0100,
1091 US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init, 1062 US_SC_DEVICE, US_PR_DEVICE, usb_stor_euscsi_init,
1092 US_FL_SCM_MULT_TARG ), 1063 US_FL_SCM_MULT_TARG ),
1093 1064
1094#ifdef CONFIG_USB_STORAGE_SDDR09 1065#ifdef NO_SDDR09
1095UNUSUAL_DEV( 0x07af, 0x0006, 0x0100, 0x0100,
1096 "Microtech",
1097 "CameraMate (DPCM_USB)",
1098 US_SC_SCSI, US_PR_DPCM_USB, NULL, 0 ),
1099#else
1100UNUSUAL_DEV( 0x07af, 0x0006, 0x0100, 0x0100, 1066UNUSUAL_DEV( 0x07af, 0x0006, 0x0100, 0x0100,
1101 "Microtech", 1067 "Microtech",
1102 "CameraMate", 1068 "CameraMate",