Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 2000 22:08:38 +0900
From:      non@ever.sanda.gr.jp
To:        freebsd-current@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG
Subject:   Re: [CFR] ncv, nsp, stg SCSI drivers 
Message-ID:  <20000927220838X.non@ever.sanda.gr.jp>
In-Reply-To: Your message of "Wed, 27 Sep 2000 15:01:13 %2B0200" <48126.970059673@critter>
References:  <48126.970059673@critter>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000927220838X.non>