ahci_platform.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * AHCI SATA platform driver
  3. *
  4. * Copyright 2004-2005 Red Hat, Inc.
  5. * Jeff Garzik <jgarzik@pobox.com>
  6. * Copyright 2010 MontaVista Software, LLC.
  7. * Anton Vorontsov <avorontsov@ru.mvista.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2, or (at your option)
  12. * any later version.
  13. */
  14. #ifndef _AHCI_PLATFORM_H
  15. #define _AHCI_PLATFORM_H
  16. #include <linux/compiler.h>
  17. struct device;
  18. struct ata_port_info;
  19. struct ahci_host_priv;
  20. struct platform_device;
  21. struct scsi_host_template;
  22. int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
  23. void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
  24. int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
  25. void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv);
  26. int ahci_platform_enable_resources(struct ahci_host_priv *hpriv);
  27. void ahci_platform_disable_resources(struct ahci_host_priv *hpriv);
  28. struct ahci_host_priv *ahci_platform_get_resources(
  29. struct platform_device *pdev);
  30. int ahci_platform_init_host(struct platform_device *pdev,
  31. struct ahci_host_priv *hpriv,
  32. const struct ata_port_info *pi_template,
  33. struct scsi_host_template *sht);
  34. int ahci_platform_suspend_host(struct device *dev);
  35. int ahci_platform_resume_host(struct device *dev);
  36. int ahci_platform_suspend(struct device *dev);
  37. int ahci_platform_resume(struct device *dev);
  38. #endif /* _AHCI_PLATFORM_H */