pm.h 900 B

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