aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 53da442f892d..64f90e17e51d 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -161,6 +161,8 @@ enum {
161 ATA_DFLAG_DETACH = (1 << 24), 161 ATA_DFLAG_DETACH = (1 << 24),
162 ATA_DFLAG_DETACHED = (1 << 25), 162 ATA_DFLAG_DETACHED = (1 << 25),
163 163
164 ATA_DFLAG_DA = (1 << 26), /* device supports Device Attention */
165
164 ATA_DEV_UNKNOWN = 0, /* unknown device */ 166 ATA_DEV_UNKNOWN = 0, /* unknown device */
165 ATA_DEV_ATA = 1, /* ATA device */ 167 ATA_DEV_ATA = 1, /* ATA device */
166 ATA_DEV_ATA_UNSUP = 2, /* ATA device (unsupported) */ 168 ATA_DEV_ATA_UNSUP = 2, /* ATA device (unsupported) */
@@ -545,9 +547,6 @@ struct ata_host {
545 struct mutex eh_mutex; 547 struct mutex eh_mutex;
546 struct task_struct *eh_owner; 548 struct task_struct *eh_owner;
547 549
548#ifdef CONFIG_ATA_ACPI
549 acpi_handle acpi_handle;
550#endif
551 struct ata_port *simplex_claimed; /* channel owning the DMA */ 550 struct ata_port *simplex_claimed; /* channel owning the DMA */
552 struct ata_port *ports[0]; 551 struct ata_port *ports[0];
553}; 552};
@@ -615,7 +614,6 @@ struct ata_device {
615 struct scsi_device *sdev; /* attached SCSI device */ 614 struct scsi_device *sdev; /* attached SCSI device */
616 void *private_data; 615 void *private_data;
617#ifdef CONFIG_ATA_ACPI 616#ifdef CONFIG_ATA_ACPI
618 acpi_handle acpi_handle;
619 union acpi_object *gtf_cache; 617 union acpi_object *gtf_cache;
620 unsigned int gtf_filter; 618 unsigned int gtf_filter;
621#endif 619#endif
@@ -797,7 +795,6 @@ struct ata_port {
797 void *private_data; 795 void *private_data;
798 796
799#ifdef CONFIG_ATA_ACPI 797#ifdef CONFIG_ATA_ACPI
800 acpi_handle acpi_handle;
801 struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */ 798 struct ata_acpi_gtm __acpi_init_gtm; /* use ata_acpi_init_gtm() */
802#endif 799#endif
803 /* owned by EH */ 800 /* owned by EH */
@@ -1116,6 +1113,8 @@ int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm);
1116int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm); 1113int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm);
1117unsigned long ata_acpi_gtm_xfermask(struct ata_device *dev, 1114unsigned long ata_acpi_gtm_xfermask(struct ata_device *dev,
1118 const struct ata_acpi_gtm *gtm); 1115 const struct ata_acpi_gtm *gtm);
1116acpi_handle ata_ap_acpi_handle(struct ata_port *ap);
1117acpi_handle ata_dev_acpi_handle(struct ata_device *dev);
1119int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm); 1118int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm);
1120#else 1119#else
1121static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) 1120static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap)