diff options
| author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2010-03-04 12:06:06 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@redhat.com> | 2010-05-14 17:08:01 -0400 |
| commit | 1c2a49f61785ebbcbfb481a2aab659020f0457f7 (patch) | |
| tree | bb018719be09387c07345f0954408b3aa8c16a98 /include/linux | |
| parent | 365cfa1ed5a36f9bcb9f64c9f0f52155af2e9fef (diff) | |
ahci: Add platform driver
This can be used for AHCI-compatible interfaces implemented inside
System-On-Chip solutions, or AHCI devices connected via localbus.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ahci_platform.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h new file mode 100644 index 000000000000..f7dd576dd5a4 --- /dev/null +++ b/include/linux/ahci_platform.h | |||
| @@ -0,0 +1,29 @@ | |||
| 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 | |||
| 18 | struct device; | ||
| 19 | struct ata_port_info; | ||
| 20 | |||
| 21 | struct ahci_platform_data { | ||
| 22 | int (*init)(struct device *dev); | ||
| 23 | void (*exit)(struct device *dev); | ||
| 24 | const struct ata_port_info *ata_port_info; | ||
| 25 | unsigned int force_port_map; | ||
| 26 | unsigned int mask_port_map; | ||
| 27 | }; | ||
| 28 | |||
| 29 | #endif /* _AHCI_PLATFORM_H */ | ||
