1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * linux/include/linux/mmc/pm.h 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Author: Nicolas Pitre 6*4882a593Smuzhiyun * Copyright: (C) 2009 Marvell Technology Group Ltd. 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #ifndef LINUX_MMC_PM_H 10*4882a593Smuzhiyun #define LINUX_MMC_PM_H 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun /* 13*4882a593Smuzhiyun * These flags are used to describe power management features that 14*4882a593Smuzhiyun * some cards (typically SDIO cards) might wish to benefit from when 15*4882a593Smuzhiyun * the host system is being suspended. There are several layers of 16*4882a593Smuzhiyun * abstractions involved, from the host controller driver, to the MMC core 17*4882a593Smuzhiyun * code, to the SDIO core code, to finally get to the actual SDIO function 18*4882a593Smuzhiyun * driver. This file is therefore used for common definitions shared across 19*4882a593Smuzhiyun * all those layers. 20*4882a593Smuzhiyun */ 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun typedef unsigned int mmc_pm_flag_t; 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #define MMC_PM_KEEP_POWER (1 << 0) /* preserve card power during suspend */ 25*4882a593Smuzhiyun #define MMC_PM_WAKE_SDIO_IRQ (1 << 1) /* wake up host system on SDIO IRQ assertion */ 26*4882a593Smuzhiyun #define MMC_PM_IGNORE_PM_NOTIFY (1 << 2) /* ignore mmc pm notify */ 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun #endif /* LINUX_MMC_PM_H */ 29