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 #ifdef CONFIG_BLOCK 21 void mmc_latency_hist_sysfs_init(struct mmc_host *host); 22 void mmc_latency_hist_sysfs_exit(struct mmc_host *host); 23 #endif 24 25 #endif 26 27