xref: /openbmc/linux/drivers/s390/scsi/zfcp_fc.h (revision 781a7dab)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
24318e08cSChristof Schmitt /*
34318e08cSChristof Schmitt  * zfcp device driver
44318e08cSChristof Schmitt  *
54318e08cSChristof Schmitt  * Fibre Channel related definitions and inline functions for the zfcp
64318e08cSChristof Schmitt  * device driver
74318e08cSChristof Schmitt  *
8a099b7b1SBenjamin Block  * Copyright IBM Corp. 2009, 2017
94318e08cSChristof Schmitt  */
104318e08cSChristof Schmitt 
114318e08cSChristof Schmitt #ifndef ZFCP_FC_H
124318e08cSChristof Schmitt #define ZFCP_FC_H
134318e08cSChristof Schmitt 
149d05ce2cSChristof Schmitt #include <scsi/fc/fc_els.h>
154318e08cSChristof Schmitt #include <scsi/fc/fc_fcp.h>
16dbf5dfe9SChristof Schmitt #include <scsi/fc/fc_ns.h>
174318e08cSChristof Schmitt #include <scsi/scsi_cmnd.h>
184318e08cSChristof Schmitt #include <scsi/scsi_tcq.h>
197c7dc196SChristof Schmitt #include "zfcp_fsf.h"
204318e08cSChristof Schmitt 
21dbf5dfe9SChristof Schmitt #define ZFCP_FC_CT_SIZE_PAGE	  (PAGE_SIZE - sizeof(struct fc_ct_hdr))
22dbf5dfe9SChristof Schmitt #define ZFCP_FC_GPN_FT_ENT_PAGE	  (ZFCP_FC_CT_SIZE_PAGE \
23dbf5dfe9SChristof Schmitt 					/ sizeof(struct fc_gpn_ft_resp))
24dbf5dfe9SChristof Schmitt #define ZFCP_FC_GPN_FT_NUM_BUFS	  4 /* memory pages */
25dbf5dfe9SChristof Schmitt 
26dbf5dfe9SChristof Schmitt #define ZFCP_FC_GPN_FT_MAX_SIZE	  (ZFCP_FC_GPN_FT_NUM_BUFS * PAGE_SIZE \
27dbf5dfe9SChristof Schmitt 					- sizeof(struct fc_ct_hdr))
28dbf5dfe9SChristof Schmitt #define ZFCP_FC_GPN_FT_MAX_ENT	  (ZFCP_FC_GPN_FT_NUM_BUFS * \
29dbf5dfe9SChristof Schmitt 					(ZFCP_FC_GPN_FT_ENT_PAGE + 1))
30dbf5dfe9SChristof Schmitt 
3151375ee8SSwen Schillig #define ZFCP_FC_CTELS_TMO	(2 * FC_DEF_R_A_TOV / 1000)
3251375ee8SSwen Schillig 
33dbf5dfe9SChristof Schmitt /**
342d1e547fSSven Schuetz  * struct zfcp_fc_event - FC HBAAPI event for internal queueing from irq context
352d1e547fSSven Schuetz  * @code: Event code
362d1e547fSSven Schuetz  * @data: Event data
372d1e547fSSven Schuetz  * @list: list_head for zfcp_fc_events list
382d1e547fSSven Schuetz  */
392d1e547fSSven Schuetz struct zfcp_fc_event {
402d1e547fSSven Schuetz 	enum fc_host_event_code code;
412d1e547fSSven Schuetz 	u32 data;
422d1e547fSSven Schuetz 	struct list_head list;
432d1e547fSSven Schuetz };
442d1e547fSSven Schuetz 
452d1e547fSSven Schuetz /**
462d1e547fSSven Schuetz  * struct zfcp_fc_events - Infrastructure for posting FC events from irq context
472d1e547fSSven Schuetz  * @list: List for queueing of events from irq context to workqueue
482d1e547fSSven Schuetz  * @list_lock: Lock for event list
492d1e547fSSven Schuetz  * @work: work_struct for forwarding events in workqueue
502d1e547fSSven Schuetz */
512d1e547fSSven Schuetz struct zfcp_fc_events {
522d1e547fSSven Schuetz 	struct list_head list;
532d1e547fSSven Schuetz 	spinlock_t list_lock;
542d1e547fSSven Schuetz 	struct work_struct work;
552d1e547fSSven Schuetz };
562d1e547fSSven Schuetz 
572d1e547fSSven Schuetz /**
58dbf5dfe9SChristof Schmitt  * struct zfcp_fc_gid_pn_req - container for ct header plus gid_pn request
59dbf5dfe9SChristof Schmitt  * @ct_hdr: FC GS common transport header
60dbf5dfe9SChristof Schmitt  * @gid_pn: GID_PN request
61dbf5dfe9SChristof Schmitt  */
62dbf5dfe9SChristof Schmitt struct zfcp_fc_gid_pn_req {
63dbf5dfe9SChristof Schmitt 	struct fc_ct_hdr	ct_hdr;
64dbf5dfe9SChristof Schmitt 	struct fc_ns_gid_pn	gid_pn;
65dbf5dfe9SChristof Schmitt } __packed;
66dbf5dfe9SChristof Schmitt 
67dbf5dfe9SChristof Schmitt /**
68fcf7e614SChristof Schmitt  * struct zfcp_fc_gid_pn_rsp - container for ct header plus gid_pn response
69dbf5dfe9SChristof Schmitt  * @ct_hdr: FC GS common transport header
70dbf5dfe9SChristof Schmitt  * @gid_pn: GID_PN response
71dbf5dfe9SChristof Schmitt  */
72fcf7e614SChristof Schmitt struct zfcp_fc_gid_pn_rsp {
73dbf5dfe9SChristof Schmitt 	struct fc_ct_hdr	ct_hdr;
74dbf5dfe9SChristof Schmitt 	struct fc_gid_pn_resp	gid_pn;
75dbf5dfe9SChristof Schmitt } __packed;
76dbf5dfe9SChristof Schmitt 
77dbf5dfe9SChristof Schmitt /**
78dbf5dfe9SChristof Schmitt  * struct zfcp_fc_gpn_ft - container for ct header plus gpn_ft request
79dbf5dfe9SChristof Schmitt  * @ct_hdr: FC GS common transport header
80dbf5dfe9SChristof Schmitt  * @gpn_ft: GPN_FT request
81dbf5dfe9SChristof Schmitt  */
82dbf5dfe9SChristof Schmitt struct zfcp_fc_gpn_ft_req {
83dbf5dfe9SChristof Schmitt 	struct fc_ct_hdr	ct_hdr;
84dbf5dfe9SChristof Schmitt 	struct fc_ns_gid_ft	gpn_ft;
85dbf5dfe9SChristof Schmitt } __packed;
86dbf5dfe9SChristof Schmitt 
87dbf5dfe9SChristof Schmitt /**
88038d9446SChristof Schmitt  * struct zfcp_fc_gspn_req - container for ct header plus GSPN_ID request
89038d9446SChristof Schmitt  * @ct_hdr: FC GS common transport header
90038d9446SChristof Schmitt  * @gspn: GSPN_ID request
91038d9446SChristof Schmitt  */
92038d9446SChristof Schmitt struct zfcp_fc_gspn_req {
93038d9446SChristof Schmitt 	struct fc_ct_hdr	ct_hdr;
94038d9446SChristof Schmitt 	struct fc_gid_pn_resp	gspn;
95038d9446SChristof Schmitt } __packed;
96038d9446SChristof Schmitt 
97038d9446SChristof Schmitt /**
98038d9446SChristof Schmitt  * struct zfcp_fc_gspn_rsp - container for ct header plus GSPN_ID response
99038d9446SChristof Schmitt  * @ct_hdr: FC GS common transport header
100038d9446SChristof Schmitt  * @gspn: GSPN_ID response
101038d9446SChristof Schmitt  * @name: The name string of the GSPN_ID response
102038d9446SChristof Schmitt  */
103038d9446SChristof Schmitt struct zfcp_fc_gspn_rsp {
104038d9446SChristof Schmitt 	struct fc_ct_hdr	ct_hdr;
105038d9446SChristof Schmitt 	struct fc_gspn_resp	gspn;
106038d9446SChristof Schmitt 	char			name[FC_SYMBOLIC_NAME_SIZE];
107038d9446SChristof Schmitt } __packed;
108038d9446SChristof Schmitt 
109038d9446SChristof Schmitt /**
110038d9446SChristof Schmitt  * struct zfcp_fc_rspn_req - container for ct header plus RSPN_ID request
111038d9446SChristof Schmitt  * @ct_hdr: FC GS common transport header
112038d9446SChristof Schmitt  * @rspn: RSPN_ID request
113038d9446SChristof Schmitt  * @name: The name string of the RSPN_ID request
114038d9446SChristof Schmitt  */
115038d9446SChristof Schmitt struct zfcp_fc_rspn_req {
116038d9446SChristof Schmitt 	struct fc_ct_hdr	ct_hdr;
117038d9446SChristof Schmitt 	struct fc_ns_rspn	rspn;
118038d9446SChristof Schmitt 	char			name[FC_SYMBOLIC_NAME_SIZE];
119038d9446SChristof Schmitt } __packed;
120038d9446SChristof Schmitt 
121038d9446SChristof Schmitt /**
122087897e3SChristof Schmitt  * struct zfcp_fc_req - Container for FC ELS and CT requests sent from zfcp
123087897e3SChristof Schmitt  * @ct_els: data required for issuing fsf command
124623cd180SSteffen Maier  * @sg_req: scatterlist entry for request data, refers to embedded @u submember
125623cd180SSteffen Maier  * @sg_rsp: scatterlist entry for response data, refers to embedded @u submember
126623cd180SSteffen Maier  * @u: request and response specific data
127623cd180SSteffen Maier  * @u.adisc: ADISC specific data
128623cd180SSteffen Maier  * @u.adisc.req: ADISC request
129623cd180SSteffen Maier  * @u.adisc.rsp: ADISC response
130623cd180SSteffen Maier  * @u.gid_pn: GID_PN specific data
131623cd180SSteffen Maier  * @u.gid_pn.req: GID_PN request
132623cd180SSteffen Maier  * @u.gid_pn.rsp: GID_PN response
133623cd180SSteffen Maier  * @u.gpn_ft: GPN_FT specific data
134623cd180SSteffen Maier  * @u.gpn_ft.sg_rsp2: GPN_FT response, not embedded here, allocated elsewhere
135623cd180SSteffen Maier  * @u.gpn_ft.req: GPN_FT request
136623cd180SSteffen Maier  * @u.gspn: GSPN specific data
137623cd180SSteffen Maier  * @u.gspn.req: GSPN request
138623cd180SSteffen Maier  * @u.gspn.rsp: GSPN response
139623cd180SSteffen Maier  * @u.rspn: RSPN specific data
140623cd180SSteffen Maier  * @u.rspn.req: RSPN request
141623cd180SSteffen Maier  * @u.rspn.rsp: RSPN response
1429d05ce2cSChristof Schmitt  */
143087897e3SChristof Schmitt struct zfcp_fc_req {
144087897e3SChristof Schmitt 	struct zfcp_fsf_ct_els				ct_els;
145087897e3SChristof Schmitt 	struct scatterlist				sg_req;
146087897e3SChristof Schmitt 	struct scatterlist				sg_rsp;
147087897e3SChristof Schmitt 	union {
148087897e3SChristof Schmitt 		struct {
149087897e3SChristof Schmitt 			struct fc_els_adisc		req;
150087897e3SChristof Schmitt 			struct fc_els_adisc		rsp;
151087897e3SChristof Schmitt 		} adisc;
152fcf7e614SChristof Schmitt 		struct {
153fcf7e614SChristof Schmitt 			struct zfcp_fc_gid_pn_req	req;
154fcf7e614SChristof Schmitt 			struct zfcp_fc_gid_pn_rsp	rsp;
155fcf7e614SChristof Schmitt 		} gid_pn;
156f9773229SChristof Schmitt 		struct {
157f9773229SChristof Schmitt 			struct scatterlist sg_rsp2[ZFCP_FC_GPN_FT_NUM_BUFS - 1];
158f9773229SChristof Schmitt 			struct zfcp_fc_gpn_ft_req	req;
159f9773229SChristof Schmitt 		} gpn_ft;
160038d9446SChristof Schmitt 		struct {
161038d9446SChristof Schmitt 			struct zfcp_fc_gspn_req		req;
162038d9446SChristof Schmitt 			struct zfcp_fc_gspn_rsp		rsp;
163038d9446SChristof Schmitt 		} gspn;
164038d9446SChristof Schmitt 		struct {
165038d9446SChristof Schmitt 			struct zfcp_fc_rspn_req		req;
166038d9446SChristof Schmitt 			struct fc_ct_hdr		rsp;
167038d9446SChristof Schmitt 		} rspn;
168087897e3SChristof Schmitt 	} u;
1699d05ce2cSChristof Schmitt };
1709d05ce2cSChristof Schmitt 
1719d05ce2cSChristof Schmitt /**
172bd0072ecSChristof Schmitt  * enum zfcp_fc_wka_status - FC WKA port status in zfcp
173bd0072ecSChristof Schmitt  * @ZFCP_FC_WKA_PORT_OFFLINE: Port is closed and not in use
174bd0072ecSChristof Schmitt  * @ZFCP_FC_WKA_PORT_CLOSING: The FSF "close port" request is pending
175bd0072ecSChristof Schmitt  * @ZFCP_FC_WKA_PORT_OPENING: The FSF "open port" request is pending
176bd0072ecSChristof Schmitt  * @ZFCP_FC_WKA_PORT_ONLINE: The port is open and the port handle is valid
177bd0072ecSChristof Schmitt  */
178bd0072ecSChristof Schmitt enum zfcp_fc_wka_status {
179bd0072ecSChristof Schmitt 	ZFCP_FC_WKA_PORT_OFFLINE,
180bd0072ecSChristof Schmitt 	ZFCP_FC_WKA_PORT_CLOSING,
181bd0072ecSChristof Schmitt 	ZFCP_FC_WKA_PORT_OPENING,
182bd0072ecSChristof Schmitt 	ZFCP_FC_WKA_PORT_ONLINE,
183bd0072ecSChristof Schmitt };
184bd0072ecSChristof Schmitt 
185bd0072ecSChristof Schmitt /**
186bd0072ecSChristof Schmitt  * struct zfcp_fc_wka_port - representation of well-known-address (WKA) FC port
187bd0072ecSChristof Schmitt  * @adapter: Pointer to adapter structure this WKA port belongs to
188*781a7dabSSteffen Maier  * @opened: Wait for completion of open command
189*781a7dabSSteffen Maier  * @closed: Wait for completion of close command
190bd0072ecSChristof Schmitt  * @status: Current status of WKA port
191bd0072ecSChristof Schmitt  * @refcount: Reference count to keep port open as long as it is in use
192bd0072ecSChristof Schmitt  * @d_id: FC destination id or well-known-address
193bd0072ecSChristof Schmitt  * @handle: FSF handle for the open WKA port
194bd0072ecSChristof Schmitt  * @mutex: Mutex used during opening/closing state changes
195bd0072ecSChristof Schmitt  * @work: For delaying the closing of the WKA port
196bd0072ecSChristof Schmitt  */
197bd0072ecSChristof Schmitt struct zfcp_fc_wka_port {
198bd0072ecSChristof Schmitt 	struct zfcp_adapter	*adapter;
199*781a7dabSSteffen Maier 	wait_queue_head_t	opened;
200*781a7dabSSteffen Maier 	wait_queue_head_t	closed;
201bd0072ecSChristof Schmitt 	enum zfcp_fc_wka_status	status;
202bd0072ecSChristof Schmitt 	atomic_t		refcount;
203bd0072ecSChristof Schmitt 	u32			d_id;
204bd0072ecSChristof Schmitt 	u32			handle;
205bd0072ecSChristof Schmitt 	struct mutex		mutex;
206bd0072ecSChristof Schmitt 	struct delayed_work	work;
207bd0072ecSChristof Schmitt };
208bd0072ecSChristof Schmitt 
209bd0072ecSChristof Schmitt /**
210bd0072ecSChristof Schmitt  * struct zfcp_fc_wka_ports - Data structures for FC generic services
211bd0072ecSChristof Schmitt  * @ms: FC Management service
212bd0072ecSChristof Schmitt  * @ts: FC time service
213bd0072ecSChristof Schmitt  * @ds: FC directory service
214bd0072ecSChristof Schmitt  * @as: FC alias service
215bd0072ecSChristof Schmitt  */
216bd0072ecSChristof Schmitt struct zfcp_fc_wka_ports {
217bd0072ecSChristof Schmitt 	struct zfcp_fc_wka_port ms;
218bd0072ecSChristof Schmitt 	struct zfcp_fc_wka_port ts;
219bd0072ecSChristof Schmitt 	struct zfcp_fc_wka_port ds;
220bd0072ecSChristof Schmitt 	struct zfcp_fc_wka_port as;
221bd0072ecSChristof Schmitt };
222bd0072ecSChristof Schmitt 
223bd0072ecSChristof Schmitt /**
2244318e08cSChristof Schmitt  * zfcp_fc_scsi_to_fcp - setup FCP command with data from scsi_cmnd
2254318e08cSChristof Schmitt  * @fcp: fcp_cmnd to setup
2264318e08cSChristof Schmitt  * @scsi: scsi_cmnd where to get LUN, task attributes/flags and CDB
2274318e08cSChristof Schmitt  */
2284318e08cSChristof Schmitt static inline
zfcp_fc_scsi_to_fcp(struct fcp_cmnd * fcp,struct scsi_cmnd * scsi)229e0116c91SSteffen Maier void zfcp_fc_scsi_to_fcp(struct fcp_cmnd *fcp, struct scsi_cmnd *scsi)
2304318e08cSChristof Schmitt {
2319d464fc1SSteffen Maier 	u32 datalen;
2329d464fc1SSteffen Maier 
2334318e08cSChristof Schmitt 	int_to_scsilun(scsi->device->lun, (struct scsi_lun *) &fcp->fc_lun);
2344318e08cSChristof Schmitt 
2354318e08cSChristof Schmitt 	fcp->fc_pri_ta = FCP_PTA_SIMPLE;
2364318e08cSChristof Schmitt 
2374318e08cSChristof Schmitt 	if (scsi->sc_data_direction == DMA_FROM_DEVICE)
2384318e08cSChristof Schmitt 		fcp->fc_flags |= FCP_CFL_RDDATA;
2394318e08cSChristof Schmitt 	if (scsi->sc_data_direction == DMA_TO_DEVICE)
2404318e08cSChristof Schmitt 		fcp->fc_flags |= FCP_CFL_WRDATA;
2414318e08cSChristof Schmitt 
2424318e08cSChristof Schmitt 	memcpy(fcp->fc_cdb, scsi->cmnd, scsi->cmd_len);
2434318e08cSChristof Schmitt 
2449d464fc1SSteffen Maier 	datalen = scsi_bufflen(scsi);
2459d464fc1SSteffen Maier 	fcp->fc_dl = cpu_to_be32(datalen);
246ef3eb71dSFelix Beck 
2479d464fc1SSteffen Maier 	if (scsi_get_prot_type(scsi) == SCSI_PROT_DIF_TYPE1) {
2489d464fc1SSteffen Maier 		datalen += datalen / scsi->device->sector_size * 8;
2499d464fc1SSteffen Maier 		fcp->fc_dl = cpu_to_be32(datalen);
2509d464fc1SSteffen Maier 	}
2514318e08cSChristof Schmitt }
2524318e08cSChristof Schmitt 
2534318e08cSChristof Schmitt /**
254e0116c91SSteffen Maier  * zfcp_fc_fcp_tm() - Setup FCP command as task management command.
255e0116c91SSteffen Maier  * @fcp: Pointer to FCP_CMND IU to set up.
256e0116c91SSteffen Maier  * @dev: Pointer to SCSI_device where to send the task management command.
257e0116c91SSteffen Maier  * @tm_flags: Task management flags to setup tm command.
258e0116c91SSteffen Maier  */
259e0116c91SSteffen Maier static inline
zfcp_fc_fcp_tm(struct fcp_cmnd * fcp,struct scsi_device * dev,u8 tm_flags)260e0116c91SSteffen Maier void zfcp_fc_fcp_tm(struct fcp_cmnd *fcp, struct scsi_device *dev, u8 tm_flags)
261e0116c91SSteffen Maier {
262e0116c91SSteffen Maier 	int_to_scsilun(dev->lun, (struct scsi_lun *) &fcp->fc_lun);
263e0116c91SSteffen Maier 	fcp->fc_tm_flags = tm_flags;
264e0116c91SSteffen Maier }
265e0116c91SSteffen Maier 
266e0116c91SSteffen Maier /**
2674318e08cSChristof Schmitt  * zfcp_fc_evap_fcp_rsp - evaluate FCP RSP IU and update scsi_cmnd accordingly
2684318e08cSChristof Schmitt  * @fcp_rsp: FCP RSP IU to evaluate
2694318e08cSChristof Schmitt  * @scsi: SCSI command where to update status and sense buffer
2704318e08cSChristof Schmitt  */
2714318e08cSChristof Schmitt static inline
zfcp_fc_eval_fcp_rsp(struct fcp_resp_with_ext * fcp_rsp,struct scsi_cmnd * scsi)2724318e08cSChristof Schmitt void zfcp_fc_eval_fcp_rsp(struct fcp_resp_with_ext *fcp_rsp,
2734318e08cSChristof Schmitt 			  struct scsi_cmnd *scsi)
2744318e08cSChristof Schmitt {
2754318e08cSChristof Schmitt 	struct fcp_resp_rsp_info *rsp_info;
2764318e08cSChristof Schmitt 	char *sense;
2774318e08cSChristof Schmitt 	u32 sense_len, resid;
2784318e08cSChristof Schmitt 	u8 rsp_flags;
2794318e08cSChristof Schmitt 
2804318e08cSChristof Schmitt 	scsi->result |= fcp_rsp->resp.fr_status;
2814318e08cSChristof Schmitt 
2824318e08cSChristof Schmitt 	rsp_flags = fcp_rsp->resp.fr_flags;
2834318e08cSChristof Schmitt 
2844318e08cSChristof Schmitt 	if (unlikely(rsp_flags & FCP_RSP_LEN_VAL)) {
2854318e08cSChristof Schmitt 		rsp_info = (struct fcp_resp_rsp_info *) &fcp_rsp[1];
2864318e08cSChristof Schmitt 		if (rsp_info->rsp_code == FCP_TMF_CMPL)
2874318e08cSChristof Schmitt 			set_host_byte(scsi, DID_OK);
2884318e08cSChristof Schmitt 		else {
2894318e08cSChristof Schmitt 			set_host_byte(scsi, DID_ERROR);
2904318e08cSChristof Schmitt 			return;
2914318e08cSChristof Schmitt 		}
2924318e08cSChristof Schmitt 	}
2934318e08cSChristof Schmitt 
2944318e08cSChristof Schmitt 	if (unlikely(rsp_flags & FCP_SNS_LEN_VAL)) {
2954318e08cSChristof Schmitt 		sense = (char *) &fcp_rsp[1];
2964318e08cSChristof Schmitt 		if (rsp_flags & FCP_RSP_LEN_VAL)
2979d464fc1SSteffen Maier 			sense += be32_to_cpu(fcp_rsp->ext.fr_rsp_len);
2989d464fc1SSteffen Maier 		sense_len = min_t(u32, be32_to_cpu(fcp_rsp->ext.fr_sns_len),
2999d464fc1SSteffen Maier 				  SCSI_SENSE_BUFFERSIZE);
3004318e08cSChristof Schmitt 		memcpy(scsi->sense_buffer, sense, sense_len);
3014318e08cSChristof Schmitt 	}
3024318e08cSChristof Schmitt 
3034318e08cSChristof Schmitt 	if (unlikely(rsp_flags & FCP_RESID_UNDER)) {
3049d464fc1SSteffen Maier 		resid = be32_to_cpu(fcp_rsp->ext.fr_resid);
3054318e08cSChristof Schmitt 		scsi_set_resid(scsi, resid);
3064318e08cSChristof Schmitt 		if (scsi_bufflen(scsi) - resid < scsi->underflow &&
3074318e08cSChristof Schmitt 		     !(rsp_flags & FCP_SNS_LEN_VAL) &&
3084318e08cSChristof Schmitt 		     fcp_rsp->resp.fr_status == SAM_STAT_GOOD)
3094318e08cSChristof Schmitt 			set_host_byte(scsi, DID_ERROR);
310a099b7b1SBenjamin Block 	} else if (unlikely(rsp_flags & FCP_RESID_OVER)) {
311a099b7b1SBenjamin Block 		/* FCP_DL was not sufficient for SCSI data length */
312a099b7b1SBenjamin Block 		if (fcp_rsp->resp.fr_status == SAM_STAT_GOOD)
313a099b7b1SBenjamin Block 			set_host_byte(scsi, DID_ERROR);
3144318e08cSChristof Schmitt 	}
3154318e08cSChristof Schmitt }
3164318e08cSChristof Schmitt 
3174318e08cSChristof Schmitt #endif
318