freebsd-nq/sys/alpha
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
..
alpha Add some DIAGNOSTIC code. 2002-02-22 23:58:22 +00:00
compile Don't need the .keep_me files. Obrien and I committed past each other. 2001-07-01 23:35:44 +00:00
conf Remove WITNESS from GENERIC by default: as we grow more locks, this gets 2002-02-13 07:44:59 +00:00
include Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
isa Don't grab the ICU lock while reading the current pending interrupts and 2002-02-08 18:30:36 +00:00
linux Bah, I managed to turn cosmetic things into real bugs. Fix shadowed 2002-02-08 08:56:01 +00:00
mcbus Introduce a standard name for the lock protecting an interrupt controller 2001-12-20 23:48:31 +00:00
osf1 Fix a long line introduced in previous commit. 2002-02-07 22:29:41 +00:00
pci Introduce a standard name for the lock protecting an interrupt controller 2001-12-20 23:48:31 +00:00
tc Replace the MFREE that Marshal (Quick Draw) Dillon apparently didn't look for. 2002-02-07 08:39:26 +00:00
tlsb Introduce a standard name for the lock protecting an interrupt controller 2001-12-20 23:48:31 +00:00
Makefile Add a dopey makefile to do the tags dance, which is probably not perfect 2000-12-31 23:26:34 +00:00