freebsd-skq/sys/libkern
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 the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
ia64 Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
arc4random.c Fixed some typos, verboseness and misformatting in comments. 2001-08-30 12:30:58 +00:00
ashldi3.c Convert all instances of: 2001-01-12 07:28:46 +00:00
ashrdi3.c Convert all instances of: 2001-01-12 07:28:46 +00:00
bcd.c
bcmp.c
bsearch.c Fix a warning in bsearch(). Like index() etc, it de-qualifies its 2001-09-10 10:33:46 +00:00
divdi3.c
ffs.c
fnmatch.c * Remove __P and convert to ANSI prototypes. 2002-02-01 01:32:19 +00:00
iconv_converter_if.m Add function prototypes and base module for kernel side iconv library. 2001-04-09 09:39:29 +00:00
iconv_xlat.c Add function prototypes and base module for kernel side iconv library. 2001-04-09 09:39:29 +00:00
iconv.c Add function prototypes and base module for kernel side iconv library. 2001-04-09 09:39:29 +00:00
index.c
inet_ntoa.c add threadsafe version of inet_ntoa (inet_ntoa_r takes a buffer to fill) 2000-11-25 03:14:31 +00:00
lshrdi3.c Convert all instances of: 2001-01-12 07:28:46 +00:00
mcount.c We do not have UPAGES following the tail end of the user VM space anymore. 2001-08-08 04:02:22 +00:00
moddi3.c
qdivrem.c
qsort.c
quad.h A set of changes to reduce the number of include files the kernel 2001-07-08 04:56:07 +00:00
random.c
rindex.c
scanc.c
skpc.c
strcat.c
strcmp.c
strcpy.c
strlcat.c rcsid[]->__FBSDID 2001-11-07 19:55:16 +00:00
strlcpy.c rcsid[]->__FBSDID 2001-11-07 19:55:16 +00:00
strlen.c
strncmp.c
strncpy.c
strsep.c rcsid[]->__FBSDID 2001-11-07 19:55:16 +00:00
strtol.c
strtoq.c
strtoul.c
strtouq.c
strvalid.c Add a 'strvalid()' call to libkern. Given a character pointer, and 2002-02-18 00:37:03 +00:00
ucmpdi2.c
udivdi3.c
umoddi3.c