One of USB storage drivers analysis

Source: Internet
Author: User
Tags kingston technology

/drivers/usb/storage/makefile

#
# Makefile for the USB Mass Storage device drivers.
#
# Christoph Hellwig <[email protected]>
# rewritten to use lists instead of if-statements.
#

Ccflags-y: =-idrivers/scsi

obj-$ (config_usb_uas) + = UAS.O
obj-$ (config_usb_storage) + = USB-STORAGE.O

Take a good look at the following price-related documents start

Usb-storage-y: = scsiglue.o PROTOCOL.O transport.o usb.o
Usb-storage-y + = INITIALIZERS.O sierra_ms.o option_ms.o

usb-storage-$ (config_usb_storage_debug) + = DEBUG.O

Ifeq ($ (config_usb_libusual),)
usb-storage-y+= USUAL-TABLES.O
Else
obj-$ (CONFIG_USB) + = USB-LIBUSUAL.O
usb-libusual-y:= LIBUSUAL.O USUAL-TABLES.O
endif

obj-$ (Config_usb_storage_alauda) + = UMS-ALAUDA.O
obj-$ (CONFIG_USB_STORAGE_CYPRESS_ATACB) + = UMS-CYPRESS.O
obj-$ (config_usb_storage_datafab) + = UMS-DATAFAB.O
obj-$ (config_usb_storage_ene_ub6250) + = UMS-ENEUB6250.O
obj-$ (config_usb_storage_freecom) + = UMS-FREECOM.O
obj-$ (config_usb_storage_isd200) + = UMS-ISD200.O
obj-$ (config_usb_storage_jumpshot) + = UMS-JUMPSHOT.O
obj-$ (config_usb_storage_karma) + = UMS-KARMA.O
obj-$ (config_usb_storage_onetouch) + = UMS-ONETOUCH.O
obj-$ (Config_usb_storage_realtek) + = UMS-REALTEK.O
obj-$ (config_usb_storage_sddr09) + = UMS-SDDR09.O
obj-$ (config_usb_storage_sddr55) + = UMS-SDDR55.O
obj-$ (config_usb_storage_usbat) + = UMS-USBAT.O

ums-alauda-y:= ALAUDA.O
ums-cypress-y:= CYPRESS_ATACB.O
ums-datafab-y:= DATAFAB.O
ums-eneub6250-y:= ENE_UB6250.O
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
ums-realtek-y:= REALTEK_CR.O
ums-sddr09-y:= SDDR09.O
ums-sddr55-y:= SDDR55.O
ums-usbat-y:= SHUTTLE_USBAT.O

/drivers/usb/storage/kconfig

#
# USB Storage Driver Configuration
#

Comment "Note:usb_storage depends on SCSI and BLK_DEV_SD may"
Comment "also be needed; See Usb_storage to more Info "
Depends on USB

Config Usb_storage
TriState "USB Mass Storage Support"
Depends on USB && SCSI
---help---
Say Y want to connect USB mass storage devices to your
Computer ' s USB port. The driver need for USB
Floppy drives, USB hard disks, USB tape drives, USB CD-ROMs,
USB Flash devices, and memory sticks, along with
Similar devices. This driver may also is used for some cameras
and card readers.

This option depends the ' SCSI ' support being enabled.
Probably also need ' SCSI device SUPPORT:SCSI disk support '
(BLK_DEV_SD) for most USB storage devices.

To compile this driver as a module, choose M here:the
Module would be called Usb-storage.

Config Usb_storage_debug
BOOL "USB Mass Storage verbose Debug"
Depends on Usb_storage
Help
Say Y here on order to has the USB Mass Storage code generate
Verbose debugging messages.

Config Usb_storage_realtek
TriState "Realtek Card Reader Support"
Depends on Usb_storage
Help
Say Y here to include additional code to support the Power-saving function
For Realtek rts51xx USB card readers.

If This driver is compiled as a module, it'll be named Ums-realtek.


Config Usb_storage_datafab
TriState "Datafab Compact Flash Reader Support"
Depends on Usb_storage
Help
Support for certain Datafab CompactFlash readers.
Datafab have a Web page at

If This driver is compiled as a module, it'll be named Ums-datafab.

Config usb_storage_freecom
TriState "freecom Usb/atapi Bridge Support"
Depends on Usb_storage
Help
The freecom USB to Ide/atapi adaptor.
Freecom have a Web page at

If This driver is compiled as a module, it'll be named Ums-freecom.

Config usb_storage_isd200
TriState "ISD-200 usb/ata Bridge Support"
Depends on Usb_storage
---help---
Say Y here if your want to use USB Mass Store devices based
On the In-systems Design ISD-200 Usb/ata Bridge.

Some of the products, this chip is:

-Archos Jukebox 6000
-ISD smartcable for Storage
-Taiwan Skymaster cd530u/del-0241 IDE Bridge
-Sony crx10u CD-R/RW Drive
-Cyq ' ve cq8060a CDRW Drive
-Planex EXtreme Drive Rx-25hu usb-ide cable (not model rx-25u)

If This driver is compiled as a module, it'll be named ums-isd200.

Config Usb_storage_usbat
TriState "Usbat/usbat02-based Storage Support"
Depends on Usb_storage
Help
Say Y here to include additional code to support storage devices
Based on the Scm/shuttle usbat/usbat02 processors.

Devices reported to work with this driver include:
-CompactFlash reader included with Kodak DC3800 camera
-Dane-elec zmate CompactFlash Reader
-Delkin Efilm Reader2
-HP 8200e/8210e/8230e cd-writer Plus drives
-I-jam js-50u
-Jessops CompactFlash Jesdcfru BLACK
-Kingston Technology PCREAD-USB/CF
-Maxell UA4 CompactFlash Reader
-Memorex UCF-100
-MicroTech zio! ICS-45 CF2
-RCA LYRA MP3 Portable
-Sandisk imagemate sddr-05b

If This driver is compiled as a module, it'll be named Ums-usbat.

Config usb_storage_sddr09
TriState "SanDisk SDDR-09 (and other SmartMedia, including DPCM) support"
Depends on Usb_storage
Help
Say Y here to include additional code to support the Sandisk SDDR-09
SmartMedia Reader in the USB Mass Storage driver.
Also works for the MicroTech zio! Compactflash/smartmedia Reader.

If This driver is compiled as a module, it'll be named Ums-sddr09.

Config usb_storage_sddr55
TriState "SanDisk SDDR-55 SmartMedia Support"
Depends on Usb_storage
Help
Say Y here to include additional code to support the Sandisk SDDR-55
SmartMedia Reader in the USB Mass Storage driver.

If This driver is compiled as a module, it'll be named Ums-sddr55.

Config Usb_storage_jumpshot
TriState "Lexar jumpshot Compact Flash Reader"
Depends on Usb_storage
Help
Say Y here to include additional code to support the Lexar jumpshot
USB CompactFlash Reader.

If This driver is compiled as a module, it'll be named Ums-jumpshot.

Config Usb_storage_alauda
TriState "Olympus Mausb-10/fuji dpc-r1 Support"
Depends on Usb_storage
Help
Say Y here to include additional code to support the Olympus MAUSB-10
and Fujifilm dpc-r1 USB Card reader/writer devices.

These devices is based on the Alauda chip and support both
XD and SmartMedia cards.

If This driver is compiled as a module, it'll be named Ums-alauda.

Config Usb_storage_onetouch
TriState "Support OneTouch button on Maxtor hard Drives"
Depends on Usb_storage
Depends on Input=y | | Input=usb_storage
Help
Say Y here to include additional code to support the Maxtor OneTouch
USB hard Drive ' s OneTouch button.

This code registers the button on the front of Maxtor OneTouch USB
Hard drive's as an input device. An action can is associated with
This input is keybinding software. (e.g Gnome ' s keyboard short-
Cuts

If This driver is compiled as a module, it'll be named Ums-onetouch.

Config Usb_storage_karma
TriState "Support for Rio Karma music Player"
Depends on Usb_storage
Help
Say Y here to include additional code to support the Rio Karma
USB interface.

This code places the Rio Karma into mass storage mode, enabling
It to is mounted as an ordinary filesystem. Performing an eject
On the resulting SCSI device node returns the Karma to normal
Operation.

If This driver is compiled as a module, it'll be named Ums-karma.

Config USB_STORAGE_CYPRESS_ATACB
TriState "SAT emulation on Cypress usb/ata Bridge with ATACB"
Depends on Usb_storage
---help---
Say Y here if you want the use of the SAT (ATA pass through) on devices based
On the Cypress Usb/ata Bridge supporting ATACB. This would allow you
To use tools to tune and monitor your drive (like Hdparm or smartctl).

If you say no here your device would still work with the standard USB
Mass Storage class.

If This driver is compiled as a module, it'll be named Ums-cypress.

Config usb_storage_ene_ub6250
TriState "USB ENE card reader Support"
Depends on USB && SCSI
Depends on Usb_storage
---help---
Say Y wish to control a ENE SD Card reader.
To use the Sm/ms card, please build Driver/staging/keucr/keucr.ko

This option depends the ' SCSI ' support being enabled.
Probably also need ' SCSI device SUPPORT:SCSI disk support '
(BLK_DEV_SD) for most USB storage devices.

To compile this driver as a module, choose M here:the
Module would be called ums-eneub6250.

Config Usb_uas
TriState "USB attached SCSI"
Depends on USB && SCSI
Help
The USB attached SCSI protocol is supported by some USB
Storage devices. It permits higher performance by supporting
Multiple outstanding commands.

If you don ' t know whether are a UAS device, it's safe to
Say ' Y ' or ' M ' here and the kernel would use the right driver.

If you compile this driver as a module, it'll be named UAS.

Config usb_libusual
BOOL "The shared table of common (or usual) storage devices"
Depends on USB
Help
This module contains a table of common (or usual) devices
For Usb-storage and UB drivers, and allows to switch binding
Of these devices without rebuilding modules.

Typical syntax of/etc/modprobe.conf is:

Options libusual bias= "UB"

If unsure, say N.

One of the USB storage Drivers analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.