]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/ahci_platform.h
2 * AHCI SATA platform driver
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>
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)
15 #ifndef _AHCI_PLATFORM_H
16 #define _AHCI_PLATFORM_H
18 #include <linux/compiler.h>
22 struct ahci_host_priv
;
23 struct platform_device
;
24 struct scsi_host_template
;
26 int ahci_platform_enable_phys(struct ahci_host_priv
*hpriv
);
27 void ahci_platform_disable_phys(struct ahci_host_priv
*hpriv
);
28 int ahci_platform_enable_clks(struct ahci_host_priv
*hpriv
);
29 void ahci_platform_disable_clks(struct ahci_host_priv
*hpriv
);
30 int ahci_platform_enable_regulators(struct ahci_host_priv
*hpriv
);
31 void ahci_platform_disable_regulators(struct ahci_host_priv
*hpriv
);
32 int ahci_platform_enable_resources(struct ahci_host_priv
*hpriv
);
33 void ahci_platform_disable_resources(struct ahci_host_priv
*hpriv
);
34 struct ahci_host_priv
*ahci_platform_get_resources(
35 struct platform_device
*pdev
);
36 int ahci_platform_init_host(struct platform_device
*pdev
,
37 struct ahci_host_priv
*hpriv
,
38 const struct ata_port_info
*pi_template
,
39 struct scsi_host_template
*sht
);
41 void ahci_platform_shutdown(struct platform_device
*pdev
);
43 int ahci_platform_suspend_host(struct device
*dev
);
44 int ahci_platform_resume_host(struct device
*dev
);
45 int ahci_platform_suspend(struct device
*dev
);
46 int ahci_platform_resume(struct device
*dev
);
48 #endif /* _AHCI_PLATFORM_H */