From 1f7856586b3ee4adc8c90e621c35ce03601e4742 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Sun, 2 Apr 2006 17:54:46 +0900 Subject: [PATCH] --- yaml --- r: 29217 b: refs/heads/master c: 002c8054fa8d0f1afce2b0c728be32d338b9293a h: refs/heads/master i: 29215: eeb6a0b9e1f532d03c0590e0b5debae2589a7e23 v: v3 --- [refs] | 2 +- trunk/include/linux/libata.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 46a89db837d7..5efb32a62686 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 852ee16a914fb3ada2f81e222677c04defc2f15f +refs/heads/master: 002c8054fa8d0f1afce2b0c728be32d338b9293a diff --git a/trunk/include/linux/libata.h b/trunk/include/linux/libata.h index c6883ba8cba9..0f8e3720edd9 100644 --- a/trunk/include/linux/libata.h +++ b/trunk/include/linux/libata.h @@ -682,6 +682,11 @@ static inline unsigned int ata_class_disabled(unsigned int class) return class == ATA_DEV_ATA_UNSUP || class == ATA_DEV_ATAPI_UNSUP; } +static inline unsigned int ata_class_absent(unsigned int class) +{ + return !ata_class_enabled(class) && !ata_class_disabled(class); +} + static inline unsigned int ata_dev_enabled(const struct ata_device *dev) { return ata_class_enabled(dev->class); @@ -692,6 +697,11 @@ static inline unsigned int ata_dev_disabled(const struct ata_device *dev) return ata_class_disabled(dev->class); } +static inline unsigned int ata_dev_absent(const struct ata_device *dev) +{ + return ata_class_absent(dev->class); +} + static inline u8 ata_chk_status(struct ata_port *ap) { return ap->ops->check_status(ap);