Subject: Re: Missing bus_space_* things
To: None <martin@duskware.de>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sgimips
Date: 06/06/2006 18:00:06
martin@duskware.de wrote:

> The bad news: it needs some bus_space_*_stream_* functions that we currently
> do not implement. I do not knowing anything about sgimips hardware or the
> bus_space_tag_t constants used in the exisiting code, so I was not able to
> come up with a proper fix ready to commit - in this case I only care about
> PCI access, so the always-swapping hack attached worked for me.

Byteswapping on stream ops is only needed if endianness is different
between host and bus, so I guess swapping is only needed for PCI
devices on sgimips. 

> Anyone could offer a real implementation? Or provide some background
> about the various bus_space_tag_t (and their endianess)?

It looks only SGIMIPS_BUS_SPACE_IO and SGIMIPS_BUS_SPACE_MEM
require byteswapping on stream ops.
---
Izumi Tsutsui