sdhci-pltfm.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Platform data declarations for the sdhci-pltfm driver.
  3. *
  4. * Copyright (c) 2010 MontaVista Software, LLC.
  5. *
  6. * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or (at
  11. * your option) any later version.
  12. */
  13. #ifndef _SDHCI_PLTFM_H
  14. #define _SDHCI_PLTFM_H
  15. struct sdhci_ops;
  16. struct sdhci_host;
  17. /**
  18. * struct sdhci_pltfm_data - SDHCI platform-specific information & hooks
  19. * @ops: optional pointer to the platform-provided SDHCI ops
  20. * @quirks: optional SDHCI quirks
  21. * @init: optional hook that is called during device probe, before the
  22. * driver tries to access any SDHCI registers
  23. * @exit: optional hook that is called during device removal
  24. */
  25. struct sdhci_pltfm_data {
  26. struct sdhci_ops *ops;
  27. unsigned int quirks;
  28. int (*init)(struct sdhci_host *host, struct sdhci_pltfm_data *pdata);
  29. void (*exit)(struct sdhci_host *host);
  30. };
  31. #endif /* _SDHCI_PLTFM_H */