blob: bf38533406fd88e27afdecee36d46928c9f0e47f [file] [log] [blame]
Pierre Ossmanb93931a2007-05-19 14:06:24 +02001/*
2 * linux/drivers/mmc/core/host.h
3 *
4 * Copyright (C) 2003 Russell King, All Rights Reserved.
5 * Copyright 2007 Pierre Ossman
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11#ifndef _MMC_CORE_HOST_H
12#define _MMC_CORE_HOST_H
Linus Walleij04566832010-11-08 21:36:50 -050013#include <linux/mmc/host.h>
Pierre Ossmanb93931a2007-05-19 14:06:24 +020014
Mohan Srinivasane2d88782016-12-14 15:55:36 -080015#define cls_dev_to_mmc_host(d) container_of(d, struct mmc_host, class_dev)
16
Pierre Ossmanb93931a2007-05-19 14:06:24 +020017int mmc_register_host_class(void);
18void mmc_unregister_host_class(void);
Adrian Hunter8ea926b2009-09-22 16:44:29 -070019
Adrian Hunterdfa13eb2015-05-07 13:10:12 +030020void mmc_retune_enable(struct mmc_host *host);
21void mmc_retune_disable(struct mmc_host *host);
22void mmc_retune_hold(struct mmc_host *host);
23void mmc_retune_release(struct mmc_host *host);
24int mmc_retune(struct mmc_host *host);
25
Mohan Srinivasane2d88782016-12-14 15:55:36 -080026void mmc_latency_hist_sysfs_init(struct mmc_host *host);
27void mmc_latency_hist_sysfs_exit(struct mmc_host *host);
28
Pierre Ossmanb93931a2007-05-19 14:06:24 +020029#endif
30