OSDN Git Service

Merge 4.4.187 into android-4.4
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / mmc / core / host.h
1 /*
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
13 #include <linux/mmc/host.h>
14
15 #define cls_dev_to_mmc_host(d)  container_of(d, struct mmc_host, class_dev)
16
17 int mmc_register_host_class(void);
18 void mmc_unregister_host_class(void);
19
20 void mmc_retune_enable(struct mmc_host *host);
21 void mmc_retune_disable(struct mmc_host *host);
22 void mmc_retune_hold(struct mmc_host *host);
23 void mmc_retune_release(struct mmc_host *host);
24 int mmc_retune(struct mmc_host *host);
25
26 void mmc_latency_hist_sysfs_init(struct mmc_host *host);
27 void mmc_latency_hist_sysfs_exit(struct mmc_host *host);
28
29 #endif
30