Anton Vorontsov | 1c2a49f | 2010-03-04 20:06:06 +0300 | [diff] [blame] | 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 | |
| 15 | #ifndef _AHCI_PLATFORM_H |
| 16 | #define _AHCI_PLATFORM_H |
| 17 | |
Jassi Brar | 0835480 | 2010-06-25 18:21:19 +0900 | [diff] [blame] | 18 | #include <linux/compiler.h> |
| 19 | |
Anton Vorontsov | 1c2a49f | 2010-03-04 20:06:06 +0300 | [diff] [blame] | 20 | struct device; |
| 21 | struct ata_port_info; |
Hans de Goede | 156c588 | 2014-02-22 16:53:31 +0100 | [diff] [blame] | 22 | struct ahci_host_priv; |
Hans de Goede | 23b07d4 | 2014-02-22 16:53:34 +0100 | [diff] [blame] | 23 | struct platform_device; |
Akinobu Mita | 018d5ef | 2015-01-29 08:30:29 +0900 | [diff] [blame] | 24 | struct scsi_host_template; |
Anton Vorontsov | 1c2a49f | 2010-03-04 20:06:06 +0300 | [diff] [blame] | 25 | |
Hans de Goede | 156c588 | 2014-02-22 16:53:31 +0100 | [diff] [blame] | 26 | int ahci_platform_enable_clks(struct ahci_host_priv *hpriv); |
| 27 | void ahci_platform_disable_clks(struct ahci_host_priv *hpriv); |
Gregory CLEMENT | c7d7dde | 2015-01-15 15:09:37 +0100 | [diff] [blame] | 28 | int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv); |
| 29 | void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv); |
Hans de Goede | 96a01ba | 2014-02-22 16:53:33 +0100 | [diff] [blame] | 30 | int ahci_platform_enable_resources(struct ahci_host_priv *hpriv); |
| 31 | void ahci_platform_disable_resources(struct ahci_host_priv *hpriv); |
Hans de Goede | 23b07d4 | 2014-02-22 16:53:34 +0100 | [diff] [blame] | 32 | struct ahci_host_priv *ahci_platform_get_resources( |
| 33 | struct platform_device *pdev); |
| 34 | int ahci_platform_init_host(struct platform_device *pdev, |
| 35 | struct ahci_host_priv *hpriv, |
Akinobu Mita | 018d5ef | 2015-01-29 08:30:29 +0900 | [diff] [blame] | 36 | const struct ata_port_info *pi_template, |
| 37 | struct scsi_host_template *sht); |
Hans de Goede | 156c588 | 2014-02-22 16:53:31 +0100 | [diff] [blame] | 38 | |
Hans de Goede | 648cb6f | 2014-02-22 16:53:35 +0100 | [diff] [blame] | 39 | int ahci_platform_suspend_host(struct device *dev); |
| 40 | int ahci_platform_resume_host(struct device *dev); |
| 41 | int ahci_platform_suspend(struct device *dev); |
| 42 | int ahci_platform_resume(struct device *dev); |
| 43 | |
Anton Vorontsov | 1c2a49f | 2010-03-04 20:06:06 +0300 | [diff] [blame] | 44 | #endif /* _AHCI_PLATFORM_H */ |