Re: [CFR] ncv, nsp, stg SCSI drivers

2000-10-01 Thread non

Sorry, the files colud not fetch. I think you can now fetch them.

// Noriaki Mitsunaga

From: [EMAIL PROTECTED]
Date: Sat, 30 Sep 2000 15:20:07 +0900
> From: Poul-Henning Kamp <[EMAIL PROTECTED]>
> Date: Wed, 27 Sep 2000 15:25:42 +0200
> > Use a normal timeout ?
> 
> I changed to use timeout() and now they do not change clock.c.
> 
> Updated files can be obtained from,
> http://home.jp.freebsd.org/~non/scsi_low-2930.tar.gz   (added files)
> http://home.jp.freebsd.org/~non/scsi_low-2930.diff.gz  (diff to current)
> http://home.jp.freebsd.org/~non/scsi_low4-2930.diff.gz  (diff to stable)
> 
> You will need the tar.gz file and one of diff.gz file. Or you can
> obtain the diff from,
> http://home.jp.freebsd.org/~non/scsi_low-2926-2930.diff.gz


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: [CFR] ncv, nsp, stg SCSI drivers

2000-09-29 Thread non

From: Poul-Henning Kamp <[EMAIL PROTECTED]>
Date: Wed, 27 Sep 2000 15:25:42 +0200
> Use a normal timeout ?

I changed to use timeout() and now they do not change clock.c.

Updated files can be obtained from,
http://home.jp.freebsd.org/~non/scsi_low-2930.tar.gz   (added files)
http://home.jp.freebsd.org/~non/scsi_low-2930.diff.gz  (diff to current)
http://home.jp.freebsd.org/~non/scsi_low4-2930.diff.gz  (diff to stable)

You will need the tar.gz file and one of diff.gz file. Or you can
obtain the diff from,
http://home.jp.freebsd.org/~non/scsi_low-2926-2930.diff.gz

// Noriaki Mitsunaga


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: [CFR] ncv, nsp, stg SCSI drivers

2000-09-27 Thread Poul-Henning Kamp

In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes:
>From: Poul-Henning Kamp <[EMAIL PROTECTED]>
>Date: Wed, 27 Sep 2000 15:13:27 +0200
>> >And we initialize the delaycount in clock.c.
>> 
>> This is called "busy polling" and there must be a better way to do it.
>
>Do you have any suggestions ?

Use a normal timeout ?

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: [CFR] ncv, nsp, stg SCSI drivers

2000-09-27 Thread non

From: Poul-Henning Kamp <[EMAIL PROTECTED]>
Date: Wed, 27 Sep 2000 15:13:27 +0200
> >And we initialize the delaycount in clock.c.
> 
> This is called "busy polling" and there must be a better way to do it.

Do you have any suggestions ?

> Has this code been profiled to examine typical actual delay lengths ?

I don't know. I obtained these codes from NetBSD/pc98 and I did not
change here.

// Noriaki Mitsunaga


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: [CFR] ncv, nsp, stg SCSI drivers

2000-09-27 Thread Poul-Henning Kamp

In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes:
>From: Poul-Henning Kamp <[EMAIL PROTECTED]>
>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.

This is called "busy polling" and there must be a better way to do it.

Has this code been profiled to examine typical actual delay lengths ?

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: [CFR] ncv, nsp, stg SCSI drivers

2000-09-27 Thread non

From: Poul-Henning Kamp <[EMAIL PROTECTED]>
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: [CFR] ncv, nsp, stg SCSI drivers

2000-09-27 Thread Poul-Henning Kamp

In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes:

>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...

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



[CFR] ncv, nsp, stg SCSI drivers

2000-09-27 Thread non

Call for review, ncv, nsp, and stg SCSI drivers which are ported from
NetBSD/pc98. I would like to merge to current and do MFC.

ncv: NCR 53C500 based SCSI PC-CARDs
nsp: Ninja SCSI-3 based SCSI PC-CARDs
stg: TMC 18C30 based SCSI PC-Cards and ISA cards.

They are tested and working on PAO3 and there are entries (totally 19)
in /etc/pccard.conf, though commented out. 

I would like to have review especially on the changes in
i386/isa/clock.c for counting delay loop numbers, and converts of SCSI
layer from NetBSD one to CAM in cam/scsi/scsi_low.[ch] .

They can be obtained from
http://home.jp.freebsd.org/~non/scsi_low-2926.tar.gz   (added files)
http://home.jp.freebsd.org/~non/scsi_low-2926.diff.gz  (diff to current)
http://home.jp.freebsd.org/~non/scsi_low4-2926.diff.gz  (diff to stable)
You will need the tar.gz file and one of diff.gz file.

// Noriaki Mitsunaga


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message