139 struct sgen_inq_node *node_next;
140 } sgen_inq_node_t;
141
142 typedef struct sgen_type_node {
143 uchar_t node_type; /* SCSI device type */
144 struct sgen_type_node *node_next;
145 } sgen_type_node_t;
146
147 struct sgen_binddb {
148 int sdb_init; /* has this been initialized? */
149 kmutex_t sdb_lock; /* protects this structure */
150 sgen_inq_node_t *sdb_inq_nodes; /* inquiry binding nodes */
151 sgen_type_node_t *sdb_type_nodes; /* dev-type binding nodes */
152 };
153
154 #define SGEN_ESTIMATED_NUM_DEVS 4 /* for soft-state allocation */
155
156 /*
157 * Time to wait before a retry for commands returning Busy Status
158 */
159 #define SGEN_BSY_TIMEOUT (drv_usectohz(5 * 1000000))
160 #define SGEN_IO_TIME 60 /* seconds */
161
162 /*
163 * sgen_callback action codes
164 */
165 #define COMMAND_DONE 0 /* command completed, biodone it */
166 #define COMMAND_DONE_ERROR 1 /* command completed, indicate error */
167 #define FETCH_SENSE 2 /* CHECK CONDITION, so initiate sense */
168 /* fetch */
169
170 #define SET_BP_ERROR(bp, err) bioerror(bp, err);
171
172 #endif /* defined(_KERNEL) */
173
174 #ifdef __cplusplus
175 }
176 #endif
177
178 #endif /* _SYS_SCSI_TARGETS_SGENDEF_H */
|
139 struct sgen_inq_node *node_next;
140 } sgen_inq_node_t;
141
142 typedef struct sgen_type_node {
143 uchar_t node_type; /* SCSI device type */
144 struct sgen_type_node *node_next;
145 } sgen_type_node_t;
146
147 struct sgen_binddb {
148 int sdb_init; /* has this been initialized? */
149 kmutex_t sdb_lock; /* protects this structure */
150 sgen_inq_node_t *sdb_inq_nodes; /* inquiry binding nodes */
151 sgen_type_node_t *sdb_type_nodes; /* dev-type binding nodes */
152 };
153
154 #define SGEN_ESTIMATED_NUM_DEVS 4 /* for soft-state allocation */
155
156 /*
157 * Time to wait before a retry for commands returning Busy Status
158 */
159 #define SGEN_BSY_TIMEOUT drv_sectohz(5)
160 #define SGEN_IO_TIME 60 /* seconds */
161
162 /*
163 * sgen_callback action codes
164 */
165 #define COMMAND_DONE 0 /* command completed, biodone it */
166 #define COMMAND_DONE_ERROR 1 /* command completed, indicate error */
167 #define FETCH_SENSE 2 /* CHECK CONDITION, so initiate sense */
168 /* fetch */
169
170 #define SET_BP_ERROR(bp, err) bioerror(bp, err);
171
172 #endif /* defined(_KERNEL) */
173
174 #ifdef __cplusplus
175 }
176 #endif
177
178 #endif /* _SYS_SCSI_TARGETS_SGENDEF_H */
|