blob: f65b33809170f9cdb2ee39ca6e6d0dcd7652f6d5 [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;
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +030024
Hans de Goede156c5882014-02-22 16:53:31 +010025int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
26void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
Gregory CLEMENTc7d7dde2015-01-15 15:09:37 +010027int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
28void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv);
Hans de Goede96a01ba2014-02-22 16:53:33 +010029int ahci_platform_enable_resources(struct ahci_host_priv *hpriv);
30void ahci_platform_disable_resources(struct ahci_host_priv *hpriv);
Hans de Goede23b07d42014-02-22 16:53:34 +010031struct ahci_host_priv *ahci_platform_get_resources(
32 struct platform_device *pdev);
33int ahci_platform_init_host(struct platform_device *pdev,
34 struct ahci_host_priv *hpriv,
Antoine Ténart725c7b52014-07-30 20:13:56 +020035 const struct ata_port_info *pi_template);
Hans de Goede156c5882014-02-22 16:53:31 +010036
Hans de Goede648cb6f2014-02-22 16:53:35 +010037int ahci_platform_suspend_host(struct device *dev);
38int ahci_platform_resume_host(struct device *dev);
39int ahci_platform_suspend(struct device *dev);
40int ahci_platform_resume(struct device *dev);
41
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +030042#endif /* _AHCI_PLATFORM_H */