Pierre Ossman | b93931a | 2007-05-19 14:06:24 +0200 | [diff] [blame] | 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 |
Linus Walleij | 0456683 | 2010-11-08 21:36:50 -0500 | [diff] [blame] | 13 | #include <linux/mmc/host.h> |
Pierre Ossman | b93931a | 2007-05-19 14:06:24 +0200 | [diff] [blame] | 14 | |
Mohan Srinivasan | e2d8878 | 2016-12-14 15:55:36 -0800 | [diff] [blame] | 15 | #define cls_dev_to_mmc_host(d) container_of(d, struct mmc_host, class_dev) |
| 16 | |
Pierre Ossman | b93931a | 2007-05-19 14:06:24 +0200 | [diff] [blame] | 17 | int mmc_register_host_class(void); |
| 18 | void mmc_unregister_host_class(void); |
Adrian Hunter | 8ea926b | 2009-09-22 16:44:29 -0700 | [diff] [blame] | 19 | |
Adrian Hunter | dfa13eb | 2015-05-07 13:10:12 +0300 | [diff] [blame] | 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 | |
Mohan Srinivasan | e2d8878 | 2016-12-14 15:55:36 -0800 | [diff] [blame] | 26 | void mmc_latency_hist_sysfs_init(struct mmc_host *host); |
| 27 | void mmc_latency_hist_sysfs_exit(struct mmc_host *host); |
| 28 | |
Pierre Ossman | b93931a | 2007-05-19 14:06:24 +0200 | [diff] [blame] | 29 | #endif |
| 30 | |