sh_eth: fix EESIPR values for SH77{34|63}
[linux/fpc-iii.git] / drivers / mmc / core / pwrseq.h
blobd69e751f148b85f26d89e748a51c0486d215695c
1 /*
2 * Copyright (C) 2014 Linaro Ltd
4 * Author: Ulf Hansson <ulf.hansson@linaro.org>
6 * License terms: GNU General Public License (GPL) version 2
7 */
8 #ifndef _MMC_CORE_PWRSEQ_H
9 #define _MMC_CORE_PWRSEQ_H
11 #include <linux/mmc/host.h>
13 struct mmc_pwrseq_ops {
14 void (*pre_power_on)(struct mmc_host *host);
15 void (*post_power_on)(struct mmc_host *host);
16 void (*power_off)(struct mmc_host *host);
19 struct mmc_pwrseq {
20 const struct mmc_pwrseq_ops *ops;
21 struct device *dev;
22 struct list_head pwrseq_node;
23 struct module *owner;
26 #ifdef CONFIG_OF
28 int mmc_pwrseq_register(struct mmc_pwrseq *pwrseq);
29 void mmc_pwrseq_unregister(struct mmc_pwrseq *pwrseq);
31 int mmc_pwrseq_alloc(struct mmc_host *host);
32 void mmc_pwrseq_pre_power_on(struct mmc_host *host);
33 void mmc_pwrseq_post_power_on(struct mmc_host *host);
34 void mmc_pwrseq_power_off(struct mmc_host *host);
35 void mmc_pwrseq_free(struct mmc_host *host);
37 #else
39 static inline int mmc_pwrseq_register(struct mmc_pwrseq *pwrseq)
41 return -ENOSYS;
43 static inline void mmc_pwrseq_unregister(struct mmc_pwrseq *pwrseq) {}
44 static inline int mmc_pwrseq_alloc(struct mmc_host *host) { return 0; }
45 static inline void mmc_pwrseq_pre_power_on(struct mmc_host *host) {}
46 static inline void mmc_pwrseq_post_power_on(struct mmc_host *host) {}
47 static inline void mmc_pwrseq_power_off(struct mmc_host *host) {}
48 static inline void mmc_pwrseq_free(struct mmc_host *host) {}
50 #endif
52 #endif