Compilation if target mode disabled fixed

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-07-29 17:19:58 +00:00
parent 27e1f7aa1a
commit 5a5f1d3247
4 changed files with 17 additions and 18 deletions
-1
View File
@@ -20,7 +20,6 @@
* This should be included only from within qla2xxx module.
*/
#ifndef __QLA2X_TGT_H
#define __QLA2X_TGT_H
+1 -17
View File
@@ -326,12 +326,6 @@ typedef struct
}ctio_ret_entry_t;
#endif
enum nexus_wait_type {
WAIT_HOST = 0,
WAIT_TARGET,
WAIT_LUN,
};
/********************************************************************\
* Type Definitions used by initiator & target halves
\********************************************************************/
@@ -356,7 +350,7 @@ struct qla2x_tgt_target
{
int magic;
/* Callbacks - H/W lock MUST be held while calling any*/
/* Callbacks - H/W lock MUST be held while calling any */
request_t *(*req_pkt)(scsi_qla_host_t *ha);
void (*isp_cmd)(scsi_qla_host_t *ha);
void (*enable_lun)(scsi_qla_host_t *ha);
@@ -371,14 +365,4 @@ int qla2xxx_tgt_register_driver(/* IN */ struct qla2x_tgt_initiator *tgt,
void qla2xxx_tgt_unregister_driver(void);
/* from qla_os.c for __qla2x00_host_reset in qla_init.c*/
int
qla2x00_wait_for_loop_ready(scsi_qla_host_t *ha);
int
qla2x00_wait_for_hba_online(scsi_qla_host_t *ha);
int
qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *ha, unsigned int t,
unsigned int l, enum nexus_wait_type type);
#endif
+6
View File
@@ -2616,6 +2616,12 @@ typedef struct scsi_qla_host {
struct qla_chip_state_84xx *cs84xx;
} scsi_qla_host_t;
/* Wait type for qla2x00_eh_wait_for_pending_commands() */
enum nexus_wait_type {
WAIT_HOST = 0,
WAIT_TARGET,
WAIT_LUN,
};
/*
* Macros to help code, maintain, etc.
+10
View File
@@ -366,4 +366,14 @@ extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *);
*/
extern int qla2x00_dfs_setup(scsi_qla_host_t *);
extern int qla2x00_dfs_remove(scsi_qla_host_t *);
/* from qla_os.c for __qla2x00_host_reset in qla_init.c */
int
qla2x00_wait_for_loop_ready(scsi_qla_host_t *ha);
int
qla2x00_wait_for_hba_online(scsi_qla_host_t *ha);
int
qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *ha, unsigned int t,
unsigned int l, enum nexus_wait_type type);
#endif /* _QLA_GBL_H */