Current-Users archive

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

Re: usb and no bus_dma(9)



> > > Our usb driver demands bus_dma(9) without fail.  However, slhci(4)
> > > doesn't use DMA.  Moreover, some ports is not supporting bus_dma(9)
> > > now.
> > 
> > Isn't it easy to provide a bus_dma implementation that does not realy
> > do dma?
> > 
> > That would be far preferable to crippling lots of other code with MD hacks,
> > IMHO.
> 
> I think that it is strange to implement bus_dma(9) for port that doesn't
> use DMA.

For compromise, how about:
 - use "#if NUHCI > 0 || NOHCI > 0 || NEHCI > 0" (or so) in *.c sources
 - prepare dummy typedefs in MD bus.h for structures in headers
   (I guess landisk one might help)

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index