tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
re: 4byte aligned com(4) and PCI_MAPREG_TYPE_MEM
Izumi Tsutsui writes:
> mrg@ wrote:
>
> > > Such byte lane offset adjust ment is required only if
> > > - byte registers are wired to LSByte in 32bit bus
> > > - byte lane wiring are swapped by hardware (like osiop(4))
> > > but most (all?) PCI bus_space(9) implementations swap
> > > byteorder of PCI access by software (i.e. in MD bus_space(9)).
> >
> > FYI: not all -- sparc64 either maps PCI space as little
> > endian or uses little endian accesses, both of which give
> > you the byte swapped data directly.
>
> Even in that case, the hardware checks access width and
> all byte accesses can be done at the same address
> as the little endian machines by complicated hardware
> (i.e. #if BYTE_ORDER in the patch won't work), right?
right. i just wanted to point out that sometimes the byte
swapping occurs in hardware. it's also mostly irrelevant
to the discussion at hand, if only for the reason you
mentioned above.
.mrg.
Home |
Main Index |
Thread Index |
Old Index