freebsd-skq/sys
tmm 3ed05b7b89 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
amd64 Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
arm
boot - Fix indentation and return statements to conform to style(9). 2002-02-26 10:05:20 +00:00
cam GC: BIO_ORDERED going away. 2002-02-22 09:18:46 +00:00
coda Fix LINT breakage by adding a missing include. 2002-02-23 22:55:47 +00:00
compat Use the updated getcredhostname() function. 2002-02-27 16:47:27 +00:00
conf Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
contrib Move some debugger-only symbols around; this patch didn't make it into 2002-02-24 07:51:46 +00:00
crypto off by one error in Aaron Gifford's code. KAME PR 393. 2002-02-26 16:58:58 +00:00
ddb ^U kills an entire input line in most applications, 2002-02-12 23:38:40 +00:00
dev Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
fs Fix LINT breakage by adding a missing include. 2002-02-23 22:55:47 +00:00
geom
gnu
i4b Remove a redundant decalaration of call_desc[] since it's now a 2002-02-27 08:33:08 +00:00
i386 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
isa revert last commit temporarily due to whining on the lists. 2002-02-26 20:33:41 +00:00
isofs/cd9660
kern Make getcredhostname() take a buffer and the buffer's size 2002-02-27 16:43:20 +00:00
libkern Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
modules turn on the ethertype filter module 2002-02-27 08:54:13 +00:00
net Fix warnings in the gif(4) driver so it compiles with -Werror. 2002-02-26 20:11:33 +00:00
netatalk
netatm Replace a few more lines of code orphaned by MFREE going away. 2002-02-07 22:08:32 +00:00
netgraph Send a NGM_PPPOE_ACNAME message to userland when a node is connected. 2002-02-20 15:51:11 +00:00
netinet Change the wording of the inline comments from the previous commit. 2002-02-27 13:52:06 +00:00
netinet6 Introduce a version field to `struct xucred' in place of one of the 2002-02-27 04:45:37 +00:00
netipx Pre-KSE/M3 commit. 2002-02-07 20:58:47 +00:00
netkey Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
netnatm
netncp
netns
netsmb Remove redundant checks for iovcnt > 1. This should be handled properly 2002-02-21 16:18:39 +00:00
nfs
nfsclient Fix a long line touched in previous commit (but not caused by previous 2002-02-07 23:03:41 +00:00
nfsserver
pc98 Disksort will not "munge" requests, BIO_ORDERED or not, so remove 2002-02-22 09:14:06 +00:00
pccard Add some code which is compatible for NEWCARD. It makes manufacturer 2002-02-20 14:42:36 +00:00
pci Fix warning; amdsmb_abort() is not used. 2002-02-26 01:04:58 +00:00
posix4 In a threaded world, differnt priorirites become properties of 2002-02-11 20:37:54 +00:00
powerpc Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
rpc
security/lomac Introduce a version field to `struct xucred' in place of one of the 2002-02-27 04:45:37 +00:00
sparc64 Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
svr4
sys Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
tools
ufs Replace bowrite() with BUF_WRITE in ufs. 2002-02-22 09:03:00 +00:00
vm Back out all the pmap related stuff I've touched over the last few days. 2002-02-27 09:51:33 +00:00
Makefile