bbb mmc驱动分析
来源:互联网 发布:淘宝格士子湖铺 编辑:程序博客网 时间:2024/05/17 00:59
1. drivers/mmc/host/omap_hsmmc.c
static int __init omap_hsmmc_init(void)
{
/* Register the MMC driver */
return platform_driver_probe(&omap_hsmmc_driver, omap_hsmmc_probe);
}
static int __init omap_hsmmc_probe(struct platform_device *pdev)
{
mmc = mmc_alloc_host(sizeof(struct omap_hsmmc_host), &pdev->dev);
}
2. drivers/mmc/core/host.c
struct mmc_host *mmc_alloc_host(int extra, struct device *dev)
{
INIT_DELAYED_WORK(&host->detect, mmc_rescan);
}
3. drivers/mmc/core/core.c
void mmc_rescan(struct work_struct *work)
{
host->bus_ops->detect(host);
}
4. drivers/mmc/core/mmc.c
static void mmc_detect(struct mmc_host *host)
{
err = _mmc_detect_card_removed(host);
}
5. drivers/mmc/core/core.c
int _mmc_detect_card_removed(struct mmc_host *host)
{
ret = host->bus_ops->alive(host);
}
6. drivers/mmc/core/mmc.c
static int mmc_alive(struct mmc_host *host)
{
return mmc_send_status(host->card, NULL);
}
7. drivers/mmc/core/mmc_ops.c
int mmc_send_status(struct mmc_card *card, u32 *status)
{
err = mmc_wait_for_cmd(card->host, &cmd, MMC_CMD_RETRIES);
}
static int __init omap_hsmmc_init(void)
{
/* Register the MMC driver */
return platform_driver_probe(&omap_hsmmc_driver, omap_hsmmc_probe);
}
static int __init omap_hsmmc_probe(struct platform_device *pdev)
{
mmc = mmc_alloc_host(sizeof(struct omap_hsmmc_host), &pdev->dev);
}
2. drivers/mmc/core/host.c
struct mmc_host *mmc_alloc_host(int extra, struct device *dev)
{
INIT_DELAYED_WORK(&host->detect, mmc_rescan);
}
3. drivers/mmc/core/core.c
void mmc_rescan(struct work_struct *work)
{
host->bus_ops->detect(host);
}
4. drivers/mmc/core/mmc.c
static void mmc_detect(struct mmc_host *host)
{
err = _mmc_detect_card_removed(host);
}
5. drivers/mmc/core/core.c
int _mmc_detect_card_removed(struct mmc_host *host)
{
ret = host->bus_ops->alive(host);
}
6. drivers/mmc/core/mmc.c
static int mmc_alive(struct mmc_host *host)
{
return mmc_send_status(host->card, NULL);
}
7. drivers/mmc/core/mmc_ops.c
int mmc_send_status(struct mmc_card *card, u32 *status)
{
err = mmc_wait_for_cmd(card->host, &cmd, MMC_CMD_RETRIES);
}
0 0
- bbb mmc驱动分析
- BBB GPIO驱动分析
- BBB IRQ 驱动分析
- bbb u-boot mmc总线初始化分析
- MMC卡驱动分析
- MMC 卡驱动分析
- MMC 卡驱动分析
- MMC 卡驱动分析
- MMC 卡驱动分析
- MMC 卡驱动分析
- MMC卡驱动分析
- MMC 卡驱动分析
- MMC卡驱动分析
- MMC 卡驱动分析
- MMC 驱动分析
- MMC 卡驱动分析
- MMC 卡驱动分析
- MMC卡驱动分析
- MemSQL Start[c]UP 2.0 - Round 1A(构造)
- COCOS2DX,cocostudio::ColliderDetector 简单介绍 骨骼动画绑定碰撞区域进行碰撞检测
- High-Dimensional Local Binary Patterns
- CF #287 div2 C Guess Your Way Out!
- 小菜的博客生涯就此开始吧
- bbb mmc驱动分析
- 随机数生成程序(很实用)
- 输入输出练习
- hdu 5158 水题
- 九、Unity4.6UI----------ScrollBar
- Mysql 各个版本区别及官网下载
- Android如何检测网络的类型为3G、2G、wap、wifi
- a+b
- Couldn’t find MySQL server