Current-Users archive

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

Re: BCM5809S support in bnx(4) and brgphy(4)

> What swap is done by what hardware?

Some bus masters like bnx(4) and epic(4) treat host's memory
as BE if it's configured so. No byteswap against DMA descripters
is necessary in the driver in such case.

Using two uint16_t members against a uint32_t descripter requires
extra ifdefs to switch BE and LE environments as bitfield in structure.

> Sigh.  I really need to get off my butt and add a bunch of bus_dma 
> accessors (like the bus_space ones but for DMA buffers) to solve this 
> problem optimally across all architectures.

I guess you are thinking about extra support for bus controller
that supports byteswap ops, not individual bus masters.
Izumi Tsutsui

Home | Main Index | Thread Index | Old Index