diff options
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_inline.h')
| -rw-r--r-- | drivers/scsi/qla4xxx/ql4_inline.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_inline.h b/drivers/scsi/qla4xxx/ql4_inline.h index 6f4decd44c6a..9ced6b325cb3 100644 --- a/drivers/scsi/qla4xxx/ql4_inline.h +++ b/drivers/scsi/qla4xxx/ql4_inline.h @@ -1,8 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ /* * QLogic iSCSI HBA Driver - * Copyright (c) 2003-2012 QLogic Corporation - * - * See LICENSE.qla4xxx for copyright and licensing details. + * Copyright (c) 2003-2013 QLogic Corporation */ /* @@ -82,3 +81,15 @@ qla4xxx_disable_intrs(struct scsi_qla_host *ha) __qla4xxx_disable_intrs(ha); spin_unlock_irqrestore(&ha->hardware_lock, flags); } + +static inline int qla4xxx_get_chap_type(struct ql4_chap_table *chap_entry) +{ + int type; + + if (chap_entry->flags & BIT_7) + type = LOCAL_CHAP; + else + type = BIDI_CHAP; + + return type; +} |
