diff options
| author | Jeff Garzik <jgarzik@redhat.com> | 2004-05-16 14:19:19 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@redhat.com> | 2004-05-16 14:19:19 -0400 |
| commit | a163af74bf0a7dc9906c31f05a687cf2253fbff7 (patch) | |
| tree | 1f569d26fcc3f3c0fda3641bbfdd2c3c0a248f46 /include | |
| parent | 7f594e47663f5121d34ffdf43eba8a8109bd1be7 (diff) | |
[libata] comments and constants
* note a nasty problem with shared interrupts that must be fixed
before we turn on certain code paths.
* add a few comments to the READ CAPACITY scsi simulator
* remove a FIXME comment from the TEST UNIT READY scsi simulator
* add constant for ATA command CHECK POWER MODE, and associated
"mandatory" power management feature set bit.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/ata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h index 4459a429ba0a..45c2b4670739 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -104,6 +104,7 @@ enum { ATA_REG_IRQ = ATA_REG_NSECT, /* ATA device commands */ + ATA_CMD_CHK_POWER = 0xE5, /* check power mode */ ATA_CMD_EDD = 0x90, /* execute device diagnostic */ ATA_CMD_FLUSH = 0xE7, ATA_CMD_FLUSH_EXT = 0xEA, @@ -204,6 +205,7 @@ struct ata_taskfile { #define ata_id_wcache_enabled(dev) ((dev)->id[85] & (1 << 5)) #define ata_id_has_lba48(dev) ((dev)->id[83] & (1 << 10)) #define ata_id_has_wcache(dev) ((dev)->id[82] & (1 << 5)) +#define ata_id_has_pm(dev) ((dev)->id[82] & (1 << 3)) #define ata_id_has_lba(dev) ((dev)->id[49] & (1 << 8)) #define ata_id_has_dma(dev) ((dev)->id[49] & (1 << 9)) #define ata_id_removeable(dev) ((dev)->id[0] & (1 << 7)) |
