2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# Makefile for the USB Mass Storage device drivers.
|
|
|
|
#
|
|
|
|
# 15 Aug 2000, Christoph Hellwig <hch@infradead.org>
|
|
|
|
# Rewritten to use lists instead of if-statements.
|
|
|
|
#
|
|
|
|
|
2010-10-07 10:03:26 +08:00
|
|
|
ccflags-y := -Idrivers/scsi
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2010-10-07 19:05:23 +08:00
|
|
|
obj-$(CONFIG_USB_UAS) += uas.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE) += usb-storage.o
|
|
|
|
|
2010-10-07 10:03:26 +08:00
|
|
|
usb-storage-y := scsiglue.o protocol.o transport.o usb.o
|
|
|
|
usb-storage-y += initializers.o sierra_ms.o option_ms.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2010-10-07 10:03:26 +08:00
|
|
|
usb-storage-$(CONFIG_USB_STORAGE_DEBUG) += debug.o
|
2005-10-23 11:15:09 +08:00
|
|
|
|
usb-storage: prepare for subdriver separation
This patch (as1206) is the first step in converting usb-storage's
subdrivers into separate modules. It makes the following large-scale
changes:
Remove a bunch of unnecessary #ifdef's from usb_usual.h.
Not truly necessary, but it does clean things up.
Move the USB device-ID table (which is duplicated between
libusual and usb-storage) into its own source file,
usual-tables.c, and arrange for this to be linked with
either libusual or usb-storage according to whether
USB_LIBUSUAL is configured.
Add to usual-tables.c a new usb_usual_ignore_device()
function to detect whether a particular device needs to be
managed by a subdriver and not by the standard handlers
in usb-storage.
Export a whole bunch of functions in usb-storage, renaming
some of them because their names don't already begin with
"usb_stor_". These functions will be needed by the new
subdriver modules.
Split usb-storage's probe routine into two functions.
The subdrivers will call the probe1 routine, then fill in
their transport and protocol settings, and then call the
probe2 routine.
Take the default cases and error checking out of
get_transport() and get_protocol(), which run during
probe1, and instead put a check for invalid transport
or protocol values into the probe2 function.
Add a new probe routine to be used for standard devices,
i.e., those that don't need a subdriver. This new routine
checks whether the device should be ignored (because it
should be handled by ub or by a subdriver), and if not,
calls the probe1 and probe2 functions.
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>
2009-02-13 03:47:44 +08:00
|
|
|
ifeq ($(CONFIG_USB_LIBUSUAL),)
|
2010-10-07 10:03:26 +08:00
|
|
|
usb-storage-y += usual-tables.o
|
usb-storage: prepare for subdriver separation
This patch (as1206) is the first step in converting usb-storage's
subdrivers into separate modules. It makes the following large-scale
changes:
Remove a bunch of unnecessary #ifdef's from usb_usual.h.
Not truly necessary, but it does clean things up.
Move the USB device-ID table (which is duplicated between
libusual and usb-storage) into its own source file,
usual-tables.c, and arrange for this to be linked with
either libusual or usb-storage according to whether
USB_LIBUSUAL is configured.
Add to usual-tables.c a new usb_usual_ignore_device()
function to detect whether a particular device needs to be
managed by a subdriver and not by the standard handlers
in usb-storage.
Export a whole bunch of functions in usb-storage, renaming
some of them because their names don't already begin with
"usb_stor_". These functions will be needed by the new
subdriver modules.
Split usb-storage's probe routine into two functions.
The subdrivers will call the probe1 routine, then fill in
their transport and protocol settings, and then call the
probe2 routine.
Take the default cases and error checking out of
get_transport() and get_protocol(), which run during
probe1, and instead put a check for invalid transport
or protocol values into the probe2 function.
Add a new probe routine to be used for standard devices,
i.e., those that don't need a subdriver. This new routine
checks whether the device should be ignored (because it
should be handled by ub or by a subdriver), and if not,
calls the probe1 and probe2 functions.
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>
2009-02-13 03:47:44 +08:00
|
|
|
else
|
2009-04-10 02:59:44 +08:00
|
|
|
obj-$(CONFIG_USB) += usb-libusual.o
|
2010-10-07 10:03:26 +08:00
|
|
|
usb-libusual-y := libusual.o usual-tables.o
|
2005-10-23 11:15:09 +08:00
|
|
|
endif
|
2009-02-13 03:47:49 +08:00
|
|
|
|
2009-02-13 03:48:22 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ALAUDA) += ums-alauda.o
|
2009-02-13 03:48:04 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_CYPRESS_ATACB) += ums-cypress.o
|
2009-02-13 03:48:15 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_DATAFAB) += ums-datafab.o
|
2011-03-04 10:56:18 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ENE_UB6250) += ums-eneub6250.o
|
2009-02-13 03:48:11 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_FREECOM) += ums-freecom.o
|
2009-02-13 03:47:54 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ISD200) += ums-isd200.o
|
2009-02-13 03:48:19 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_JUMPSHOT) += ums-jumpshot.o
|
2009-02-13 03:48:26 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_KARMA) += ums-karma.o
|
2009-02-13 03:48:33 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_ONETOUCH) += ums-onetouch.o
|
2011-01-14 16:53:34 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_REALTEK) += ums-realtek.o
|
2009-02-13 03:47:49 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_SDDR09) += ums-sddr09.o
|
2009-02-13 03:47:59 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_SDDR55) += ums-sddr55.o
|
2009-02-13 03:48:08 +08:00
|
|
|
obj-$(CONFIG_USB_STORAGE_USBAT) += ums-usbat.o
|
2009-02-13 03:47:49 +08:00
|
|
|
|
2010-10-07 10:03:26 +08:00
|
|
|
ums-alauda-y := alauda.o
|
|
|
|
ums-cypress-y := cypress_atacb.o
|
|
|
|
ums-datafab-y := datafab.o
|
2011-03-04 10:56:18 +08:00
|
|
|
ums-eneub6250-y := ene_ub6250.o
|
2010-10-07 10:03:26 +08:00
|
|
|
ums-freecom-y := freecom.o
|
|
|
|
ums-isd200-y := isd200.o
|
|
|
|
ums-jumpshot-y := jumpshot.o
|
|
|
|
ums-karma-y := karma.o
|
|
|
|
ums-onetouch-y := onetouch.o
|
2011-01-14 16:53:34 +08:00
|
|
|
ums-realtek-y := realtek_cr.o
|
2010-10-07 10:03:26 +08:00
|
|
|
ums-sddr09-y := sddr09.o
|
|
|
|
ums-sddr55-y := sddr55.o
|
|
|
|
ums-usbat-y := shuttle_usbat.o
|