blob: a270f25ee7c7c49890e2b902ceaccd80a5a05aa2 [file] [log] [blame]
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +03001/*
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 Brar08354802010-06-25 18:21:19 +090018#include <linux/compiler.h>
19
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +030020struct device;
21struct ata_port_info;
Hans de Goede156c5882014-02-22 16:53:31 +010022struct ahci_host_priv;
Hans de Goede23b07d42014-02-22 16:53:34 +010023struct platform_device;
Akinobu Mita018d5ef2015-01-29 08:30:29 +090024struct scsi_host_template;
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +030025
Hans de Goede156c5882014-02-22 16:53:31 +010026int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
27void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
Gregory CLEMENTc7d7dde2015-01-15 15:09:37 +010028int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
29void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv);
Hans de Goede96a01ba2014-02-22 16:53:33 +010030int ahci_platform_enable_resources(struct ahci_host_priv *hpriv);
31void ahci_platform_disable_resources(struct ahci_host_priv *hpriv);
Hans de Goede23b07d42014-02-22 16:53:34 +010032struct ahci_host_priv *ahci_platform_get_resources(
33 struct platform_device *pdev);
34int ahci_platform_init_host(struct platform_device *pdev,
35 struct ahci_host_priv *hpriv,
Akinobu Mita018d5ef2015-01-29 08:30:29 +090036 const struct ata_port_info *pi_template,
37 struct scsi_host_template *sht);
Hans de Goede156c5882014-02-22 16:53:31 +010038
Hans de Goede648cb6f2014-02-22 16:53:35 +010039int ahci_platform_suspend_host(struct device *dev);
40int ahci_platform_resume_host(struct device *dev);
41int ahci_platform_suspend(struct device *dev);
42int ahci_platform_resume(struct device *dev);
43
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +030044#endif /* _AHCI_PLATFORM_H */