host.h 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * linux/drivers/mmc/core/host.h
  3. *
  4. * Copyright (C) 2003 Russell King, All Rights Reserved.
  5. * Copyright 2007 Pierre Ossman
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef _MMC_CORE_HOST_H
  12. #define _MMC_CORE_HOST_H
  13. #include <linux/mmc/host.h>
  14. int mmc_register_host_class(void);
  15. void mmc_unregister_host_class(void);
  16. #ifdef CONFIG_MMC_CLKGATE
  17. void mmc_host_clk_ungate(struct mmc_host *host);
  18. void mmc_host_clk_gate(struct mmc_host *host);
  19. unsigned int mmc_host_clk_rate(struct mmc_host *host);
  20. #else
  21. static inline void mmc_host_clk_ungate(struct mmc_host *host)
  22. {
  23. }
  24. static inline void mmc_host_clk_gate(struct mmc_host *host)
  25. {
  26. }
  27. static inline unsigned int mmc_host_clk_rate(struct mmc_host *host)
  28. {
  29. return host->ios.clock;
  30. }
  31. #endif
  32. void mmc_host_deeper_disable(struct work_struct *work);
  33. #endif