applicable to USB flash disks, and the USB flash disk uses a transmission protocol called bulk-only. Devices using this Protocol have only two transmission modes: batch transmission and control transmission, which must be supported by any USB device, it is used to transmit some control information. For example, if I w
double-buffered batch transmission, the purpose is to ensure maximum transmission rate.(3) USB wakeup interrupt (Channel 42): Triggered by a wake-up event in USB suspend mode.Figure 1, USB device block diagram2. Large-page NAND k9f1g08Nand FlashData is read and written in pages, and data is erased in blocks. UnderNANDThe capacity level will alsoNandflashDivided
, here, the usb_class_mass_storage macro is defined in include/Linux/USB/ch9.h, and its value is 8.
Let's take 1,477th rows as an example.
1477 usual_dev (us_ SC _rb, us_pr_cb, usb_us_type_stor ),
Expand this macro, that is, define such a usb_device_id struct variable, its match_flags = struct, and binterfaceclass = usb_class_mass_storage, binterfacesubclass = us_ SC _rb, and binterfaceprotocol = us_pr_cb.
Usb_class_mass_storage does not need to be
that, a usb Mass Storage device must have at least two bulk endpoints, which are obviously required. Undoubtedly, there may be an Interrupt endpoint, which supports the CBI protocol, that is, the Control/Bulk/Interrupt protocol. We have also said that the USB flash drive co
For the entire USB-storage module, the usb_stor_init () function is its start. However, for the USB flash drive, the function that actually drives the USB flash drive starts with the storage_probe () function.
As long as the two parallel lines overlap, it is doomed to start
Bulk Driver Design for USB devices
Introduction
Universal Serial Bus (USB) is a serial interface with automatic configuration and good compatibility. It simplifies the connection between computers and peripherals and is widely accepted by computer peripherals hardware manufacturers. After the USB bus standard is up
will have a different ending. When the birds choose to fasten gold on the wings, it means that it gives up its wings and fly high; choosing cloud-sky fight means giving up the burden of being out of the body.
So here, we need to carefully check the path we have chosen. Obviously, we have already said that for a USB flash drive, spec specifies that it belongs to the Bu
high; choosing cloud-sky fight means giving up the burden of being out of the body.
So here, we need to carefully check the path we have chosen. Obviously, we have already said that for a USB flash drive, spec specifies that it belongs to the bulk-only transmission mode, that is, its US-> protocol is us_pr_bulk. This is just determined in get_device_info. Theref
transmission, control transmission, and batch transmission. Which of the four types of transmission a device can support is the property of the device itself, which is determined during hardware design. For example, a pure USB flash drive must support batch transmission and control transmission. Different transmission requirements have different endpoints, so for a USB
transmission. Which of the four types of transmission a device can support is the property of the device itself, which is determined during hardware design. For example, a pure USB flash drive must support batch transmission and control transmission. Different transmission requirements have different endpoints, so for a USB flash
rate greater than 1%, they will be immediately requested to stop production. From this point of view, the use of brand-name U disk products on the market still has a certain degree of quality assurance, but the use of the method (after use training), can not be taken for granted.
Note 1: This article has referred to and cited many authoritative works on flash memory at home and abroad, which has some reference value;
Note 2. You must be clear about the bulk
Get what we need from the two tables, and then the following code is expanded around the two pointers. (Unusual_dev and id) continue to read get_device_info (). Row 3: record unusual_dev in us. There is also such a member in us. After this is recorded...
Get what we need from the two tables, and then the following code is expanded around the two pointers. (Unusual_dev and id) continue to read get_device_info ().
Row 3: record unusual_dev in us. There is also such a member in us. In this way, i
Get what we need from the two tables, and then the following code is expanded around the two pointers. (Unusual_dev and id) continue to read get_device_info ().
Row 3: Record unusual_dev in us. There is also such a member in us. In this way, it will be easy to use after recording. Because us runs through the whole story, it is very convenient to access its members and can be accessed at any time, however, the us_unusual_dev_list and storage_usb_ids tables will not be reused this time. Because w
Linux2.6 kernel USB Gadget drive porting
Before writing a little bit of the knowledge of USB slave end
In the kernel 2.4 version, the embedded USB drive is in the Kernel/arch/arm directory ep0.c ep**.c, when debugging USB driver
Winsetupfromusb-install Windows XP from USB flash drive
Http://www.briteccomputers.co.uk/forum/tutorials-and-how-to/install-windows-xp-with-a-key-usb/
Here is one of the ways to create a key USB bootable and install Windows XP since this key.This is very useful especially for the users of netbook but also for quite oth
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.