diff options
Diffstat (limited to 'include/linux/ahci_platform.h')
| -rw-r--r-- | include/linux/ahci_platform.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h index 73a25005d88a..1f16d502600c 100644 --- a/include/linux/ahci_platform.h +++ b/include/linux/ahci_platform.h | |||
| @@ -19,15 +19,37 @@ | |||
| 19 | 19 | ||
| 20 | struct device; | 20 | struct device; |
| 21 | struct ata_port_info; | 21 | struct ata_port_info; |
| 22 | struct ahci_host_priv; | ||
| 23 | struct platform_device; | ||
| 22 | 24 | ||
| 25 | /* | ||
| 26 | * Note ahci_platform_data is deprecated, it is only kept around for use | ||
| 27 | * by the old da850 and spear13xx ahci code. | ||
| 28 | * New drivers should instead declare their own platform_driver struct, and | ||
| 29 | * use ahci_platform* functions in their own probe, suspend and resume methods. | ||
| 30 | */ | ||
| 23 | struct ahci_platform_data { | 31 | struct ahci_platform_data { |
| 24 | int (*init)(struct device *dev, void __iomem *addr); | 32 | int (*init)(struct device *dev, void __iomem *addr); |
| 25 | void (*exit)(struct device *dev); | 33 | void (*exit)(struct device *dev); |
| 26 | int (*suspend)(struct device *dev); | 34 | int (*suspend)(struct device *dev); |
| 27 | int (*resume)(struct device *dev); | 35 | int (*resume)(struct device *dev); |
| 28 | const struct ata_port_info *ata_port_info; | ||
| 29 | unsigned int force_port_map; | ||
| 30 | unsigned int mask_port_map; | ||
| 31 | }; | 36 | }; |
| 32 | 37 | ||
| 38 | int ahci_platform_enable_clks(struct ahci_host_priv *hpriv); | ||
| 39 | void ahci_platform_disable_clks(struct ahci_host_priv *hpriv); | ||
| 40 | int ahci_platform_enable_resources(struct ahci_host_priv *hpriv); | ||
| 41 | void ahci_platform_disable_resources(struct ahci_host_priv *hpriv); | ||
| 42 | struct ahci_host_priv *ahci_platform_get_resources( | ||
| 43 | struct platform_device *pdev); | ||
| 44 | int ahci_platform_init_host(struct platform_device *pdev, | ||
| 45 | struct ahci_host_priv *hpriv, | ||
| 46 | const struct ata_port_info *pi_template, | ||
| 47 | unsigned int force_port_map, | ||
| 48 | unsigned int mask_port_map); | ||
| 49 | |||
| 50 | int ahci_platform_suspend_host(struct device *dev); | ||
| 51 | int ahci_platform_resume_host(struct device *dev); | ||
| 52 | int ahci_platform_suspend(struct device *dev); | ||
| 53 | int ahci_platform_resume(struct device *dev); | ||
| 54 | |||
| 33 | #endif /* _AHCI_PLATFORM_H */ | 55 | #endif /* _AHCI_PLATFORM_H */ |
