void _mmc_detect_change(struct mmc_host *host, unsignedlong delay, bool cd_irq); int _mmc_detect_card_removed(struct mmc_host *host); int mmc_detect_card_removed(struct mmc_host *host);
int mmc_attach_mmc(struct mmc_host *host); int mmc_attach_sd(struct mmc_host *host); int mmc_attach_sdio(struct mmc_host *host); int mmc_attach_sd_uhs2(struct mmc_host *host);
/* Module parameters */ externbool use_spi_crc;
/* Debugfs information for hosts and cards */ #ifdef CONFIG_DEBUG_FS void mmc_add_host_debugfs(struct mmc_host *host); void mmc_remove_host_debugfs(struct mmc_host *host);
int mmc_card_alternative_gpt_sector(struct mmc_card *card, sector_t *sector);
/** * mmc_claim_host - exclusively claim a host * @host: mmc host to claim * * Claim a host for a set of operations.
*/ staticinlinevoid mmc_claim_host(struct mmc_host *host)
{
__mmc_claim_host(host, NULL, NULL);
}
int mmc_cqe_start_req(struct mmc_host *host, struct mmc_request *mrq); void mmc_cqe_post_req(struct mmc_host *host, struct mmc_request *mrq); int mmc_cqe_recovery(struct mmc_host *host);
/** * mmc_pre_req - Prepare for a new request * @host: MMC host to prepare command * @mrq: MMC request to prepare for * * mmc_pre_req() is called in prior to mmc_start_req() to let * host prepare for the new request. Preparation of a request may be * performed while another request is running on the host.
*/ staticinlinevoid mmc_pre_req(struct mmc_host *host, struct mmc_request *mrq)
{ if (host->ops->pre_req)
host->ops->pre_req(host, mrq);
}
/** * mmc_post_req - Post process a completed request * @host: MMC host to post process command * @mrq: MMC request to post process for * @err: Error, if non zero, clean up any resources made in pre_req * * Let the host post process a completed request. Post processing of * a request may be performed while another request is running.
*/ staticinlinevoid mmc_post_req(struct mmc_host *host, struct mmc_request *mrq, int err)
{ if (host->ops->post_req)
host->ops->post_req(host, mrq, err);
}
staticinlinebool mmc_cache_enabled(struct mmc_host *host)
{ if (host->bus_ops->cache_enabled) return host->bus_ops->cache_enabled(host);
returnfalse;
}
staticinlineint mmc_flush_cache(struct mmc_host *host)
{ if (host->bus_ops->flush_cache) return host->bus_ops->flush_cache(host);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.