标签:remove 需要 todo 驱动 线程 mic 超时 互斥 border
声明:本文很多内容和思路参考了http://www.wowotech.net/comm/mmc_host_driver.html,对原作者表示感谢!
本文是Linux MMC framework的第二篇,将从驱动工程师的角度,介绍MMC host controller driver有关的知识,学习并掌握如何在MMC framework的框架下,编写MMC控制器的驱动程序。同时,通过本篇文章,我们会进一步的理解MMC、SD、SDIO等有关的基础知识。
Elemete Name | struct mmc_host |
Path | include/linux/mmc/host.h |
Responsiblities |
mmc core使用struct mmc_host来抽象mmc host controller |
Attributions |
|
Operations |
分配一个mmc_host结构体,并对其进行初始化
将host device注册进设备驱动模型,并做host硬件的初始化,向PM core 注册notify, 在本函数完成之前,必须能保证host可以使用
将host device从设备驱动模型移除,并将所有的卡与bus切断连接,向pm core注销notify,将mmc bus掉电 |
Elemete Name | struct mmc_host_ops |
Path | include/linux/mmc/host.h |
Responsiblities |
主要包含了host contrller 所需要实现的操作 |
Attributions |
如下的函数可能会sleep,不能在中断上下文中调用:
|
Operations |
|
TODO
Linux MMC framework2-host driver简介
标签:remove 需要 todo 驱动 线程 mic 超时 互斥 border
原文地址:http://www.cnblogs.com/smartjourneys/p/6716054.html