freebsd-dev/sys/powerpc/conf
Leandro Lupori d8c51c6f74 [aacraid] Port driver to big-endian
Port aacraid driver to big-endian (BE) hosts.

The immediate goal of this change is to make it possible to use the
aacraid driver on PowerPC64 machines that have Adaptec Series 8 SAS
controllers.

Adapters supported by this driver expect FIB contents in little-endian
(LE) byte order. All FIBs have a fixed header part as well as a data
part that depends on the command being issued to the controller.

In this way, on BE hosts, the FIB header and all FIB data structures
used in aacraid.c and aacraid_cam.c need to be converted to LE before
being sent to the adapter and converted to BE when coming from it.

The functions to convert each struct are on aacraid_endian.c.
For little-endian (LE) targets, they are macros that expand
to nothing.
In some cases, when only a few fields of a large structure are used,
the fields are converted inline, by the code using them.

PR:		237463
Reviewed by:	jhibbits
Sponsored by:	Eldorado Research Institute (eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D23887
2020-03-05 20:04:41 +00:00
..
dpaa Disable new clang 10.0.0 warnings about misleading indentation in 2020-02-17 19:20:47 +00:00
DEFAULTS
GENERIC Split out a more generic debugnet(4) from netdump(4) 2019-10-17 16:23:03 +00:00
GENERIC64 [aacraid] Port driver to big-endian 2020-03-05 20:04:41 +00:00
GENERIC64-NODEBUG Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. 2019-11-18 20:03:28 +00:00
GENERIC-NODEBUG Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. 2019-11-18 20:03:28 +00:00
GENERIC.hints
Makefile
MPC85XX Fix bogusly declared WERRORs in kernel build 2019-08-25 19:39:31 +00:00
MPC85XXSPE Fix bogusly declared WERRORs in kernel build 2019-08-25 19:39:31 +00:00
NOTES Finish removal of bktr 2020-03-01 20:37:42 +00:00
QORIQ64 powerpc: Remove 'sec' device from QORIQ64 config 2020-01-04 01:13:00 +00:00