Subject: Re: ncr.4 & byte ordering
To: Bill Studenmund <>
From: Jason Thorpe <>
List: current-users
Date: 01/16/1997 12:21:06
On Thu, 16 Jan 1997 12:01:47 -0800 (PST) 
 Bill Studenmund <> wrote:

 > Would it make sense to define byte-swapping routines that define
 > conditional byteswapping routines for little-endian words, similar to
 > "network" byte order stuff. Maybe "dos" byte order, though there might be
 > a better name. Maybe "isa" byte order?

That's what bus.h is _for_.  Values should be transparently translated
to and from natural bus and host order.

However, this could pose a problems for things like 32-bit wide
multi-pio... where you're simply shoving arrays of bytes though
a FIFO, for example.

Perhaps entry points which write "wide character arrays" are

Jason R. Thorpe                             
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939