]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/ahci_platform.h
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
[mirror_ubuntu-bionic-kernel.git] / include / linux / ahci_platform.h
CommitLineData
1c2a49f6
AV
1/*
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
08354809
JB
18#include <linux/compiler.h>
19
1c2a49f6
AV
20struct device;
21struct ata_port_info;
156c5887 22struct ahci_host_priv;
23b07d4c 23struct platform_device;
018d5ef2 24struct scsi_host_template;
1c2a49f6 25
156c5887
HG
26int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
27void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
c7d7ddee
GC
28int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
29void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv);
96a01ba5
HG
30int ahci_platform_enable_resources(struct ahci_host_priv *hpriv);
31void ahci_platform_disable_resources(struct ahci_host_priv *hpriv);
23b07d4c
HG
32struct 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,
018d5ef2
AM
36 const struct ata_port_info *pi_template,
37 struct scsi_host_template *sht);
156c5887 38
8eede5bc
NW
39void ahci_platform_shutdown(struct platform_device *pdev);
40
648cb6fd
HG
41int ahci_platform_suspend_host(struct device *dev);
42int ahci_platform_resume_host(struct device *dev);
43int ahci_platform_suspend(struct device *dev);
44int ahci_platform_resume(struct device *dev);
45
1c2a49f6 46#endif /* _AHCI_PLATFORM_H */