Linux Driver Analysis for SD Card Based on S3C2410 II

Source: Internet
Author: User

Order:
When talking about the embedded Linux driver development class, I found that many students are more interested in the SD card driver.
Interest. I will discuss it later. In many technical forums, many people have asked this question. Therefore, I want to write this article and hope it will help you learn it.

A few days ago I wrote an article titled "operating principle of Linux driver for SD Card Based on S3C2410 (I)", explaining how the Linux driver works on the Operating System
Read and Write SD cards. After learning how the operating system works, you can now think about how Linux manages and manages SD cards. In Linux, the SD driver can be divided into three layers: block device layer
(Mmc_block.c
, Mmc_sysfs.c, mmc_queue.c), MMC protocol layer (MMC. c), SD driver layer (s3c2410_sdi.c ).

The following describes the drivers:

1. s3c2410_sdi.cCodeInitialization Process;

2. Registration of SD card Block devices;

3. Implementation of request and data transmission.

The reference code for the process described below is our Huaqing Vision training center.
A set of code used in teaching. The kernel version is 2.6.8, and the process of other versions is similar.

I. Code initialization process of s3c2410_sdi.c

Ii. Registration of SD card Block devices

Iii. Implementation of request and Data Transmission

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.