From dff4eb9d31108f3028a4aaa1a19096a29932afb7 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 4 Apr 2002 18:53:38 -0800 Subject: [PATCH] USB moved class/storage/ back to storage/ created input/ orderd the makefiles and config.in menus better. --- drivers/usb/Config.in | 15 ++++---- drivers/usb/Makefile | 38 ++++++++++--------- drivers/usb/class/Config.in | 36 ++---------------- drivers/usb/class/Makefile | 17 +-------- drivers/usb/class/storage/Makefile | 32 ---------------- drivers/usb/input/Config.in | 27 +++++++++++++ drivers/usb/input/Makefile | 24 ++++++++++++ drivers/usb/{class => input}/hid-core.c | 0 drivers/usb/{class => input}/hid-debug.h | 0 drivers/usb/{class => input}/hid-input.c | 0 drivers/usb/{class => input}/hid.h | 0 drivers/usb/{class => input}/hiddev.c | 0 drivers/usb/{class => input}/usbkbd.c | 0 drivers/usb/{class => input}/usbmouse.c | 0 drivers/usb/{misc => input}/wacom.c | 0 drivers/usb/media/Config.in | 20 +++++----- drivers/usb/media/Makefile | 1 + drivers/usb/{misc => media}/dabfirmware.h | 0 drivers/usb/{misc => media}/dabusb.c | 0 drivers/usb/{misc => media}/dabusb.h | 0 drivers/usb/misc/Makefile | 2 - drivers/usb/net/Config.in | 7 ++-- drivers/usb/net/Makefile | 1 + drivers/usb/{class => net}/cdc-ether.c | 0 drivers/usb/{class => net}/cdc-ether.h | 0 drivers/usb/storage/Config.in | 15 ++++++++ drivers/usb/storage/Makefile | 27 +++++++++++++ drivers/usb/{class => }/storage/datafab.c | 0 drivers/usb/{class => }/storage/datafab.h | 0 drivers/usb/{class => }/storage/debug.c | 0 drivers/usb/{class => }/storage/debug.h | 0 drivers/usb/{class => }/storage/dpcm.c | 0 drivers/usb/{class => }/storage/dpcm.h | 0 drivers/usb/{class => }/storage/freecom.c | 0 drivers/usb/{class => }/storage/freecom.h | 0 .../usb/{class => }/storage/initializers.c | 0 .../usb/{class => }/storage/initializers.h | 0 drivers/usb/{class => }/storage/isd200.c | 0 drivers/usb/{class => }/storage/isd200.h | 0 drivers/usb/{class => }/storage/jumpshot.c | 0 drivers/usb/{class => }/storage/jumpshot.h | 0 drivers/usb/{class => }/storage/protocol.c | 0 drivers/usb/{class => }/storage/protocol.h | 0 drivers/usb/{class => }/storage/scsiglue.c | 0 drivers/usb/{class => }/storage/scsiglue.h | 0 drivers/usb/{class => }/storage/sddr09.c | 0 drivers/usb/{class => }/storage/sddr09.h | 0 .../usb/{class => }/storage/shuttle_usbat.c | 0 .../usb/{class => }/storage/shuttle_usbat.h | 0 drivers/usb/{class => }/storage/transport.c | 0 drivers/usb/{class => }/storage/transport.h | 0 .../usb/{class => }/storage/unusual_devs.h | 0 drivers/usb/{class => }/storage/usb.c | 0 drivers/usb/{class => }/storage/usb.h | 0 54 files changed, 142 insertions(+), 120 deletions(-) delete mode 100644 drivers/usb/class/storage/Makefile create mode 100644 drivers/usb/input/Config.in create mode 100644 drivers/usb/input/Makefile rename drivers/usb/{class => input}/hid-core.c (100%) rename drivers/usb/{class => input}/hid-debug.h (100%) rename drivers/usb/{class => input}/hid-input.c (100%) rename drivers/usb/{class => input}/hid.h (100%) rename drivers/usb/{class => input}/hiddev.c (100%) rename drivers/usb/{class => input}/usbkbd.c (100%) rename drivers/usb/{class => input}/usbmouse.c (100%) rename drivers/usb/{misc => input}/wacom.c (100%) rename drivers/usb/{misc => media}/dabfirmware.h (100%) rename drivers/usb/{misc => media}/dabusb.c (100%) rename drivers/usb/{misc => media}/dabusb.h (100%) rename drivers/usb/{class => net}/cdc-ether.c (100%) rename drivers/usb/{class => net}/cdc-ether.h (100%) create mode 100644 drivers/usb/storage/Config.in create mode 100644 drivers/usb/storage/Makefile rename drivers/usb/{class => }/storage/datafab.c (100%) rename drivers/usb/{class => }/storage/datafab.h (100%) rename drivers/usb/{class => }/storage/debug.c (100%) rename drivers/usb/{class => }/storage/debug.h (100%) rename drivers/usb/{class => }/storage/dpcm.c (100%) rename drivers/usb/{class => }/storage/dpcm.h (100%) rename drivers/usb/{class => }/storage/freecom.c (100%) rename drivers/usb/{class => }/storage/freecom.h (100%) rename drivers/usb/{class => }/storage/initializers.c (100%) rename drivers/usb/{class => }/storage/initializers.h (100%) rename drivers/usb/{class => }/storage/isd200.c (100%) rename drivers/usb/{class => }/storage/isd200.h (100%) rename drivers/usb/{class => }/storage/jumpshot.c (100%) rename drivers/usb/{class => }/storage/jumpshot.h (100%) rename drivers/usb/{class => }/storage/protocol.c (100%) rename drivers/usb/{class => }/storage/protocol.h (100%) rename drivers/usb/{class => }/storage/scsiglue.c (100%) rename drivers/usb/{class => }/storage/scsiglue.h (100%) rename drivers/usb/{class => }/storage/sddr09.c (100%) rename drivers/usb/{class => }/storage/sddr09.h (100%) rename drivers/usb/{class => }/storage/shuttle_usbat.c (100%) rename drivers/usb/{class => }/storage/shuttle_usbat.h (100%) rename drivers/usb/{class => }/storage/transport.c (100%) rename drivers/usb/{class => }/storage/transport.h (100%) rename drivers/usb/{class => }/storage/unusual_devs.h (100%) rename drivers/usb/{class => }/storage/usb.c (100%) rename drivers/usb/{class => }/storage/usb.h (100%) diff --git a/drivers/usb/Config.in b/drivers/usb/Config.in index 3df1907c5864..f645d9f7e51c 100644 --- a/drivers/usb/Config.in +++ b/drivers/usb/Config.in @@ -12,7 +12,9 @@ if [ "$CONFIG_USB" = "y" -o "$CONFIG_USB" = "m" ]; then source drivers/usb/class/Config.in - dep_tristate ' Wacom Intuos/Graphire tablet support' CONFIG_USB_WACOM $CONFIG_USB $CONFIG_INPUT + source drivers/usb/storage/Config.in + + source drivers/usb/input/Config.in source drivers/usb/image/Config.in @@ -22,24 +24,21 @@ if [ "$CONFIG_USB" = "y" -o "$CONFIG_USB" = "m" ]; then comment 'USB port drivers' dep_tristate ' USS720 parport driver' CONFIG_USB_USS720 $CONFIG_USB $CONFIG_PARPORT + source drivers/usb/serial/Config.in comment 'USB Miscellaneous drivers' dep_tristate ' EMI 2|6 USB Audio interface support' CONFIG_USB_EMI26 $CONFIG_USB_AUDIO - dep_tristate ' USB Diamond Rio500 support (EXPERIMENTAL)' CONFIG_USB_RIO500 $CONFIG_USB $CONFIG_EXPERIMENTAL - dep_tristate ' USB Auerswald ISDN support (EXPERIMENTAL)' CONFIG_USB_AUERSWALD $CONFIG_USB $CONFIG_EXPERIMENTAL dep_tristate ' Texas Instruments Graph Link USB (aka SilverLink) cable support' CONFIG_USB_TIGL $CONFIG_USB - dep_tristate ' DABUSB driver' CONFIG_USB_DABUSB $CONFIG_USB + dep_tristate ' USB Auerswald ISDN support (EXPERIMENTAL)' CONFIG_USB_AUERSWALD $CONFIG_USB $CONFIG_EXPERIMENTAL + dep_tristate ' USB Diamond Rio500 support (EXPERIMENTAL)' CONFIG_USB_RIO500 $CONFIG_USB $CONFIG_EXPERIMENTAL # Turn on CONFIG_USB_MISC if any of the drivers are compiled into the kernel # to make our Makefile logic a bit simpler if [ "$CONFIG_USB_USS720" = "y" -o "$CONFIG_USB_EMI26" = "y" -o "$CONFIG_USB_RIO500" = "y" ]; then define_bool CONFIG_USB_MISC y fi - if [ "$CONFIG_USB_AUERSWALD" = "y" -o "$CONFIG_USB_TIGL" = "y" -o "$CONFIG_USB_DABUSB" = "y" ]; then - define_bool CONFIG_USB_MISC y - fi - if [ "$CONFIG_USB_WACOM" = "y" ]; then + if [ "$CONFIG_USB_AUERSWALD" = "y" -o "$CONFIG_USB_TIGL" = "y" ]; then define_bool CONFIG_USB_MISC y fi diff --git a/drivers/usb/Makefile b/drivers/usb/Makefile index e604711352e3..4da8be9f8759 100644 --- a/drivers/usb/Makefile +++ b/drivers/usb/Makefile @@ -5,7 +5,7 @@ O_TARGET := usbdrv.o # Object files in subdirectories -mod-subdirs := core host class media net serial image misc +mod-subdirs := core host class media net serial storage image misc input subdir-$(CONFIG_USB) += core ifeq ($(CONFIG_USB),y) @@ -14,9 +14,9 @@ endif subdir-$(CONFIG_USB_EHCI_HCD) += host subdir-$(CONFIG_USB_OHCI_HCD) += host -subdir-$(CONFIG_USB_UHCI) += host -subdir-$(CONFIG_USB_UHCI_ALT) += host subdir-$(CONFIG_USB_OHCI) += host +subdir-$(CONFIG_USB_UHCI_ALT) += host +subdir-$(CONFIG_USB_UHCI) += host ifeq ($(CONFIG_USB_HOST),y) obj-y += host/usb-host.o endif @@ -24,45 +24,51 @@ endif subdir-$(CONFIG_USB_ACM) += class subdir-$(CONFIG_USB_AUDIO) += class subdir-$(CONFIG_USB_BLUETOOTH) += class -subdir-$(CONFIG_USB_CDCETHER) += class -subdir-$(CONFIG_USB_HID) += class -subdir-$(CONFIG_USB_KBD) += class -subdir-$(CONFIG_USB_MOUSE) += class subdir-$(CONFIG_USB_PRINTER) += class ifeq ($(CONFIG_USB_CLASS),y) obj-y += class/usb-class.o endif -subdir-$(CONFIG_USB_STORAGE) += class/storage +subdir-$(CONFIG_USB_STORAGE) += storage ifeq ($(CONFIG_USB_STORAGE),y) - obj-y += class/storage/storage.o + obj-y += storage/storage.o endif +subdir-$(CONFIG_USB_HID) += input +subdir-$(CONFIG_USB_KBD) += input +subdir-$(CONFIG_USB_MOUSE) += input +subdir-$(CONFIG_USB_WACOM) += input +ifeq ($(CONFIG_USB_INPUT),y) + obj-y += input/usb-input.o +endif + +subdir-$(CONFIG_USB_DABUSB) += media +subdir-$(CONFIG_USB_DSBR) += media subdir-$(CONFIG_USB_IBMCAM) += media subdir-$(CONFIG_USB_KONICAWC) += media -subdir-$(CONFIG_USB_PWC) += media -subdir-$(CONFIG_USB_VICAM) += media subdir-$(CONFIG_USB_OV511) += media +subdir-$(CONFIG_USB_PWC) += media subdir-$(CONFIG_USB_SE401) += media subdir-$(CONFIG_USB_STV680) += media -subdir-$(CONFIG_USB_DSBR) += media +subdir-$(CONFIG_USB_VICAM) += media ifeq ($(CONFIG_USB_MEDIA),y) obj-y += media/usb-media.o endif -subdir-$(CONFIG_USB_PEGASUS) += net -subdir-$(CONFIG_USB_RTL8150) += net subdir-$(CONFIG_USB_CATC) += net +subdir-$(CONFIG_USB_CDCETHER) += net subdir-$(CONFIG_USB_KAWETH) += net +subdir-$(CONFIG_USB_PEGASUS) += net +subdir-$(CONFIG_USB_RTL8150) += net subdir-$(CONFIG_USB_USBNET) += net ifeq ($(CONFIG_USB_NET),y) obj-y += net/usb-net.o endif subdir-$(CONFIG_USB_DC2XX) += image +subdir-$(CONFIG_USB_HPUSBSCSI) += image subdir-$(CONFIG_USB_MDC800) += image subdir-$(CONFIG_USB_MICROTEK) += image -subdir-$(CONFIG_USB_HPUSBSCSI) += image subdir-$(CONFIG_USB_SCANNER) += image ifeq ($(CONFIG_USB_IMAGE),y) obj-y += image/usb-image.o @@ -74,12 +80,10 @@ ifeq ($(CONFIG_USB_SERIAL),y) endif subdir-$(CONFIG_USB_AUERSWALD) += misc -subdir-$(CONFIG_USB_DABUSB) += misc subdir-$(CONFIG_USB_EMI26) += misc subdir-$(CONFIG_USB_RIO500) += misc subdir-$(CONFIG_USB_TIGL) += misc subdir-$(CONFIG_USB_USS720) += misc -subdir-$(CONFIG_USB_WACOM) += misc ifeq ($(CONFIG_USB_MISC),y) obj-y += misc/usb-misc.o endif diff --git a/drivers/usb/class/Config.in b/drivers/usb/class/Config.in index 4f607b443e8e..94fedd1f9c30 100644 --- a/drivers/usb/class/Config.in +++ b/drivers/usb/class/Config.in @@ -4,44 +4,16 @@ comment 'USB Device Class drivers' dep_tristate ' USB Audio support' CONFIG_USB_AUDIO $CONFIG_USB $CONFIG_SOUND dep_tristate ' USB Bluetooth support (EXPERIMENTAL)' CONFIG_USB_BLUETOOTH $CONFIG_USB $CONFIG_EXPERIMENTAL -if [ "$CONFIG_SCSI" = "n" ]; then - comment ' SCSI support is needed for USB Storage' -fi -dep_tristate ' USB Mass Storage support' CONFIG_USB_STORAGE $CONFIG_USB $CONFIG_SCSI - dep_mbool ' USB Mass Storage verbose debug' CONFIG_USB_STORAGE_DEBUG $CONFIG_USB_STORAGE - dep_mbool ' Datafab MDCFE-B Compact Flash Reader support' CONFIG_USB_STORAGE_DATAFAB $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL - dep_mbool ' Freecom USB/ATAPI Bridge support' CONFIG_USB_STORAGE_FREECOM $CONFIG_USB_STORAGE - dep_mbool ' ISD-200 USB/ATA Bridge support' CONFIG_USB_STORAGE_ISD200 $CONFIG_USB_STORAGE - dep_mbool ' Microtech CompactFlash/SmartMedia support' CONFIG_USB_STORAGE_DPCM $CONFIG_USB_STORAGE - dep_mbool ' HP CD-Writer 82xx support' CONFIG_USB_STORAGE_HP8200e $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL - dep_mbool ' SanDisk SDDR-09 (and other SmartMedia) support' CONFIG_USB_STORAGE_SDDR09 $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL - dep_mbool ' Lexar Jumpshot Compact Flash Reader' CONFIG_USB_STORAGE_JUMPSHOT $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL - dep_tristate ' USB Modem (CDC ACM) support' CONFIG_USB_ACM $CONFIG_USB - dep_tristate ' USB CDC Ethernet support (EXPERIMENTAL)' CONFIG_USB_CDCETHER $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL - dep_tristate ' USB Printer support' CONFIG_USB_PRINTER $CONFIG_USB - -comment 'USB Human Interface Devices (HID)' -dep_tristate ' USB Human Interface Device (full HID) support' CONFIG_USB_HID $CONFIG_USB -if [ "$CONFIG_INPUT" = "n" ]; then - comment ' Input core support is needed for USB HID input layer or HIDBP support' -fi -dep_mbool ' HID input layer support' CONFIG_USB_HIDINPUT $CONFIG_INPUT $CONFIG_USB_HID -dep_mbool ' /dev/hiddev raw HID device support' CONFIG_USB_HIDDEV $CONFIG_USB_HID +dep_tristate ' USB Modem (CDC ACM) support' CONFIG_USB_ACM $CONFIG_USB +dep_tristate ' USB Printer support' CONFIG_USB_PRINTER $CONFIG_USB -if [ "$CONFIG_USB_HID" != "y" ]; then - dep_tristate ' USB HIDBP Keyboard (basic) support' CONFIG_USB_KBD $CONFIG_USB $CONFIG_INPUT - dep_tristate ' USB HIDBP Mouse (basic) support' CONFIG_USB_MOUSE $CONFIG_USB $CONFIG_INPUT -fi # Turn on CONFIG_USB_CLASS if any of the drivers are compiled into the kernel # to make our Makefile logic a bit simpler. -if [ "$CONFIG_USB_AUDIO" = "y" -o "$CONFIG_USB_BLUETOOTH" = "y" -o "$CONFIG_USB_ACM" = "y" ]; then - define_bool CONFIG_USB_CLASS y -fi -if [ "$CONFIG_USB_CDCETHER" = "y" -o "$CONFIG_USB_PRINTER" = "y" ]; then +if [ "$CONFIG_USB_AUDIO" = "y" -o "$CONFIG_USB_BLUETOOTH" = "y" ]; then define_bool CONFIG_USB_CLASS y fi -if [ "$CONFIG_USB_HID" = "y" -o "$CONFIG_USB_KBD" = "y" -o "$CONFIG_USB_MOUSE" = "y" ]; then +if [ "$CONFIG_USB_ACM" = "y" -o "$CONFIG_USB_PRINTER" = "y" ]; then define_bool CONFIG_USB_CLASS y fi diff --git a/drivers/usb/class/Makefile b/drivers/usb/class/Makefile index da255cfc23fd..53443b76f9ef 100644 --- a/drivers/usb/class/Makefile +++ b/drivers/usb/class/Makefile @@ -1,28 +1,13 @@ # # Makefile for USB Class drivers +# (one step up from the misc category) # O_TARGET := usb-class.o -# Multipart objects. -hid-objs := hid-core.o - -# Optional parts of multipart objects. -ifeq ($(CONFIG_USB_HIDDEV),y) - hid-objs += hiddev.o -endif -ifeq ($(CONFIG_USB_HIDINPUT),y) - hid-objs += hid-input.o -endif - - obj-$(CONFIG_USB_ACM) += cdc-acm.o obj-$(CONFIG_USB_AUDIO) += audio.o obj-$(CONFIG_USB_BLUETOOTH) += bluetooth.o -obj-$(CONFIG_USB_CDCETHER) += cdc-ether.o -obj-$(CONFIG_USB_HID) += hid.o -obj-$(CONFIG_USB_KBD) += usbkbd.o -obj-$(CONFIG_USB_MOUSE) += usbmouse.o obj-$(CONFIG_USB_PRINTER) += printer.o diff --git a/drivers/usb/class/storage/Makefile b/drivers/usb/class/storage/Makefile deleted file mode 100644 index 0181d2e727ca..000000000000 --- a/drivers/usb/class/storage/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -# -# Makefile for the USB Mass Storage device drivers. -# -# 15 Aug 2000, Christoph Hellwig -# Rewritten to use lists instead of if-statements. -# - -O_TARGET := storage.o -EXTRA_CFLAGS := -I../../../scsi/ - -list-multi := usb-storage.o - -obj-$(CONFIG_USB_STORAGE) += usb-storage.o - -usb-storage-obj-$(CONFIG_USB_STORAGE_DEBUG) += debug.o -usb-storage-obj-$(CONFIG_USB_STORAGE_HP8200e) += shuttle_usbat.o -usb-storage-obj-$(CONFIG_USB_STORAGE_SDDR09) += sddr09.o -usb-storage-obj-$(CONFIG_USB_STORAGE_FREECOM) += freecom.o -usb-storage-obj-$(CONFIG_USB_STORAGE_SHUTTLE_SMARTMEDIA) += shuttle_sm.o -usb-storage-obj-$(CONFIG_USB_STORAGE_SHUTTLE_COMPACTFLASH) += shuttle_cf.o -usb-storage-obj-$(CONFIG_USB_STORAGE_DPCM) += dpcm.o -usb-storage-obj-$(CONFIG_USB_STORAGE_ISD200) += isd200.o -usb-storage-obj-$(CONFIG_USB_STORAGE_DATAFAB) += datafab.o -usb-storage-obj-$(CONFIG_USB_STORAGE_JUMPSHOT) += jumpshot.o - -usb-storage-objs := scsiglue.o protocol.o transport.o usb.o \ - initializers.o $(usb-storage-obj-y) - -include $(TOPDIR)/Rules.make - -usb-storage.o: $(usb-storage-objs) - $(LD) -r -o $@ $(usb-storage-objs) diff --git a/drivers/usb/input/Config.in b/drivers/usb/input/Config.in new file mode 100644 index 000000000000..67367dec98b6 --- /dev/null +++ b/drivers/usb/input/Config.in @@ -0,0 +1,27 @@ +# +# USB Input driver configuration +# +comment 'USB Human Interface Devices (HID)' +dep_tristate ' USB Human Interface Device (full HID) support' CONFIG_USB_HID $CONFIG_USB +if [ "$CONFIG_INPUT" = "n" ]; then + comment ' Input core support is needed for USB HID input layer or HIDBP support' +fi +dep_mbool ' HID input layer support' CONFIG_USB_HIDINPUT $CONFIG_INPUT $CONFIG_USB_HID +dep_mbool ' /dev/hiddev raw HID device support' CONFIG_USB_HIDDEV $CONFIG_USB_HID + +if [ "$CONFIG_USB_HID" != "y" ]; then + dep_tristate ' USB HIDBP Keyboard (basic) support' CONFIG_USB_KBD $CONFIG_USB $CONFIG_INPUT + dep_tristate ' USB HIDBP Mouse (basic) support' CONFIG_USB_MOUSE $CONFIG_USB $CONFIG_INPUT +fi + +dep_tristate ' Wacom Intuos/Graphire tablet support' CONFIG_USB_WACOM $CONFIG_USB $CONFIG_INPUT + +# Turn on CONFIG_USB_INPUT if any of the drivers are compiled into the kernel +# to make our Makefile logic a bit simpler. +if [ "$CONFIG_USB_HID" = "y" -o "$CONFIG_USB_KBD" = "y" -o "$CONFIG_USB_MOUSE" = "y" ]; then + define_bool CONFIG_USB_INPUT y +fi +if [ "$CONFIG_USB_WACOM" = "y" ]; then + define_bool CONFIG_USB_INPUT y +fi + diff --git a/drivers/usb/input/Makefile b/drivers/usb/input/Makefile new file mode 100644 index 000000000000..ae662a4d44dc --- /dev/null +++ b/drivers/usb/input/Makefile @@ -0,0 +1,24 @@ +# +# Makefile for the USB input drivers +# + +O_TARGET := usb-input.o + +# Multipart objects. +hid-objs := hid-core.o + +# Optional parts of multipart objects. +ifeq ($(CONFIG_USB_HIDDEV),y) + hid-objs += hiddev.o +endif +ifeq ($(CONFIG_USB_HIDINPUT),y) + hid-objs += hid-input.o +endif + +obj-$(CONFIG_USB_HID) += hid.o +obj-$(CONFIG_USB_KBD) += usbkbd.o +obj-$(CONFIG_USB_MOUSE) += usbmouse.o +obj-$(CONFIG_USB_WACOM) += wacom.o + + +include $(TOPDIR)/Rules.make diff --git a/drivers/usb/class/hid-core.c b/drivers/usb/input/hid-core.c similarity index 100% rename from drivers/usb/class/hid-core.c rename to drivers/usb/input/hid-core.c diff --git a/drivers/usb/class/hid-debug.h b/drivers/usb/input/hid-debug.h similarity index 100% rename from drivers/usb/class/hid-debug.h rename to drivers/usb/input/hid-debug.h diff --git a/drivers/usb/class/hid-input.c b/drivers/usb/input/hid-input.c similarity index 100% rename from drivers/usb/class/hid-input.c rename to drivers/usb/input/hid-input.c diff --git a/drivers/usb/class/hid.h b/drivers/usb/input/hid.h similarity index 100% rename from drivers/usb/class/hid.h rename to drivers/usb/input/hid.h diff --git a/drivers/usb/class/hiddev.c b/drivers/usb/input/hiddev.c similarity index 100% rename from drivers/usb/class/hiddev.c rename to drivers/usb/input/hiddev.c diff --git a/drivers/usb/class/usbkbd.c b/drivers/usb/input/usbkbd.c similarity index 100% rename from drivers/usb/class/usbkbd.c rename to drivers/usb/input/usbkbd.c diff --git a/drivers/usb/class/usbmouse.c b/drivers/usb/input/usbmouse.c similarity index 100% rename from drivers/usb/class/usbmouse.c rename to drivers/usb/input/usbmouse.c diff --git a/drivers/usb/misc/wacom.c b/drivers/usb/input/wacom.c similarity index 100% rename from drivers/usb/misc/wacom.c rename to drivers/usb/input/wacom.c diff --git a/drivers/usb/media/Config.in b/drivers/usb/media/Config.in index bc295d7a740b..7e724ba62def 100644 --- a/drivers/usb/media/Config.in +++ b/drivers/usb/media/Config.in @@ -2,18 +2,18 @@ # USB Multimedia device configuration # comment 'USB Multimedia devices' +dep_tristate ' DABUSB driver' CONFIG_USB_DABUSB $CONFIG_USB if [ "$CONFIG_VIDEO_DEV" = "n" ]; then comment ' Video4Linux support is needed for USB Multimedia device support' -else - dep_tristate ' USB IBM (Xirlink) C-it Camera support' CONFIG_USB_IBMCAM $CONFIG_USB $CONFIG_VIDEO_DEV - dep_tristate ' USB OV511 Camera support' CONFIG_USB_OV511 $CONFIG_USB $CONFIG_VIDEO_DEV - dep_tristate ' USB Philips Cameras' CONFIG_USB_PWC $CONFIG_USB $CONFIG_VIDEO_DEV - dep_tristate ' USB SE401 Camera support' CONFIG_USB_SE401 $CONFIG_USB $CONFIG_VIDEO_DEV - dep_tristate ' USB STV680 (Pencam) Camera support' CONFIG_USB_STV680 $CONFIG_USB $CONFIG_VIDEO_DEV - dep_tristate ' USB 3com HomeConnect (aka vicam) support (EXPERIMENTAL)' CONFIG_USB_VICAM $CONFIG_USB $CONFIG_VIDEO_DEV $CONFIG_EXPERIMENTAL - dep_tristate ' D-Link USB FM radio support (EXPERIMENTAL)' CONFIG_USB_DSBR $CONFIG_USB $CONFIG_VIDEO_DEV $CONFIG_EXPERIMENTAL - dep_tristate ' USB Konica Webcam support' CONFIG_USB_KONICAWC $CONFIG_USB $CONFIG_VIDEO_DEV fi +dep_tristate ' USB 3com HomeConnect (aka vicam) support (EXPERIMENTAL)' CONFIG_USB_VICAM $CONFIG_USB $CONFIG_VIDEO_DEV $CONFIG_EXPERIMENTAL +dep_tristate ' D-Link USB FM radio support (EXPERIMENTAL)' CONFIG_USB_DSBR $CONFIG_USB $CONFIG_VIDEO_DEV $CONFIG_EXPERIMENTAL +dep_tristate ' USB IBM (Xirlink) C-it Camera support' CONFIG_USB_IBMCAM $CONFIG_USB $CONFIG_VIDEO_DEV +dep_tristate ' USB Konica Webcam support' CONFIG_USB_KONICAWC $CONFIG_USB $CONFIG_VIDEO_DEV +dep_tristate ' USB OV511 Camera support' CONFIG_USB_OV511 $CONFIG_USB $CONFIG_VIDEO_DEV +dep_tristate ' USB Philips Cameras' CONFIG_USB_PWC $CONFIG_USB $CONFIG_VIDEO_DEV +dep_tristate ' USB SE401 Camera support' CONFIG_USB_SE401 $CONFIG_USB $CONFIG_VIDEO_DEV +dep_tristate ' USB STV680 (Pencam) Camera support' CONFIG_USB_STV680 $CONFIG_USB $CONFIG_VIDEO_DEV # Turn on CONFIG_USB_MEDIA if any of the drivers are compiled into the kernel # to make our Makefile logic a bit simpler @@ -23,7 +23,7 @@ fi if [ "$CONFIG_USB_SE401" = "y" -o "$CONFIG_USB_STV680" = "y" -o "$CONFIG_USB_VICAM" = "y" ]; then define_bool CONFIG_USB_MEDIA y fi -if [ "$CONFIG_USB_DSBR" = "y" -o "$CONFIG_USB_KONICAWC" = "y" ]; then +if [ "$CONFIG_USB_DSBR" = "y" -o "$CONFIG_USB_KONICAWC" = "y" -o "$CONFIG_USB_DABUSB" = "y" ]; then define_bool CONFIG_USB_MEDIA y fi diff --git a/drivers/usb/media/Makefile b/drivers/usb/media/Makefile index 836d566dda91..0e655532e694 100644 --- a/drivers/usb/media/Makefile +++ b/drivers/usb/media/Makefile @@ -8,6 +8,7 @@ export-objs := ov511.o pwc-uncompress.o pwc-objs := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-uncompress.o +obj-$(CONFIG_USB_DABUSB) += dabusb.o obj-$(CONFIG_USB_DSBR) += dsbr100.o obj-$(CONFIG_USB_IBMCAM) += ibmcam.o usbvideo.o ultracam.o obj-$(CONFIG_USB_KONICAWC) += konicawc.o usbvideo.o diff --git a/drivers/usb/misc/dabfirmware.h b/drivers/usb/media/dabfirmware.h similarity index 100% rename from drivers/usb/misc/dabfirmware.h rename to drivers/usb/media/dabfirmware.h diff --git a/drivers/usb/misc/dabusb.c b/drivers/usb/media/dabusb.c similarity index 100% rename from drivers/usb/misc/dabusb.c rename to drivers/usb/media/dabusb.c diff --git a/drivers/usb/misc/dabusb.h b/drivers/usb/media/dabusb.h similarity index 100% rename from drivers/usb/misc/dabusb.h rename to drivers/usb/media/dabusb.h diff --git a/drivers/usb/misc/Makefile b/drivers/usb/misc/Makefile index 19086bb18429..1eeab1db17f9 100644 --- a/drivers/usb/misc/Makefile +++ b/drivers/usb/misc/Makefile @@ -6,11 +6,9 @@ O_TARGET := usb-misc.o obj-$(CONFIG_USB_AUERSWALD) += auerswald.o -obj-$(CONFIG_USB_DABUSB) += dabusb.o obj-$(CONFIG_USB_EMI26) += emi26.o obj-$(CONFIG_USB_RIO500) += rio500.o obj-$(CONFIG_USB_TIGL) += tiglusb.o obj-$(CONFIG_USB_USS720) += uss720.o -obj-$(CONFIG_USB_WACOM) += wacom.o include $(TOPDIR)/Rules.make diff --git a/drivers/usb/net/Config.in b/drivers/usb/net/Config.in index 0d887a1295b2..eb5d55b4444b 100644 --- a/drivers/usb/net/Config.in +++ b/drivers/usb/net/Config.in @@ -5,10 +5,11 @@ comment 'USB Network adaptors' if [ "$CONFIG_NET" = "n" ]; then comment ' Networking support is needed for USB Networking device support' else + dep_tristate ' USB CATC NetMate-based Ethernet device support (EXPERIMENTAL)' CONFIG_USB_CATC $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL + dep_tristate ' USB CDC Ethernet support (EXPERIMENTAL)' CONFIG_USB_CDCETHER $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL + dep_tristate ' USB KLSI KL5USB101-based ethernet device support (EXPERIMENTAL)' CONFIG_USB_KAWETH $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL dep_tristate ' USB Pegasus/Pegasus-II based ethernet device support (EXPERIMENTAL)' CONFIG_USB_PEGASUS $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL dep_tristate ' USB RTL8150 based ethernet device support (EXPERIMENTAL)' CONFIG_USB_RTL8150 $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL - dep_tristate ' USB KLSI KL5USB101-based ethernet device support (EXPERIMENTAL)' CONFIG_USB_KAWETH $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL - dep_tristate ' USB CATC NetMate-based Ethernet device support (EXPERIMENTAL)' CONFIG_USB_CATC $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL dep_tristate ' USB-to-USB Networking cable device support (EXPERIMENTAL)' CONFIG_USB_USBNET $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL fi @@ -17,7 +18,7 @@ fi if [ "$CONFIG_USB_PEGASUS" = "y" -o "$CONFIG_USB_RTL8150" = "y" -o "$CONFIG_USB_KAWETH" = "y" ]; then define_bool CONFIG_USB_NET y fi -if [ "$CONFIG_USB_CATC" = "y" -o "$CONFIG_USB_USBNET" = "y" ]; then +if [ "$CONFIG_USB_CATC" = "y" -o "$CONFIG_USB_USBNET" = "y" -o "$CONFIG_USB_CDCETHER" = "y" ]; then define_bool CONFIG_USB_NET y fi diff --git a/drivers/usb/net/Makefile b/drivers/usb/net/Makefile index 53fc4f22b251..019a31203ea7 100644 --- a/drivers/usb/net/Makefile +++ b/drivers/usb/net/Makefile @@ -5,6 +5,7 @@ O_TARGET := usb-net.o obj-$(CONFIG_USB_CATC) += catc.o +obj-$(CONFIG_USB_CDCETHER) += cdc-ether.o obj-$(CONFIG_USB_KAWETH) += kaweth.o obj-$(CONFIG_USB_PEGASUS) += pegasus.o obj-$(CONFIG_USB_RTL8150) += rtl8150.o diff --git a/drivers/usb/class/cdc-ether.c b/drivers/usb/net/cdc-ether.c similarity index 100% rename from drivers/usb/class/cdc-ether.c rename to drivers/usb/net/cdc-ether.c diff --git a/drivers/usb/class/cdc-ether.h b/drivers/usb/net/cdc-ether.h similarity index 100% rename from drivers/usb/class/cdc-ether.h rename to drivers/usb/net/cdc-ether.h diff --git a/drivers/usb/storage/Config.in b/drivers/usb/storage/Config.in new file mode 100644 index 000000000000..6668bad1446d --- /dev/null +++ b/drivers/usb/storage/Config.in @@ -0,0 +1,15 @@ +# +# USB Storage driver configuration +# +if [ "$CONFIG_SCSI" = "n" ]; then + comment ' SCSI support is needed for USB Storage' +fi +dep_tristate ' USB Mass Storage support' CONFIG_USB_STORAGE $CONFIG_USB $CONFIG_SCSI + dep_mbool ' USB Mass Storage verbose debug' CONFIG_USB_STORAGE_DEBUG $CONFIG_USB_STORAGE + dep_mbool ' Datafab MDCFE-B Compact Flash Reader support' CONFIG_USB_STORAGE_DATAFAB $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL + dep_mbool ' Freecom USB/ATAPI Bridge support' CONFIG_USB_STORAGE_FREECOM $CONFIG_USB_STORAGE + dep_mbool ' ISD-200 USB/ATA Bridge support' CONFIG_USB_STORAGE_ISD200 $CONFIG_USB_STORAGE + dep_mbool ' Microtech CompactFlash/SmartMedia support' CONFIG_USB_STORAGE_DPCM $CONFIG_USB_STORAGE + dep_mbool ' HP CD-Writer 82xx support' CONFIG_USB_STORAGE_HP8200e $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL + dep_mbool ' SanDisk SDDR-09 (and other SmartMedia) support' CONFIG_USB_STORAGE_SDDR09 $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL + dep_mbool ' Lexar Jumpshot Compact Flash Reader' CONFIG_USB_STORAGE_JUMPSHOT $CONFIG_USB_STORAGE $CONFIG_EXPERIMENTAL diff --git a/drivers/usb/storage/Makefile b/drivers/usb/storage/Makefile new file mode 100644 index 000000000000..18e64e83b174 --- /dev/null +++ b/drivers/usb/storage/Makefile @@ -0,0 +1,27 @@ +# +# Makefile for the USB Mass Storage device drivers. +# +# 15 Aug 2000, Christoph Hellwig +# Rewritten to use lists instead of if-statements. +# + +O_TARGET := storage.o +EXTRA_CFLAGS := -I../../scsi/ + +obj-$(CONFIG_USB_STORAGE) += usb-storage.o + +usb-storage-obj-$(CONFIG_USB_STORAGE_DEBUG) += debug.o +usb-storage-obj-$(CONFIG_USB_STORAGE_HP8200e) += shuttle_usbat.o +usb-storage-obj-$(CONFIG_USB_STORAGE_SDDR09) += sddr09.o +usb-storage-obj-$(CONFIG_USB_STORAGE_FREECOM) += freecom.o +usb-storage-obj-$(CONFIG_USB_STORAGE_SHUTTLE_SMARTMEDIA) += shuttle_sm.o +usb-storage-obj-$(CONFIG_USB_STORAGE_SHUTTLE_COMPACTFLASH) += shuttle_cf.o +usb-storage-obj-$(CONFIG_USB_STORAGE_DPCM) += dpcm.o +usb-storage-obj-$(CONFIG_USB_STORAGE_ISD200) += isd200.o +usb-storage-obj-$(CONFIG_USB_STORAGE_DATAFAB) += datafab.o +usb-storage-obj-$(CONFIG_USB_STORAGE_JUMPSHOT) += jumpshot.o + +usb-storage-objs := scsiglue.o protocol.o transport.o usb.o \ + initializers.o $(usb-storage-obj-y) + +include $(TOPDIR)/Rules.make diff --git a/drivers/usb/class/storage/datafab.c b/drivers/usb/storage/datafab.c similarity index 100% rename from drivers/usb/class/storage/datafab.c rename to drivers/usb/storage/datafab.c diff --git a/drivers/usb/class/storage/datafab.h b/drivers/usb/storage/datafab.h similarity index 100% rename from drivers/usb/class/storage/datafab.h rename to drivers/usb/storage/datafab.h diff --git a/drivers/usb/class/storage/debug.c b/drivers/usb/storage/debug.c similarity index 100% rename from drivers/usb/class/storage/debug.c rename to drivers/usb/storage/debug.c diff --git a/drivers/usb/class/storage/debug.h b/drivers/usb/storage/debug.h similarity index 100% rename from drivers/usb/class/storage/debug.h rename to drivers/usb/storage/debug.h diff --git a/drivers/usb/class/storage/dpcm.c b/drivers/usb/storage/dpcm.c similarity index 100% rename from drivers/usb/class/storage/dpcm.c rename to drivers/usb/storage/dpcm.c diff --git a/drivers/usb/class/storage/dpcm.h b/drivers/usb/storage/dpcm.h similarity index 100% rename from drivers/usb/class/storage/dpcm.h rename to drivers/usb/storage/dpcm.h diff --git a/drivers/usb/class/storage/freecom.c b/drivers/usb/storage/freecom.c similarity index 100% rename from drivers/usb/class/storage/freecom.c rename to drivers/usb/storage/freecom.c diff --git a/drivers/usb/class/storage/freecom.h b/drivers/usb/storage/freecom.h similarity index 100% rename from drivers/usb/class/storage/freecom.h rename to drivers/usb/storage/freecom.h diff --git a/drivers/usb/class/storage/initializers.c b/drivers/usb/storage/initializers.c similarity index 100% rename from drivers/usb/class/storage/initializers.c rename to drivers/usb/storage/initializers.c diff --git a/drivers/usb/class/storage/initializers.h b/drivers/usb/storage/initializers.h similarity index 100% rename from drivers/usb/class/storage/initializers.h rename to drivers/usb/storage/initializers.h diff --git a/drivers/usb/class/storage/isd200.c b/drivers/usb/storage/isd200.c similarity index 100% rename from drivers/usb/class/storage/isd200.c rename to drivers/usb/storage/isd200.c diff --git a/drivers/usb/class/storage/isd200.h b/drivers/usb/storage/isd200.h similarity index 100% rename from drivers/usb/class/storage/isd200.h rename to drivers/usb/storage/isd200.h diff --git a/drivers/usb/class/storage/jumpshot.c b/drivers/usb/storage/jumpshot.c similarity index 100% rename from drivers/usb/class/storage/jumpshot.c rename to drivers/usb/storage/jumpshot.c diff --git a/drivers/usb/class/storage/jumpshot.h b/drivers/usb/storage/jumpshot.h similarity index 100% rename from drivers/usb/class/storage/jumpshot.h rename to drivers/usb/storage/jumpshot.h diff --git a/drivers/usb/class/storage/protocol.c b/drivers/usb/storage/protocol.c similarity index 100% rename from drivers/usb/class/storage/protocol.c rename to drivers/usb/storage/protocol.c diff --git a/drivers/usb/class/storage/protocol.h b/drivers/usb/storage/protocol.h similarity index 100% rename from drivers/usb/class/storage/protocol.h rename to drivers/usb/storage/protocol.h diff --git a/drivers/usb/class/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c similarity index 100% rename from drivers/usb/class/storage/scsiglue.c rename to drivers/usb/storage/scsiglue.c diff --git a/drivers/usb/class/storage/scsiglue.h b/drivers/usb/storage/scsiglue.h similarity index 100% rename from drivers/usb/class/storage/scsiglue.h rename to drivers/usb/storage/scsiglue.h diff --git a/drivers/usb/class/storage/sddr09.c b/drivers/usb/storage/sddr09.c similarity index 100% rename from drivers/usb/class/storage/sddr09.c rename to drivers/usb/storage/sddr09.c diff --git a/drivers/usb/class/storage/sddr09.h b/drivers/usb/storage/sddr09.h similarity index 100% rename from drivers/usb/class/storage/sddr09.h rename to drivers/usb/storage/sddr09.h diff --git a/drivers/usb/class/storage/shuttle_usbat.c b/drivers/usb/storage/shuttle_usbat.c similarity index 100% rename from drivers/usb/class/storage/shuttle_usbat.c rename to drivers/usb/storage/shuttle_usbat.c diff --git a/drivers/usb/class/storage/shuttle_usbat.h b/drivers/usb/storage/shuttle_usbat.h similarity index 100% rename from drivers/usb/class/storage/shuttle_usbat.h rename to drivers/usb/storage/shuttle_usbat.h diff --git a/drivers/usb/class/storage/transport.c b/drivers/usb/storage/transport.c similarity index 100% rename from drivers/usb/class/storage/transport.c rename to drivers/usb/storage/transport.c diff --git a/drivers/usb/class/storage/transport.h b/drivers/usb/storage/transport.h similarity index 100% rename from drivers/usb/class/storage/transport.h rename to drivers/usb/storage/transport.h diff --git a/drivers/usb/class/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h similarity index 100% rename from drivers/usb/class/storage/unusual_devs.h rename to drivers/usb/storage/unusual_devs.h diff --git a/drivers/usb/class/storage/usb.c b/drivers/usb/storage/usb.c similarity index 100% rename from drivers/usb/class/storage/usb.c rename to drivers/usb/storage/usb.c diff --git a/drivers/usb/class/storage/usb.h b/drivers/usb/storage/usb.h similarity index 100% rename from drivers/usb/class/storage/usb.h rename to drivers/usb/storage/usb.h -- 2.39.5