diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ahci_platform.h | 28 | ||||
-rw-r--r-- | include/linux/libata.h | 11 |
2 files changed, 29 insertions, 10 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 */ |
diff --git a/include/linux/libata.h b/include/linux/libata.h index bec6dbe939a0..1de36be64df4 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -848,7 +848,6 @@ struct ata_port { | |||
848 | struct completion park_req_pending; | 848 | struct completion park_req_pending; |
849 | 849 | ||
850 | pm_message_t pm_mesg; | 850 | pm_message_t pm_mesg; |
851 | int *pm_result; | ||
852 | enum ata_lpm_policy target_lpm_policy; | 851 | enum ata_lpm_policy target_lpm_policy; |
853 | 852 | ||
854 | struct timer_list fastdrain_timer; | 853 | struct timer_list fastdrain_timer; |
@@ -1140,16 +1139,14 @@ extern bool ata_link_offline(struct ata_link *link); | |||
1140 | #ifdef CONFIG_PM | 1139 | #ifdef CONFIG_PM |
1141 | extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg); | 1140 | extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg); |
1142 | extern void ata_host_resume(struct ata_host *host); | 1141 | extern void ata_host_resume(struct ata_host *host); |
1143 | extern int ata_sas_port_async_suspend(struct ata_port *ap, int *async); | 1142 | extern void ata_sas_port_suspend(struct ata_port *ap); |
1144 | extern int ata_sas_port_async_resume(struct ata_port *ap, int *async); | 1143 | extern void ata_sas_port_resume(struct ata_port *ap); |
1145 | #else | 1144 | #else |
1146 | static inline int ata_sas_port_async_suspend(struct ata_port *ap, int *async) | 1145 | static inline void ata_sas_port_suspend(struct ata_port *ap) |
1147 | { | 1146 | { |
1148 | return 0; | ||
1149 | } | 1147 | } |
1150 | static inline int ata_sas_port_async_resume(struct ata_port *ap, int *async) | 1148 | static inline void ata_sas_port_resume(struct ata_port *ap) |
1151 | { | 1149 | { |
1152 | return 0; | ||
1153 | } | 1150 | } |
1154 | #endif | 1151 | #endif |
1155 | extern int ata_ratelimit(void); | 1152 | extern int ata_ratelimit(void); |