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]



Radek Kujawa wrote:

>> When you look at mac68k you just need to define a m68k_bus_dma_tag in
>> mainbus.c and pass the tag to all attached devices. The dma functions
>> are all defined in m68k/m68k/bus_dma.c.
>
>
> I already hacked contents of m68k bus_dma.h into amiga bus.h. It was  
> enough for USB stack to compile. I'll look into bus_dma  
> implementations of other ports later.

Ok. I'm sure we can find a solution when your driver is working some day.


> I propose that we (read: mostly I) implement thin abstration layer,  
> that would simplify writing clockport cards drivers. Clockport layer  
> would provide information on base address to the device driver. It  
> could be configured manually, by setting base address in config file,  
> or automatically by matching known clockport carrier at zbus.
>
> Configuration file could look like this:
>
> clockport0 at mainbus addr 0xd80000 # A1200 mainboard clockport
> clockport* at zbus? # various Zorro clockports
> tduhc0 at clockport? # E3B SUBWAY USB Controller

That looks like a good idea for me.

But what is a Zorro clockport? Does it really exist? Do you have examples?


-- 
Frank Wille



Home | Main Index | Thread Index | Old Index