驱动(分层&&分离思想) 设备驱动层(wifi设备)–>核心层(向上向下提供接口)—>主机驱动层(SDIO驱动)
drv_data = sdhci_s3c_get_driver_data(pdev);
platform_set_drvdata(pdev, host);
#ifndef CONFIG_MMC_SDHCI_S3C_DMA
#endif /* CONFIG_MMC_SDHCI_S3C_DMA */
/drivers/mmc/core/core.c
mmc_power_up(host, host->ocr_avail);
mmc_go_idle(host);
mmc_power_up(host, host->ocr_avail);
mmc_go_idle(host);
WARN_ON(!host->claimed);
WARN_ON(!host->claimed);
dev_dbg(host->dev, “%s: events=%08X\n”, __func__, events);
return IRQ_HANDLED;
int (*num_vf)(struct device *dev);
int (*dma_configure)(struct device *dev);
const struct dev_pm_ops *pm;
const struct iommu_ops *iommu_ops;
ids = sdrv->id_table;
return 0;
drv->remove(func);
dev_pm_domain_detach(dev, false);
return 0;
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/228223.html原文链接:https://javaforall.net
