From owner-cvs-all Tue Sep 17 6:36:58 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D78F337B401; Tue, 17 Sep 2002 06:36:57 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66B6143E81; Tue, 17 Sep 2002 06:36:56 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id XAA28108; Tue, 17 Sep 2002 23:36:25 +1000 Date: Tue, 17 Sep 2002 23:44:50 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Don Lewis Cc: brandt@fokus.gmd.de, , , , , , Subject: Re: cvs commit: src/sys/kern kern_timeout.c In-Reply-To: <200209170908.g8H98Hwr015356@gw.catspoiler.org> Message-ID: <20020917233828.H11067-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 17 Sep 2002, Don Lewis wrote: > On 17 Sep, Harti Brandt wrote: > .... > > (1) replaced all calls to DELAY(1) with a bus_space_read_4() on a card > > address. Because there are 184 DELAY(1) calls in each xl_mii_readreg each > > of which takes a mean of 8.5usecs this cuts down the overall time from > > 1.8msec to around 320usecs. > > I think we're probably ok here. The standard says the minimum high and > low times for the clock signal are 160ns, with a minimum clock period of > 400ns. If I do the math correctly, your scheme wiggles something about > every 1.7us. Maybe the total time can be reduced a lot more by using the minimum delays specified by the standard (using nanodelay(9unimplemented)). You would find out if there is hardware that doesn't comply with the standard :-). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message