From owner-freebsd-current Wed Sep 27 6: 8:49 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.sanda.gr.jp (ns.sanda.gr.jp [210.232.122.18]) by hub.freebsd.org (Postfix) with ESMTP id 6378F37B422; Wed, 27 Sep 2000 06:08:40 -0700 (PDT) Received: from ever.sanda.gr.jp (epoch [10.93.63.51]) by ns.sanda.gr.jp (8.9.3/3.7W) with ESMTP id WAA38446; Wed, 27 Sep 2000 22:08:39 +0900 (JST) From: non@ever.sanda.gr.jp Received: from localhost (localhost [127.0.0.1]) by ever.sanda.gr.jp (8.8.8/3.3W9) with ESMTP id WAA10191; Wed, 27 Sep 2000 22:08:38 +0900 (JST) To: freebsd-current@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG Subject: Re: [CFR] ncv, nsp, stg SCSI drivers In-Reply-To: Your message of "Wed, 27 Sep 2000 15:01:13 +0200" <48126.970059673@critter> References: <48126.970059673@critter> X-Mailer: Mew version 1.93 on Emacs 19.28 / Mule 2.3 =?iso-2022-jp?B?KBskQkt2RSYyVhsoQik=?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000927220838X.non@ever.sanda.gr.jp> Date: Wed, 27 Sep 2000 22:08:38 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 22 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Poul-Henning Kamp Date: Wed, 27 Sep 2000 15:01:13 +0200 > >I would like to have review especially on the changes in > >i386/isa/clock.c for counting delay loop numbers, > > Could you explain the functionality you need here ? We already > have a DELAY() macro/function in the kernel... There are codes like; int tout = sc->sc_wc; ; while (slp->sl_scp.scp_datalen > 0 && tout -- > 0) { ; } To calculate the tout we use; sc->sc_wc = delaycount * 2000; /* 2 sec */ And we initialize the delaycount in clock.c. // Noriaki Mitsunaga To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message