diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-12-01 10:36:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 10:00:06 -0800 |
commit | c20b15fde50c32174af4b48851e5ddadba36330e (patch) | |
tree | 1a06cf7037f9b1c5290e9c754881c11bc2966947 /drivers/usb/storage/sddr09.h | |
parent | f1632df36b9467b75b7abfd2799aef67ec74a60a (diff) | |
download | op-kernel-dev-c20b15fde50c32174af4b48851e5ddadba36330e.zip op-kernel-dev-c20b15fde50c32174af4b48851e5ddadba36330e.tar.gz |
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/sddr09.h')
-rw-r--r-- | drivers/usb/storage/sddr09.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/storage/sddr09.h b/drivers/usb/storage/sddr09.h index e50033a..b701172 100644 --- a/drivers/usb/storage/sddr09.h +++ b/drivers/usb/storage/sddr09.h @@ -28,8 +28,11 @@ /* Sandisk SDDR-09 stuff */ extern int sddr09_transport(struct scsi_cmnd *srb, struct us_data *us); +extern int usb_stor_sddr09_init(struct us_data *us); + +/* Microtech DPCM-USB stuff */ +extern int dpcm_transport(struct scsi_cmnd *srb, struct us_data *us); extern int usb_stor_sddr09_dpcm_init(struct us_data *us); -extern int usb_stor_sddr09_init(struct us_data *us); #endif |