blob: 73a25005d88aa7cc76f7e8049b9697be18955c39 [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;
22
23struct ahci_platform_data {
Jassi Brar08354802010-06-25 18:21:19 +090024 int (*init)(struct device *dev, void __iomem *addr);
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +030025 void (*exit)(struct device *dev);
Brian Norris17ab5942011-11-18 11:10:10 -080026 int (*suspend)(struct device *dev);
27 int (*resume)(struct device *dev);
Anton Vorontsov1c2a49f2010-03-04 20:06:06 +030028 const struct ata_port_info *ata_port_info;
29 unsigned int force_port_map;
30 unsigned int mask_port_map;
31};
32
33#endif /* _AHCI_PLATFORM_H */