From 845dfa62f53935f60c752019d73dfe5e089727fa Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Sun, 20 Jan 2008 09:09:40 -0600 Subject: [PATCH] --- yaml --- r: 77154 b: refs/heads/master c: b30c2fc1113edfb2371427c10503ff942b0a0370 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/scsi/scsi_device.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d672cf3b6b24..8241f7fd0312 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a0899d4df534d2bcf671b0f647b809842309a9ae +refs/heads/master: b30c2fc1113edfb2371427c10503ff942b0a0370 diff --git a/trunk/include/scsi/scsi_device.h b/trunk/include/scsi/scsi_device.h index 3c8f898b160e..ab7acbe80960 100644 --- a/trunk/include/scsi/scsi_device.h +++ b/trunk/include/scsi/scsi_device.h @@ -387,6 +387,10 @@ static inline int scsi_device_qas(struct scsi_device *sdev) return 0; return sdev->inquiry[56] & 0x02; } +static inline int scsi_device_enclosure(struct scsi_device *sdev) +{ + return sdev->inquiry[6] & (1<<6); +} #define MODULE_ALIAS_SCSI_DEVICE(type) \ MODULE_ALIAS("scsi:t-" __stringify(type) "*")