ahci-platform: Add support for an optional regulator for sata-target power
[linux-2.6-block.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;
1c2a49f6
AV
23
24struct ahci_platform_data {
08354809 25 int (*init)(struct device *dev, void __iomem *addr);
1c2a49f6 26 void (*exit)(struct device *dev);
17ab594f
BN
27 int (*suspend)(struct device *dev);
28 int (*resume)(struct device *dev);
1c2a49f6
AV
29 const struct ata_port_info *ata_port_info;
30 unsigned int force_port_map;
31 unsigned int mask_port_map;
32};
33
156c5887
HG
34int ahci_platform_enable_clks(struct ahci_host_priv *hpriv);
35void ahci_platform_disable_clks(struct ahci_host_priv *hpriv);
36
1c2a49f6 37#endif /* _AHCI_PLATFORM_H */