diff options
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index ee9169d817b1..c08bd2f238e3 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h | |||
@@ -1305,6 +1305,22 @@ static inline int ipr_is_gscsi(struct ipr_resource_entry *res) | |||
1305 | } | 1305 | } |
1306 | 1306 | ||
1307 | /** | 1307 | /** |
1308 | * ipr_is_scsi_disk - Determine if a resource is a SCSI disk | ||
1309 | * @res: resource entry struct | ||
1310 | * | ||
1311 | * Return value: | ||
1312 | * 1 if SCSI disk / 0 if not SCSI disk | ||
1313 | **/ | ||
1314 | static inline int ipr_is_scsi_disk(struct ipr_resource_entry *res) | ||
1315 | { | ||
1316 | if (ipr_is_af_dasd_device(res) || | ||
1317 | (ipr_is_gscsi(res) && IPR_IS_DASD_DEVICE(res->cfgte.std_inq_data))) | ||
1318 | return 1; | ||
1319 | else | ||
1320 | return 0; | ||
1321 | } | ||
1322 | |||
1323 | /** | ||
1308 | * ipr_is_naca_model - Determine if a resource is using NACA queueing model | 1324 | * ipr_is_naca_model - Determine if a resource is using NACA queueing model |
1309 | * @res: resource entry struct | 1325 | * @res: resource entry struct |
1310 | * | 1326 | * |