sdhci.h (03231f9b781f24205c0af0398ce3cbef70090939) sdhci.h (1771059cf5f9c09e37ef6315df8acf120f2642fc)
1/*
2 * linux/drivers/mmc/host/sdhci.h - Secure Digital Host Controller Interface driver
3 *
4 * Header file for Host Controller registers and I/O accessors.
5 *
6 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 386 unchanged lines hidden (view full) ---

395extern void sdhci_send_command(struct sdhci_host *host,
396 struct mmc_command *cmd);
397
398static inline bool sdhci_sdio_irq_enabled(struct sdhci_host *host)
399{
400 return !!(host->flags & SDHCI_SDIO_IRQ_ENABLED);
401}
402
1/*
2 * linux/drivers/mmc/host/sdhci.h - Secure Digital Host Controller Interface driver
3 *
4 * Header file for Host Controller registers and I/O accessors.
5 *
6 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 386 unchanged lines hidden (view full) ---

395extern void sdhci_send_command(struct sdhci_host *host,
396 struct mmc_command *cmd);
397
398static inline bool sdhci_sdio_irq_enabled(struct sdhci_host *host)
399{
400 return !!(host->flags & SDHCI_SDIO_IRQ_ENABLED);
401}
402
403void sdhci_set_clock(struct sdhci_host *host, unsigned int clock);
403void sdhci_set_bus_width(struct sdhci_host *host, int width);
404void sdhci_reset(struct sdhci_host *host, u8 mask);
405
406#ifdef CONFIG_PM
407extern int sdhci_suspend_host(struct sdhci_host *host);
408extern int sdhci_resume_host(struct sdhci_host *host);
409extern void sdhci_enable_irq_wakeups(struct sdhci_host *host);
410#endif
411
412#ifdef CONFIG_PM_RUNTIME
413extern int sdhci_runtime_suspend_host(struct sdhci_host *host);
414extern int sdhci_runtime_resume_host(struct sdhci_host *host);
415#endif
416
417#endif /* __SDHCI_HW_H */
404void sdhci_set_bus_width(struct sdhci_host *host, int width);
405void sdhci_reset(struct sdhci_host *host, u8 mask);
406
407#ifdef CONFIG_PM
408extern int sdhci_suspend_host(struct sdhci_host *host);
409extern int sdhci_resume_host(struct sdhci_host *host);
410extern void sdhci_enable_irq_wakeups(struct sdhci_host *host);
411#endif
412
413#ifdef CONFIG_PM_RUNTIME
414extern int sdhci_runtime_suspend_host(struct sdhci_host *host);
415extern int sdhci_runtime_resume_host(struct sdhci_host *host);
416#endif
417
418#endif /* __SDHCI_HW_H */