From owner-freebsd-drivers@FreeBSD.ORG Tue Feb 26 01:03:44 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4884316A402 for ; Tue, 26 Feb 2008 01:03:44 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id 17E9D13C45E for ; Tue, 26 Feb 2008 01:03:43 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so1151244wfa.7 for ; Mon, 25 Feb 2008 17:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=r6PdXJIHtiTy+uZwDDhuxSUnMUuPWQRRH6agOZsu2c0=; b=ojWEV+hmou6sHfyEHqluCXE7B2X7clddDTN+L1Na18c6lo/iRoc0bmFZSmEygHEplfh5mI9sV+81OaGRPtU+VdxzRMYWdQltF3xTqdONS7eBcKyYS58NTW6noMWj72USgjxGHIdLr8rBM1OAieigkPwuhhynvykJdpBkbURa+Vg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=UozHtl6ckMrhtRXxXVwc4trsg5r7ChCeGbT70UDwjiDBO8bejxIJoTSOcduPiyoIFOCl1Hg7TKmbXDOHIfqc6rjyMn43tyetxzLeLAbBsJqmtiV2HFu5tCTcGscqs5vaeSjWIE6/ODBsnI+6VzoDLFKMT4Lrk2gPDd3c2MYhuc8= Received: by 10.142.240.9 with SMTP id n9mr3012535wfh.79.1203987823591; Mon, 25 Feb 2008 17:03:43 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id 24sm10418734wff.10.2008.02.25.17.03.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Feb 2008 17:03:42 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m1Q13biG048047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Feb 2008 10:03:37 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m1Q13Y5E048046; Tue, 26 Feb 2008 10:03:34 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 26 Feb 2008 10:03:34 +0900 From: Pyun YongHyeon To: Sharad Chandra Message-ID: <20080226010334.GA47750@cdnetworks.co.kr> References: <200802251443.00541.sharadc@in.niksun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200802251443.00541.sharadc@in.niksun.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-drivers@freebsd.org Subject: Re: Start Fire nic card. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 01:03:44 -0000 On Mon, Feb 25, 2008 at 02:43:00PM +0530, Sharad Chandra wrote: > Hi, > > ????????How does dual port star fire nic card time stamps? Is the sheduling > round robin. if it is, there can be chances, a frame comes later than other > can get lesser timestamp. > The Adaptec AIC-6915(aka StarFire) supports timestamps in its Tx/Rx descriptor format. So you can get a timestamp for each transmitted/received frames. The timestamp is based on an internal 32bit CurrentTimer register(0.8us resolution). ATM sf(4) does not use these timestamps in descriptor format so you have to change decriptor format to include the timestamp and initialize CurrentTimer register prior to get timestamps. But there is no easy to pass these timestamp information to upper layer so you may have to add special ioctls into the driver to get these information. See Adaptec AIC-6915 datasheet for more information. In order to get correct timestamp on Dual/Quad ports Starfire NICs you may have to to set CurrentTimer register of all ports with the same value to synchronize the timer value. -- Regards, Pyun YongHyeon