From 6dcd6bf4f82013f306550c4695dffbd95f8519c0 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 12 Apr 2013 13:24:58 +0200 Subject: backports: dissolve compat-2.6.34.h Signed-off-by: Johannes Berg --- backport/backport-include/linux/mmc/sdio_func.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'backport/backport-include/linux/mmc') diff --git a/backport/backport-include/linux/mmc/sdio_func.h b/backport/backport-include/linux/mmc/sdio_func.h index 9f720a23..62f89a58 100644 --- a/backport/backport-include/linux/mmc/sdio_func.h +++ b/backport/backport-include/linux/mmc/sdio_func.h @@ -7,4 +7,24 @@ #define sdio_writeb_readb(func, write_byte, addr, err_ret) sdio_readb(func, addr, err_ret) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) +/* + * Backports da68c4eb25 + * sdio: introduce API for special power management features + * + * We simply carry around the data structures and flags, and + * make the host return no flags set by the driver. + * + * This is declared in mmc/pm.h upstream, but that files + * didn't exist before this commit and isn't included directly. + */ +typedef unsigned int mmc_pm_flag_t; + +#define MMC_PM_KEEP_POWER (1 << 0) /* preserve card power during suspend */ +#define MMC_PM_WAKE_SDIO_IRQ (1 << 1) /* wake up host system on SDIO IRQ assertion */ + +extern mmc_pm_flag_t sdio_get_host_pm_caps(struct sdio_func *func); +extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags); +#endif + #endif /* __BACKPORT_MMC_SDIO_FUNC_H */ -- cgit v1.2.3