aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_inline.h
diff options
context:
space:
mode:
authorAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>2013-09-17 07:54:49 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-10-25 04:58:01 -0400
commit26ffd7b45fe91f9051a58c31b98eaf530e0895aa (patch)
tree878915257750a393997d303b08923d90c578d676 /drivers/scsi/qla4xxx/ql4_inline.h
parent3af142fea7da55718b733b25be9d54ddb87acfcc (diff)
[SCSI] qla4xxx: Add support to set CHAP entries
Provide support to add/update the CHAP entries in adapter's flash using iscsi tools, like Open-iSCSI. Signed-off-by: Adheer Chandravanshi <adheer.chandravanshi@qlogic.com> Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_inline.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_inline.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_inline.h b/drivers/scsi/qla4xxx/ql4_inline.h
index 8503ad643bdd..655b7bb644d9 100644
--- a/drivers/scsi/qla4xxx/ql4_inline.h
+++ b/drivers/scsi/qla4xxx/ql4_inline.h
@@ -82,3 +82,15 @@ qla4xxx_disable_intrs(struct scsi_qla_host *ha)
82 __qla4xxx_disable_intrs(ha); 82 __qla4xxx_disable_intrs(ha);
83 spin_unlock_irqrestore(&ha->hardware_lock, flags); 83 spin_unlock_irqrestore(&ha->hardware_lock, flags);
84} 84}
85
86static inline int qla4xxx_get_chap_type(struct ql4_chap_table *chap_entry)
87{
88 int type;
89
90 if (chap_entry->flags & BIT_7)
91 type = LOCAL_CHAP;
92 else
93 type = BIDI_CHAP;
94
95 return type;
96}