4ccf3f6f80
commit 84b032dbfdf1c139cd2b864e43959510646975f8 upstream.
This reverts commit 6bb86fefa0
("libahci_platform: Staticize ahci_platform_<en/dis>able_phys()") we are
going to need ahci_platform_{enable,disable}_phys() in a subsequent
commit for ahci_brcm.c in order to properly control the PHY
initialization order.
Also make sure the function prototypes are declared in
include/linux/ahci_platform.h as a result.
Cc: stable@vger.kernel.org
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
/*
|
|
* AHCI SATA platform driver
|
|
*
|
|
* Copyright 2004-2005 Red Hat, Inc.
|
|
* Jeff Garzik <jgarzik@pobox.com>
|
|
* Copyright 2010 MontaVista Software, LLC.
|
|
* Anton Vorontsov <avorontsov@ru.mvista.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*/
|
|
|
|
#ifndef _AHCI_PLATFORM_H
|
|
#define _AHCI_PLATFORM_H
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
struct device;
|
|
struct ata_port_info;
|
|
struct ahci_host_priv;
|
|
struct platform_device;
|
|
struct scsi_host_template;
|
|
|
|
int ahci_platform_enable_phys(struct ahci_host_priv *hpriv);
|
|
void ahci_platform_disable_phys(struct ahci_host_priv *hpriv);
|
|
int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
|
|
void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
|
|
int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv);
|
|
void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv);
|
|
int ahci_platform_enable_resources(struct ahci_host_priv *hpriv);
|
|
void ahci_platform_disable_resources(struct ahci_host_priv *hpriv);
|
|
struct ahci_host_priv *ahci_platform_get_resources(
|
|
struct platform_device *pdev, unsigned int flags);
|
|
int ahci_platform_init_host(struct platform_device *pdev,
|
|
struct ahci_host_priv *hpriv,
|
|
const struct ata_port_info *pi_template,
|
|
struct scsi_host_template *sht);
|
|
|
|
void ahci_platform_shutdown(struct platform_device *pdev);
|
|
|
|
int ahci_platform_suspend_host(struct device *dev);
|
|
int ahci_platform_resume_host(struct device *dev);
|
|
int ahci_platform_suspend(struct device *dev);
|
|
int ahci_platform_resume(struct device *dev);
|
|
|
|
#define AHCI_PLATFORM_GET_RESETS 0x01
|
|
|
|
#endif /* _AHCI_PLATFORM_H */
|