From owner-p4-projects@FreeBSD.ORG Mon Nov 13 21:46:39 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5CFF816A4C8; Mon, 13 Nov 2006 21:46:39 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DD5116A494 for ; Mon, 13 Nov 2006 21:46:39 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E9CB43E3A for ; Mon, 13 Nov 2006 21:43:59 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kADLhxWB005951 for ; Mon, 13 Nov 2006 21:43:59 GMT (envelope-from mjacob@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kADLhxW1005948 for perforce@freebsd.org; Mon, 13 Nov 2006 21:43:59 GMT (envelope-from mjacob@freebsd.org) Date: Mon, 13 Nov 2006 21:43:59 GMT Message-Id: <200611132143.kADLhxW1005948@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to mjacob@freebsd.org using -f From: Matt Jacob To: Perforce Change Reviews Cc: Subject: PERFORCE change 109888 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 21:46:39 -0000 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) ====