new device/bus stuff

2000-04-07 Thread Julian Elischer

Is there a howto on how to convert drivers from the old to new
form?

for example if_sr.c no longer shows up (or is even probed) in
4.0-stable. I've looked here and there but I can't figure out if there
is some ISA_SHIM option needed (it's not in LINT if so).

There seemes to be lotsa complicated man pages but I haven't found
a brief "here's what you probably need to do" doc..

I'm looking for something that doesn't require rewriting the whole
thing..


-- 
  __--_|\  Julian Elischer
 /   \ [EMAIL PROTECTED]
(   OZ) World tour 2000
--- X_.---._/  presently in:  Perth
v


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



Re: new device/bus stuff

2000-04-07 Thread Matthew Jacob



On Fri, 7 Apr 2000, Julian Elischer wrote:

 Is there a howto on how to convert drivers from the old to new
 form?
 
 for example if_sr.c no longer shows up (or is even probed) in
 4.0-stable. I've looked here and there but I can't figure out if there
 is some ISA_SHIM option needed (it's not in LINT if so).

COMPAT_OLDISA?

 
 There seemes to be lotsa complicated man pages but I haven't found
 a brief "here's what you probably need to do" doc..
 
 I'm looking for something that doesn't require rewriting the whole
 thing..
 
 
 -- 
   __--_|\  Julian Elischer
  /   \ [EMAIL PROTECTED]
 (   OZ) World tour 2000
 --- X_.---._/  presently in:  Perth
 v
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-current" in the body of the message
 



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



Re: new device/bus stuff

2000-04-07 Thread John Hay

 Is there a howto on how to convert drivers from the old to new
 form?

Hmmm, I would be interested too. I would like to convert the if_ar
and if_sr drivers, but they are not as straight foward as the "normal"
drivers, because a chip can have two channels and a card can have two
chips. Or maybe I'm just thinking too complicated about it?

 
 for example if_sr.c no longer shows up (or is even probed) in
 4.0-stable. I've looked here and there but I can't figure out if there
 is some ISA_SHIM option needed (it's not in LINT if so).

Oops, I forgot about the if_sr driver. Just change the line

struct  isa_driver srdriver = {srprobe, srattach_isa, "src"};
to
struct  isa_driver srdriver = {srprobe, srattach_isa, "sr"};

I'll do it when I remove all the frame relay hooks out of the driver.
It has never been used outside SDL and they are not interested in
make it available. If anyone want to use frame relay they can use
the netgraph stuff.

John
-- 
John Hay -- [EMAIL PROTECTED]


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



Re: new device/bus stuff

2000-04-07 Thread Warner Losh

In message [EMAIL PROTECTED] Julian Elischer writes:
: Is there a howto on how to convert drivers from the old to new
: form?

Not completely.  Just look at ep or ed drivers and do it the same way
:-)

Warner


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