freebsd-skq/sys/i386
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
..
acpica Fix typo in function name. 2002-01-10 03:26:46 +00:00
apm
bios
compile
conf Correct path to pucdata.c 2002-02-18 15:46:10 +00:00
i386 Re-fix a pointer/integer warning. 2002-02-27 09:58:06 +00:00
ibcs2 Use the updated getcredhostname() function. 2002-02-27 16:55:30 +00:00
include Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
isa Back out all the pmap related stuff I've touched over the last few days. 2002-02-27 09:51:33 +00:00
linux Pre-KSE/M3 commit. 2002-02-07 20:58:47 +00:00
pci The Libretto L series has no $PIR table, but does have a _PIR table. 2002-01-20 03:28:29 +00:00
svr4 Clear the single-step flag for signal handlers. This fixes bogus trace 2002-01-10 11:49:55 +00:00
Makefile Update pathnames for creation of tags file. 2001-12-05 01:23:21 +00:00