diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ahci_platform.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h index b674b01ce9bc..b80c51c20f76 100644 --- a/include/linux/ahci_platform.h +++ b/include/linux/ahci_platform.h | |||
| @@ -20,7 +20,14 @@ | |||
| 20 | struct device; | 20 | struct device; |
| 21 | struct ata_port_info; | 21 | struct ata_port_info; |
| 22 | struct ahci_host_priv; | 22 | struct ahci_host_priv; |
| 23 | struct platform_device; | ||
| 23 | 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 | */ | ||
| 24 | struct ahci_platform_data { | 31 | struct ahci_platform_data { |
| 25 | int (*init)(struct device *dev, void __iomem *addr); | 32 | int (*init)(struct device *dev, void __iomem *addr); |
| 26 | void (*exit)(struct device *dev); | 33 | void (*exit)(struct device *dev); |
| @@ -35,5 +42,12 @@ int ahci_platform_enable_clks(struct ahci_host_priv *hpriv); | |||
| 35 | void ahci_platform_disable_clks(struct ahci_host_priv *hpriv); | 42 | void ahci_platform_disable_clks(struct ahci_host_priv *hpriv); |
| 36 | int ahci_platform_enable_resources(struct ahci_host_priv *hpriv); | 43 | int ahci_platform_enable_resources(struct ahci_host_priv *hpriv); |
| 37 | void ahci_platform_disable_resources(struct ahci_host_priv *hpriv); | 44 | void ahci_platform_disable_resources(struct ahci_host_priv *hpriv); |
| 45 | struct ahci_host_priv *ahci_platform_get_resources( | ||
| 46 | struct platform_device *pdev); | ||
| 47 | int ahci_platform_init_host(struct platform_device *pdev, | ||
| 48 | struct ahci_host_priv *hpriv, | ||
| 49 | const struct ata_port_info *pi_template, | ||
| 50 | unsigned int force_port_map, | ||
| 51 | unsigned int mask_port_map); | ||
| 38 | 52 | ||
| 39 | #endif /* _AHCI_PLATFORM_H */ | 53 | #endif /* _AHCI_PLATFORM_H */ |
