diff options
author | Kristen Carlson Accardi <kristen.c.accardi@intel.com> | 2006-09-28 14:29:01 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-16 13:32:41 -0500 |
commit | 11ef697b37e3c85ce1ac21f7711babf1f5b12784 (patch) | |
tree | 7b118d54bc8fc24ca8cbc626d603013d07ed8c2a /drivers/ata/libata.h | |
parent | 8a03d9a498eaf02c8a118752050a5154852c13bf (diff) |
[PATCH] libata: ACPI and _GTF support
_GTF is an acpi method that is used to reinitialize the drive. It returns
a task file containing ata commands that are sent back to the drive to restore
it to boot up defaults.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
(cherry picked from 9c69cab24b51a89664f4c0dfaf8a436d32117624 commit)
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 06ccf230e3c2..ea02903e8503 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -47,6 +47,7 @@ extern struct workqueue_struct *ata_aux_wq; | |||
47 | extern int atapi_enabled; | 47 | extern int atapi_enabled; |
48 | extern int atapi_dmadir; | 48 | extern int atapi_dmadir; |
49 | extern int libata_fua; | 49 | extern int libata_fua; |
50 | extern int noacpi; | ||
50 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev); | 51 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_device *dev); |
51 | extern int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev, | 52 | extern int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev, |
52 | u64 block, u32 n_block, unsigned int tf_flags, | 53 | u64 block, u32 n_block, unsigned int tf_flags, |
@@ -87,6 +88,15 @@ extern void ata_port_init(struct ata_port *ap, struct ata_host *host, | |||
87 | extern struct ata_probe_ent *ata_probe_ent_alloc(struct device *dev, | 88 | extern struct ata_probe_ent *ata_probe_ent_alloc(struct device *dev, |
88 | const struct ata_port_info *port); | 89 | const struct ata_port_info *port); |
89 | 90 | ||
91 | /* libata-acpi.c */ | ||
92 | #ifdef CONFIG_SATA_ACPI | ||
93 | extern int ata_acpi_exec_tfs(struct ata_port *ap); | ||
94 | #else | ||
95 | static inline int ata_acpi_exec_tfs(struct ata_port *ap) | ||
96 | { | ||
97 | return 0; | ||
98 | } | ||
99 | #endif | ||
90 | 100 | ||
91 | /* libata-scsi.c */ | 101 | /* libata-scsi.c */ |
92 | extern struct scsi_transport_template ata_scsi_transport_template; | 102 | extern struct scsi_transport_template ata_scsi_transport_template; |