Date: Mon, 13 Nov 2006 21:43:59 GMT From: Matt Jacob <mjacob@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109888 for review Message-ID: <200611132143.kADLhxW1005948@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109888 Change 109888 by mjacob@newisp on 2006/11/13 21:43:53 Demote isp_tarminate_cmd to being a platform provided function. Affected files ... .. //depot/projects/newisp/dev/isp/isp_target.c#11 edit .. //depot/projects/newisp/dev/isp/isp_target.h#12 edit Differences ... ==== //depot/projects/newisp/dev/isp/isp_target.c#11 (text+ko) ==== @@ -724,35 +724,6 @@ } /* - * Terminate a command - */ -int -isp_terminate_cmd(ispsoftc_t *isp, void *arg) -{ - tmd_cmd_t *tmd = arg; - ct7_entry_t local, *cto = &local;; - - if (!IS_24XX(isp)) { - return (-1); - } - isp_prt(isp, ISP_LOGINFO, - "isp_terminate_cmd: [0x%0x] is being terminated", - tmd->cd_tagval); - MEMZERO(&local, sizeof (local)); - cto->ct_header.rqs_entry_type = RQSTYPE_CTIO7; - cto->ct_header.rqs_entry_count = 1; - cto->ct_nphdl = tmd->cd_nphdl; - cto->ct_rxid = tmd->cd_tagval; - cto->ct_iid_lo = tmd->cd_portid; - cto->ct_iid_hi = tmd->cd_portid >> 16; - cto->ct_oxid = tmd->cd_oxid; - cto->ct_flags = CT7_TERMINATE; - cto->ct_syshandle = 0; - return (isp_target_put_entry(isp, &local)); -} - - -/* * These are either broadcast events or specifically CTIO fast completion */ int ==== //depot/projects/newisp/dev/isp/isp_target.h#12 (text+ko) ====
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611132143.kADLhxW1005948>