aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_inline.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_inline.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_inline.h b/drivers/scsi/qla2xxx/qla_inline.h
index 8f99febc15d..6cf7036ccf4 100644
--- a/drivers/scsi/qla2xxx/qla_inline.h
+++ b/drivers/scsi/qla2xxx/qla_inline.h
@@ -236,3 +236,14 @@ qla2x00_delete_timer_from_cmd(srb_t *sp)
236 } 236 }
237} 237}
238 238
239
240static inline int qla2x00_is_reserved_id(scsi_qla_host_t *, uint16_t);
241static inline int
242qla2x00_is_reserved_id(scsi_qla_host_t *ha, uint16_t loop_id)
243{
244 if (IS_QLA24XX(ha) || IS_QLA25XX(ha))
245 return (loop_id > NPH_LAST_HANDLE);
246
247 return ((loop_id > ha->last_loop_id && loop_id < SNS_FIRST_LOOP_ID) ||
248 loop_id == MANAGEMENT_SERVER || loop_id == BROADCAST);
249};