Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Clockport devices configuration layer [was: Re: USB stack vs bus_dma_tag_t]



On Wed, 20 Oct 2010 11:48:06 +0200
Ignatios Souvatzis <is%netbsd.org@localhost> wrote:

> > To use the X-Surf example, you would just add some code at the end
> > of ne_zbus_attach(), which fills some confargs structure with the
> > information supplied by this Zorro card (e.g. address of clockport),
> > then call config_found(your_device, confargs, print) to
> > automatically attach a clockport device to it.
> > 
> > Then the clockport device can call config_found() for further
> > devices which attach to this clockport using the address from
> > confargs.
> > 
> > What can be attached where and which files and dependencies exist is
> > defined in conf/files.amiga.
> 
> You'd write this?
> 
> device clockport ...
> attach clockport at ne_zbus with ... 

I fear it is not that simple. We want clockport to attach to any device
which supports it, not just to one. So I would rather try:

device  clockport
attach  clockport at clkportbus
file    dev/clockport.c

attach  ne at zbus with ne_zbus: rtl80x9, clkportbus
file    arch/amiga/dev/if_ne_zbus.c     ne_zbus needs-flag

device  mainbus: clkportbus

Don't know if the syntax is correct, but maybe you get the idea?

-- 
Frank Wille


Home | Main Index | Thread Index | Old Index