diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-04-01 14:29:12 -0500 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-04-01 14:29:12 -0500 |
| commit | 6e07e16404deafadf45895a7d2aeb5feba53b479 (patch) | |
| tree | a7025d6632f0b3eb6232eafba79f331ead812fcf /include/linux/libata.h | |
| parent | 08a556db919f67e1e4d33ae8d40f7222da34d994 (diff) | |
| parent | e8e0619f68bff8f39d98c46aac85ed1d4557ccfd (diff) | |
Merge branch 'upstream'
Diffstat (limited to 'include/linux/libata.h')
| -rw-r--r-- | include/linux/libata.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index b248cb020f87..b0171e9accc4 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
| @@ -668,14 +668,24 @@ static inline unsigned int ata_tag_valid(unsigned int tag) | |||
| 668 | return (tag < ATA_MAX_QUEUE) ? 1 : 0; | 668 | return (tag < ATA_MAX_QUEUE) ? 1 : 0; |
| 669 | } | 669 | } |
| 670 | 670 | ||
| 671 | static inline unsigned int ata_class_present(unsigned int class) | 671 | static inline unsigned int ata_class_enabled(unsigned int class) |
| 672 | { | 672 | { |
| 673 | return class == ATA_DEV_ATA || class == ATA_DEV_ATAPI; | 673 | return class == ATA_DEV_ATA || class == ATA_DEV_ATAPI; |
| 674 | } | 674 | } |
| 675 | 675 | ||
| 676 | static inline unsigned int ata_dev_present(const struct ata_device *dev) | 676 | static inline unsigned int ata_class_disabled(unsigned int class) |
| 677 | { | 677 | { |
| 678 | return ata_class_present(dev->class); | 678 | return class == ATA_DEV_ATA_UNSUP || class == ATA_DEV_ATAPI_UNSUP; |
| 679 | } | ||
| 680 | |||
| 681 | static inline unsigned int ata_dev_enabled(const struct ata_device *dev) | ||
| 682 | { | ||
| 683 | return ata_class_enabled(dev->class); | ||
| 684 | } | ||
| 685 | |||
| 686 | static inline unsigned int ata_dev_disabled(const struct ata_device *dev) | ||
| 687 | { | ||
| 688 | return ata_class_disabled(dev->class); | ||
| 679 | } | 689 | } |
| 680 | 690 | ||
| 681 | static inline u8 ata_chk_status(struct ata_port *ap) | 691 | static inline u8 ata_chk_status(struct ata_port *ap) |
