Linux Audio

Check our new training course

Loading...
v4.6
 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
15int mmc_register_host_class(void);
16void mmc_unregister_host_class(void);
17
18void mmc_retune_enable(struct mmc_host *host);
19void mmc_retune_disable(struct mmc_host *host);
20void mmc_retune_hold(struct mmc_host *host);
21void mmc_retune_release(struct mmc_host *host);
22int mmc_retune(struct mmc_host *host);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
24#endif
25
v3.1
 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
15int mmc_register_host_class(void);
16void mmc_unregister_host_class(void);
17
18#ifdef CONFIG_MMC_CLKGATE
19void mmc_host_clk_hold(struct mmc_host *host);
20void mmc_host_clk_release(struct mmc_host *host);
21unsigned int mmc_host_clk_rate(struct mmc_host *host);
22
23#else
24static inline void mmc_host_clk_hold(struct mmc_host *host)
25{
26}
27
28static inline void mmc_host_clk_release(struct mmc_host *host)
29{
30}
31
32static inline unsigned int mmc_host_clk_rate(struct mmc_host *host)
33{
34	return host->ios.clock;
35}
36#endif
37
38void mmc_host_deeper_disable(struct work_struct *work);
39
40#endif
41