Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ocs_fc/ocs.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
* @brief Interrupt context | * @brief Interrupt context | ||||
*/ | */ | ||||
typedef struct ocs_intr_ctx_s { | typedef struct ocs_intr_ctx_s { | ||||
uint32_t vec; /** Zero based interrupt vector */ | uint32_t vec; /** Zero based interrupt vector */ | ||||
void *softc; /** software context for interrupt */ | void *softc; /** software context for interrupt */ | ||||
char name[64]; /** label for this context */ | char name[64]; /** label for this context */ | ||||
} ocs_intr_ctx_t; | } ocs_intr_ctx_t; | ||||
typedef struct ocs_fc_rport_db_s { | |||||
uint32_t node_id; | |||||
uint32_t state; | |||||
uint8_t is_target; | |||||
uint8_t is_initiator; | |||||
ken: Looks like you have a space/tab inconsistency in this structure. I would suggest changing it… | |||||
uint32_t port_id; | |||||
uint64_t wwnn; | |||||
uint64_t wwpn; | |||||
uint32_t gone_timer; | |||||
} ocs_fc_target_t; | |||||
#define OCS_TGT_STATE_NONE 0 /* Empty DB slot */ | |||||
#define OCS_TGT_STATE_VALID 1 /* Valid*/ | |||||
#define OCS_TGT_STATE_LOST 2 /* LOST*/ | |||||
typedef struct ocs_fcport_s { | typedef struct ocs_fcport_s { | ||||
ocs_t *ocs; | |||||
struct cam_sim *sim; | struct cam_sim *sim; | ||||
struct cam_path *path; | struct cam_path *path; | ||||
uint32_t role; | uint32_t role; | ||||
ocs_fc_target_t tgt[OCS_MAX_TARGETS]; | |||||
int lost_device_time; | |||||
struct callout ldt; /* device lost timer */ | |||||
struct task ltask; | |||||
ocs_tgt_resource_t targ_rsrc_wildcard; | ocs_tgt_resource_t targ_rsrc_wildcard; | ||||
ocs_tgt_resource_t targ_rsrc[OCS_MAX_LUN]; | ocs_tgt_resource_t targ_rsrc[OCS_MAX_LUN]; | ||||
ocs_vport_spec_t *vport; | ocs_vport_spec_t *vport; | ||||
} ocs_fcport; | } ocs_fcport; | ||||
#define FCPORT(ocs, chan) (&((ocs_fcport *)(ocs)->fcports)[(chan)]) | #define FCPORT(ocs, chan) (&((ocs_fcport *)(ocs)->fcports)[(chan)]) | ||||
/** | /** | ||||
* @brief Driver's context | * @brief Driver's context | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | struct ocs_softc { | ||||
* target to continually query the nameserver. | * target to continually query the nameserver. | ||||
* Note: This is only valid when target RSCN handling is enabled | * Note: This is only valid when target RSCN handling is enabled | ||||
*/ | */ | ||||
time_t tgt_rscn_period_msec; /*>> minimum target RSCN period */ | time_t tgt_rscn_period_msec; /*>> minimum target RSCN period */ | ||||
uint32_t enable_task_set_full; | uint32_t enable_task_set_full; | ||||
uint32_t io_in_use; | uint32_t io_in_use; | ||||
uint32_t io_high_watermark; /**< used to send task set full */ | uint32_t io_high_watermark; /**< used to send task set full */ | ||||
struct mtx sim_lock; | struct mtx sim_lock; | ||||
uint32_t config_tgt:1, /**< Configured to support target mode */ | uint32_t config_tgt:1, /**< Configured to support target mode */ | ||||
config_ini:1; /**< Configured to support initiator mode */ | config_ini:1; /**< Configured to support initiator mode */ | ||||
uint32_t nodedb_mask; /**< Node debugging mask */ | uint32_t nodedb_mask; /**< Node debugging mask */ | ||||
char modeldesc[64]; | char modeldesc[64]; | ||||
char serialnum[64]; | char serialnum[64]; | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |
Looks like you have a space/tab inconsistency in this structure. I would suggest changing it all to tabs.