Subject: Re: modifying files.vax
To: Ben Harris <bjh21@cam.ac.uk>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-vax
Date: 01/26/1997 10:03:11
On Sun, 26 Jan 1997 12:54:06 +0000 (GMT)
Ben Harris <bjh21@cam.ac.uk> wrote:
> I think what you want to do is something like:
>
> attach le at vsbus with le_vsbus
> attach le at uba with le_uba # I assume you meant le not la.
That is exactly right...
> Then in if_le.c you have two different cf_attach structs:
>
> struct cfattach le_vsbus_ca = { /* Routines for a VAXstation Lance */ };
> struct cfattach le_uba_ca = { /* Routines for a KA640 Lance */ };
...except, the correct way is to use two different files, if_le_vsbus.c
and if_le_uba.c. Like:
attach le at vsbus with le_vsbus
file vax/if/if_le_vsbus.c if_le_vsbus
attach le at uba with le_ubs
file vax/if/if_le_uba.c if_le_uba
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939