Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Nicolas Pitre | da68c4e | 2010-03-05 13:43:31 -0800 | [diff] [blame] | 2 | /* |
| 3 | * linux/include/linux/mmc/pm.h |
| 4 | * |
| 5 | * Author: Nicolas Pitre |
| 6 | * Copyright: (C) 2009 Marvell Technology Group Ltd. |
Nicolas Pitre | da68c4e | 2010-03-05 13:43:31 -0800 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef LINUX_MMC_PM_H |
| 10 | #define LINUX_MMC_PM_H |
| 11 | |
| 12 | /* |
| 13 | * These flags are used to describe power management features that |
| 14 | * some cards (typically SDIO cards) might wish to benefit from when |
| 15 | * the host system is being suspended. There are several layers of |
| 16 | * abstractions involved, from the host controller driver, to the MMC core |
| 17 | * code, to the SDIO core code, to finally get to the actual SDIO function |
| 18 | * driver. This file is therefore used for common definitions shared across |
| 19 | * all those layers. |
| 20 | */ |
| 21 | |
| 22 | typedef unsigned int mmc_pm_flag_t; |
| 23 | |
| 24 | #define MMC_PM_KEEP_POWER (1 << 0) /* preserve card power during suspend */ |
| 25 | #define MMC_PM_WAKE_SDIO_IRQ (1 << 1) /* wake up host system on SDIO IRQ assertion */ |
| 26 | |
Robert P. J. Day | 100e918 | 2011-05-27 16:04:03 -0400 | [diff] [blame] | 27 | #endif /* LINUX_MMC_PM_H */ |