freebsd-skq/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 Implement MCOUNT hook for assembler. Probably doesn't work right. 2001-10-11 13:35:31 +00:00
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 Stick a prototype for handleclock() in machine/clock.h and include it 2001-03-24 06:20:48 +00:00
clockvar.h Don't pretend the argument to clockattach is a device - it isn't. 2001-10-04 15:28:27 +00:00
cpu.h Add a couple of arguments to ia64_init. I'll use them later to improve 2001-09-29 11:44:35 +00:00
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 Assume round-to-nearest mode for floating point. 2001-10-06 15:57:22 +00:00
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 Shift the code which packs and unpacks instruction bundles out of DDB 2001-10-18 16:20:04 +00:00
intr.h Wire up most of the interrupt handling infrastructure. Not sure it works 2001-10-05 10:30:09 +00:00
intrcnt.h Clean up the code exporting interrupt statistics via sysctl a bit: 2001-06-01 13:23:28 +00:00
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 Start hooking up devices. 2001-09-29 11:11:18 +00:00
pal.h Add define for the PIB default address and include a reference to 2001-10-21 05:52:54 +00:00
param.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
pcb.h Axe pcb_schednest as it is no longer used. 2001-02-22 17:09:50 +00:00
pci_cfgreg.h Start hooking up devices. 2001-09-29 11:11:18 +00:00
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 Zap 'ptrace(PT_READ_U, ...)' and 'ptrace(PT_WRITE_U, ...)' since they 2001-08-08 05:25:15 +00:00
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 Wire up most of the interrupt handling infrastructure. Not sure it works 2001-10-05 10:30:09 +00:00
sapicvar.h Wire up most of the interrupt handling infrastructure. Not sure it works 2001-10-05 10:30:09 +00:00
setjmp.h Reserve space for signal state. 2001-10-20 15:19:43 +00:00
sigframe.h style(9) the structure definitions. 2001-09-05 01:36:46 +00:00
signal.h style(9) the structure definitions. 2001-09-05 01:36:46 +00:00
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