freebsd-dev/sys/ia64/include
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
..
pc
_inttypes.h o Add new header <sys/stdint.h>. 2001-11-02 18:05:43 +00:00
_limits.h o Add new header <sys/stdint.h>. 2001-11-02 18:05:43 +00:00
ansi.h Resurrect one of the easiest changes from my big include files roll-up 2002-02-15 22:15:39 +00:00
asm.h
atomic.h
bootinfo.h Use some (now) spare space for passing through a pointer to the FPSWA 2001-11-19 07:07:09 +00:00
bus_memio.h
bus_pio.h
bus.h Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
clock.h
clockvar.h
cpu.h
cpufunc.h Fix CRITICAL_FORK so that it compiles. 2001-12-23 16:04:29 +00:00
db_machdep.h Declare ddb_regs as extern to avoid creating a tentative definition. 2002-01-18 07:47:38 +00:00
efi.h Initial cut at calling the EFI-provided FPSWA (Floating Point Software 2001-11-19 07:25:42 +00:00
elf.h The size of the ELF hash table changed from 64 bits in the prototype 2001-10-29 10:20:19 +00:00
endian.h Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
exec.h
float.h
floatingpoint.h
fpu.h
frame.h
ia64_cpu.h Add data serialisations after ptc and mov to rr[] instructions. 2001-10-23 10:20:04 +00:00
ieee.h
ieeefp.h Implement <machine/ieeefp.h> 2001-11-03 15:51:14 +00:00
in_cksum.h
inst.h
intr.h
intrcnt.h
ioctl_bt848.h
ioctl_meteor.h
limits.h o Add new header <sys/stdint.h>. 2001-11-02 18:05:43 +00:00
md_var.h [partially forced commit due to pilot error in earlier commit attempt] 2001-10-21 22:16:48 +00:00
mutex.h Modify the critical section API as follows: 2001-12-18 00:27:18 +00:00
nexusvar.h
pal.h Add define for the PIB default address and include a reference to 2001-10-21 05:52:54 +00:00
param.h
pcb.h
pci_cfgreg.h
pcpu.h Remove unused MD fields (pc_pending_ipis, pc_next_asn and 2001-12-30 09:39:41 +00:00
pmap.h * Make sure we increment pm_stats.resident_count in pmap_enter_quick 2001-11-09 13:25:14 +00:00
proc.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
profile.h Modify the critical section API as follows: 2001-12-18 00:27:18 +00:00
pte.h Define PS and VE fields of region register correctly. 2001-11-09 13:07:44 +00:00
ptrace.h
reg.h [partially forced commit due to pilot error in earlier commit attempt] 2001-10-21 22:16:48 +00:00
reloc.h
resource.h
rse.h * Factor out common code for manipulating the RSE backing store. 2001-10-29 12:04:23 +00:00
sal.h o Do not parse the MADT as a side-effect in AcpiOsGetRootPointer, 2001-10-29 02:16:02 +00:00
sapicreg.h
sapicvar.h
setjmp.h Reserve space for signal state. 2001-10-20 15:19:43 +00:00
sigframe.h
signal.h
smp.h Cleanup the IPIs. 2001-12-30 09:41:29 +00:00
stdarg.h
sysarch.h
types.h style(9) 2001-12-09 19:12:07 +00:00
ucontext.h
unwind.h * Factor out common code for manipulating the RSE backing store. 2001-10-29 12:04:23 +00:00
varargs.h
vmparam.h