1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/sys/sparc64
Thomas Moestl 90ce56c287 Add the following functions/macros to support byte order conversions and
device drivers for bus system with other endinesses than the CPU (using
interfaces compatible to NetBSD):

- bwap16() and bswap32(). These have optimized implementations on some
  architectures; for those that don't, there exist generic implementations.
- macros to convert from a certain byte order to host byte order and vice
  versa, using a naming scheme like le16toh(), htole16().
  These are implemented using the bswap functions.
- stream bus space access functions, which do not perform a byte order
  conversion (while the normal access functions would if the bus endianess
  differs from the CPU endianess).

htons(), htonl(), ntohs() and ntohl() are implemented using the new
functions above for kernel usage. None of the above interfaces is currently
exported to user land.

Make use of the new functions in a few places where local implementations
of the same functionality existed.

Reviewed by:	mike, bde
Tested on alpha by:	mike
2002-02-27 17:16:18 +00:00
..
compile Obrien created this directory, but I didn't cvs add cvsignore 2001-07-01 23:37:03 +00:00
conf I was able to boot this kernel using the latest WIP kernel sources. 2002-02-25 22:13:44 +00:00
ebus Minor bug fixes (add a missing break, correct the resource ranges, remove 2002-02-13 15:35:22 +00:00
include Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
isa Fix typos in a comment. 2002-02-13 15:43:42 +00:00
pci Merge r1.39 from NetBSD (manage both streaming caches for psycho pairs). 2002-02-13 16:07:59 +00:00
sbus Add support for the SBus, which is used in early Sun UltraSPARC machines. 2002-02-13 16:11:36 +00:00
sparc64 Parameterize the number of pages to allocate for the per-cpu area on 2002-02-27 06:08:13 +00:00