From owner-p4-projects@FreeBSD.ORG Tue May 16 00:01:58 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 5293216A8CE; Tue, 16 May 2006 00:01:58 +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 57C6E16A86F for ; Tue, 16 May 2006 00:01:57 +0000 (UTC) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 206B343D45 for ; Tue, 16 May 2006 00:01:57 +0000 (GMT) (envelope-from scottl@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 k4G01hZ3053505 for ; Tue, 16 May 2006 00:01:43 GMT (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4G01hBX053502 for perforce@freebsd.org; Tue, 16 May 2006 00:01:43 GMT (envelope-from scottl@freebsd.org) Date: Tue, 16 May 2006 00:01:43 GMT Message-Id: <200605160001.k4G01hBX053502@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to scottl@freebsd.org using -f From: Scott Long To: Perforce Change Reviews Cc: Subject: PERFORCE change 97221 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: Tue, 16 May 2006 00:01:59 -0000 http://perforce.freebsd.org/chv.cgi?CH=97221 Change 97221 by scottl@scottl-x64 on 2006/05/16 00:00:43 Add callout storage in the CCB for MPSAFE drivers to use. Affected files ... .. //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#7 edit Differences ... ==== //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#7 (text+ko) ==== @@ -278,8 +278,15 @@ ccb_ppriv_area periph_priv; ccb_spriv_area sim_priv; u_int32_t timeout; /* Timeout value */ + + /* + * CAM does not manage CCB timeouts itself, but provides convenient + * storage for drivers to use for their own management of timeouts. + * Drivers that are not yet MPSAFE should use the timeout_ch. + * Drivers that are MPSAFE should use the callout. + */ struct callout_handle timeout_ch; - /* Callout handle used for timeouts */ + struct callout callout; }; /* Get Device Information CCB */