diff options
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 620da7be07b7..d758168ee45d 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -363,6 +363,9 @@ struct ata_host { | |||
363 | void *private_data; | 363 | void *private_data; |
364 | const struct ata_port_operations *ops; | 364 | const struct ata_port_operations *ops; |
365 | unsigned long flags; | 365 | unsigned long flags; |
366 | #ifdef CONFIG_ATA_ACPI | ||
367 | acpi_handle acpi_handle; | ||
368 | #endif | ||
366 | struct ata_port *simplex_claimed; /* channel owning the DMA */ | 369 | struct ata_port *simplex_claimed; /* channel owning the DMA */ |
367 | struct ata_port *ports[0]; | 370 | struct ata_port *ports[0]; |
368 | }; | 371 | }; |
@@ -429,6 +432,9 @@ struct ata_device { | |||
429 | unsigned int devno; /* 0 or 1 */ | 432 | unsigned int devno; /* 0 or 1 */ |
430 | unsigned long flags; /* ATA_DFLAG_xxx */ | 433 | unsigned long flags; /* ATA_DFLAG_xxx */ |
431 | struct scsi_device *sdev; /* attached SCSI device */ | 434 | struct scsi_device *sdev; /* attached SCSI device */ |
435 | #ifdef CONFIG_ATA_ACPI | ||
436 | acpi_handle acpi_handle; | ||
437 | #endif | ||
432 | /* n_sector is used as CLEAR_OFFSET, read comment above CLEAR_OFFSET */ | 438 | /* n_sector is used as CLEAR_OFFSET, read comment above CLEAR_OFFSET */ |
433 | u64 n_sectors; /* size of device, if ATA */ | 439 | u64 n_sectors; /* size of device, if ATA */ |
434 | unsigned int class; /* ATA_DEV_xxx */ | 440 | unsigned int class; /* ATA_DEV_xxx */ |
@@ -457,10 +463,6 @@ struct ata_device { | |||
457 | struct ata_ering ering; | 463 | struct ata_ering ering; |
458 | int spdn_cnt; | 464 | int spdn_cnt; |
459 | unsigned int horkage; /* List of broken features */ | 465 | unsigned int horkage; /* List of broken features */ |
460 | #ifdef CONFIG_ATA_ACPI | ||
461 | /* ACPI objects info */ | ||
462 | acpi_handle obj_handle; | ||
463 | #endif | ||
464 | }; | 466 | }; |
465 | 467 | ||
466 | /* Offset into struct ata_device. Fields above it are maintained | 468 | /* Offset into struct ata_device. Fields above it are maintained |
@@ -549,6 +551,9 @@ struct ata_port { | |||
549 | 551 | ||
550 | void *private_data; | 552 | void *private_data; |
551 | 553 | ||
554 | #ifdef CONFIG_ATA_ACPI | ||
555 | acpi_handle acpi_handle; | ||
556 | #endif | ||
552 | u8 sector_buf[ATA_SECT_SIZE]; /* owned by EH */ | 557 | u8 sector_buf[ATA_SECT_SIZE]; /* owned by EH */ |
553 | }; | 558 | }; |
554 | 559 | ||