Merge branch 'next' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[linux-2.6-microblaze.git] / drivers / scsi / qla4xxx / ql4_inline.h
index 8503ad6..655b7bb 100644 (file)
@@ -82,3 +82,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;
+}