2007-05-19 06:06:24 -06:00
|
|
|
/*
|
|
|
|
* linux/drivers/mmc/core/host.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Russell King, All Rights Reserved.
|
|
|
|
* Copyright 2007 Pierre Ossman
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
#ifndef _MMC_CORE_HOST_H
|
|
|
|
#define _MMC_CORE_HOST_H
|
2010-11-08 19:36:50 -07:00
|
|
|
#include <linux/mmc/host.h>
|
2007-05-19 06:06:24 -06:00
|
|
|
|
|
|
|
int mmc_register_host_class(void);
|
|
|
|
void mmc_unregister_host_class(void);
|
|
|
|
|
2010-11-08 19:36:50 -07:00
|
|
|
#ifdef CONFIG_MMC_CLKGATE
|
2011-08-18 06:23:47 -06:00
|
|
|
void mmc_host_clk_hold(struct mmc_host *host);
|
|
|
|
void mmc_host_clk_release(struct mmc_host *host);
|
2010-11-08 19:36:50 -07:00
|
|
|
unsigned int mmc_host_clk_rate(struct mmc_host *host);
|
|
|
|
|
|
|
|
#else
|
2011-08-18 06:23:47 -06:00
|
|
|
static inline void mmc_host_clk_hold(struct mmc_host *host)
|
2010-11-08 19:36:50 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-08-18 06:23:47 -06:00
|
|
|
static inline void mmc_host_clk_release(struct mmc_host *host)
|
2010-11-08 19:36:50 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline unsigned int mmc_host_clk_rate(struct mmc_host *host)
|
|
|
|
{
|
|
|
|
return host->ios.clock;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-09-22 17:44:29 -06:00
|
|
|
void mmc_host_deeper_disable(struct work_struct *work);
|
|
|
|
|
2007-05-19 06:06:24 -06:00
|
|
|
#endif
|
|
|
|
|