freebsd-nq/sys/modules
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
..
3dfx
3dfx_linux
aac
aacraid [aacraid] Port driver to big-endian 2020-03-05 20:04:41 +00:00
accf_data
accf_dns
accf_http
acl_nfs4
acl_posix1e
acpi
adlink
ae
aesni Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
age
agp
ahci
aic7xxx
alc
ale
allwinner The pwm interface was replaced with pwmbus, include the right header file. 2019-06-16 00:27:11 +00:00
alq
am335x_dmtpps
amd_ecc_inject
amdgpio
amdsbwd
amdsmb
amdsmn
amdtemp
amr
an
aout
apm
ar71xx
arcmsr
arm_ti Add module makefiles for Texas Instruments ARM SoCs. 2019-06-16 01:22:44 +00:00
armv8crypto
asmc
ata
ath
ath_ahb
ath_dfs
ath_hal
ath_hal_ar5210
ath_hal_ar5211
ath_hal_ar5212
ath_hal_ar5416
ath_hal_ar9300
ath_main
ath_pci
ath_rate
autofs
bce
bcm283x_clkman
bcm283x_pwm
bfe
bge Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
bhnd
bios
blake2 Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
bnxt
bridgestp
bwi
bwn
bxe
bytgpio
cam
cardbus
carp
cas Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
cbb We'll never have multiple slots a cardbus bridge. So, replace exca 2019-12-16 21:34:51 +00:00
cc
ccp
cd9660
cd9660_iconv
ce Disable new clang 10.0.0 warnings about misleading indentation in ce(4) 2020-02-13 19:25:49 +00:00
cfi
cfiscsi
chromebook_platform
chvgpio
ciss
cloudabi
cloudabi32
cloudabi64
cmx
coretemp
cp Disable new clang 10.0.0 warnings about misleading indentation in ce(4) 2020-02-13 19:25:49 +00:00
cpsw
cpuctl
cpufreq cpufreq(4): Add support for Intel Speed Shift 2020-01-22 23:28:42 +00:00
crypto Expose zlib's utility functions in Z_SOLO library when building kernel. 2019-08-07 01:41:17 +00:00
cryptodev
ctau
ctl
cuse
cx
cxgb
cxgbe cxgbe(4): Update T4/5/6 firmwares to 1.24.12.0. 2020-02-12 02:55:06 +00:00
dc
dcons
dcons_crom
dpms
dtb Add an overlay for RK3328 USB3 node. 2020-01-29 12:10:42 +00:00
dtrace Stop compiling dtrace modules with -DSMP. 2020-02-05 19:08:45 +00:00
dummynet
efirt Add missing DPSRCS entry for assym.inc. 2019-06-11 23:35:49 +00:00
em
ena Introduce NETMAP support in ENA 2019-10-31 15:51:18 +00:00
epoch_test
esp Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
et
evdev
exca
ext2fs
fdc
fdescfs
fdt
ffec
filemon
firewire
firmware
fusefs Remove the fuse.ko -> fusefs.ko symlink 2019-08-07 20:28:27 +00:00
fxp
gem Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
geom Remove GEOM_SCHED class and gsched tool. 2019-12-29 21:16:03 +00:00
glxiic
glxsb
gpio Add module build stuff for gpioths(4), a driver for DHT11/DHT22 sensors. 2019-12-07 17:54:40 +00:00
hifn
hme Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
hpt27xx
hptiop
hptmv Harmonize the hptmv blob's build rule with that of other hpt* drivers. 2019-10-02 16:18:50 +00:00
hptnr
hptrr
hwpmc Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
hwpmc_mips24k
hwpmc_mips74k
hyperv
i2c Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
iavf
ibcore
ichwd
ida
if_bridge
if_disc
if_edsc
if_enc
if_epair
if_gif
if_gre
if_lagg modules: adding some missing opt_* dependencies 2020-01-29 22:43:56 +00:00
if_me
if_ndis
if_stf
if_tuntap if_tuntap: remove if_{tun,tap}.ko -> if_tuntap.ko links 2019-10-21 20:28:38 +00:00
if_vlan modules: adding some missing opt_* dependencies 2020-01-29 22:43:56 +00:00
if_vxlan
iflib
iir
imgact_binmisc
imx
intelspi
io
ioat
ip6_mroute_mod
ip_mroute_mod
ipdivert
ipfilter Whitespace adjustment. 2019-06-06 03:02:25 +00:00
ipfw
ipfw_nat
ipfw_nat64 Follow RFC 4443 p2.2 and always use own addresses for reflected ICMPv6 2019-12-12 13:28:46 +00:00
ipfw_nptv6
ipfw_pmod
ipmi
ipoib
ips
ipsec
ipw
ipwfw
isci
iscsi
iscsi_initiator
iser
isp Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
ispfw Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
itwd itwd(4): driver for watchdog function in ITE Super I/O chips 2019-10-16 14:57:38 +00:00
iwi
iwifw
iwm iwm: Add device configuration definitions for 9000-series chips. 2019-11-07 23:35:54 +00:00
iwmfw Downgrade the firmware images imported in r354201. 2019-11-03 03:23:27 +00:00
iwn
iwnfw Stop using .OODATE for extracting firmware. 2019-06-12 00:03:00 +00:00
ix Remove more manual additions of -DSMP. 2020-02-06 21:01:19 +00:00
ixl
ixv Remove more manual additions of -DSMP. 2020-02-06 21:01:19 +00:00
jme
kbdmux
kgssapi
kgssapi_krb5
khelp
krpc
ksyms
ktls_ocf Add kernel-side support for in-kernel TLS. 2019-08-27 00:01:56 +00:00
le Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
lge
libalias
libiconv
libmchain
lindebugfs LinuxKPI: Finalize move of lindebugfs from ports to base. 2019-05-19 15:44:21 +00:00
linprocfs Add warning to the Linuxulator makefiles that building it outside of a 2019-05-13 18:28:40 +00:00
linsysfs Add warning to the Linuxulator makefiles that building it outside of a 2019-05-13 18:28:40 +00:00
linux Replace -Werror with ${WERROR} in module builds 2019-08-25 22:06:17 +00:00
linux64 Replace -Werror with ${WERROR} in module builds 2019-08-25 22:06:17 +00:00
linux_common Add warning to the Linuxulator makefiles that building it outside of a 2019-05-13 18:28:40 +00:00
linuxkpi linuxkpi: Move shmem related functions in it's own file 2020-02-21 09:28:45 +00:00
lio Remove more manual additions of -DSMP. 2020-02-06 21:01:19 +00:00
lpt
mac_biba
mac_bsdextended
mac_ifoff
mac_lomac
mac_mls
mac_none
mac_ntpd
mac_partition
mac_portacl
mac_seeotheruids
mac_stub
mac_test
mac_veriexec
mac_veriexec_sha1
mac_veriexec_sha256
mac_veriexec_sha384
mac_veriexec_sha512
malo
md
mdio
mem
mfi
mgb Introduce if_mgb driver for Microchip LAN743x PCIe NIC 2019-11-06 19:51:40 +00:00
mii
mlx
mlx4
mlx4en
mlx4ib
mlx5 Add basic support for TCP/IP based hardware TLS offload to mlx5core. 2019-12-05 15:16:19 +00:00
mlx5en Implement hardware TLS via send tags for mlx5en(4), which is supported by 2019-12-06 15:36:32 +00:00
mlx5fpga_tools
mlx5ib
mlxfw
mly
mmc
mmcnull
mmcsd
mpr
mps
mpt
mqueue
mrsas
msdosfs
msdosfs_iconv
msk
mthca
mvs
mwl
mwlfw Stop using .OODATE for extracting firmware. 2019-06-12 00:03:00 +00:00
mxge Expose zlib's utility functions in Z_SOLO library when building kernel. 2019-08-07 01:41:17 +00:00
my
nctgpio
ndis
netfpga10g
netgraph ng_ubt(4): do not attach Intel Wireless 8260/8265 in bootloader mode. 2019-08-18 22:11:42 +00:00
netmap
nfe
nfscl
nfscommon
nfsd
nfslock
nfslockd
nfssvc
nge
nmdm
ntb Forgotten part of r351137. 2019-08-16 20:30:31 +00:00
nullfs
nvd
nvdimm nvdimm(4): Fix Clang build after r353110 2019-10-04 21:47:09 +00:00
nvme Create a AHCI attachment for nvme. 2019-08-21 22:18:01 +00:00
nvram
oce Remove more manual additions of -DSMP. 2020-02-06 21:01:19 +00:00
ocs_fc Don't delete .depend files outside of cleandepend. 2019-06-12 23:09:10 +00:00
opal_nvram powerpc64/powernv: Add opal NVRAM driver for PowerNV systems 2019-09-14 03:30:34 +00:00
opensolaris
otus
otusfw
ow
padlock
padlock_rng
pccard
pcfclock
pf Add a missing include of opt_sctp.h. 2019-10-12 23:01:16 +00:00
pflog
pfsync
plip
pms
powermac_nvram
ppbus
ppc
ppi
pps
procfs
proto
pseudofs
pst
pty
puc
pwm Add ofw_pwmbus to enumerate pwmbus devices on systems configured with fdt 2019-06-17 03:32:05 +00:00
qlnx
qlxgb
qlxgbe
qlxge
ral
ralfw Stop using .OODATE for extracting firmware. 2019-06-12 00:03:00 +00:00
random_fortuna
random_other
rc
rc4
rccgpio
rdma
rdrand_rng
re
rl
rndtest
rockchip arm64: rockchip: Add a module for rk_spi 2020-01-02 17:44:41 +00:00
rp
rpi_ft5406
rtwn
rtwn_pci
rtwn_usb
rtwnfw Stop using .OODATE for extracting firmware. 2019-06-12 00:03:00 +00:00
s3
safe
sbni
scc Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
sdhci
sdhci_acpi
sdhci_pci
sdio Add opt_cam.h so we can build this outside of a kernel build. 2019-06-13 22:03:53 +00:00
sem
send
sfxge
sge
sgx
sgx_linux
siftr
siis
sis
sk
smartpqi
smbfs
snp
sound Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
speaker
spi
spigen
splash
sppp
ste
stge
superio add superio driver 2019-07-01 17:05:41 +00:00
sym
syscons Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
sysvipc
tcp This commit adds BBR (Bottleneck Bandwidth and RTT) congestion control. This 2019-09-24 18:18:11 +00:00
tests
ti Add module makefiles for Texas Instruments ARM SoCs. 2019-06-16 01:22:44 +00:00
tmpfs
toecore
tpm Revert r357349, since the clang 10.0.0 warning was actually correct, and 2020-02-01 16:57:04 +00:00
tsec
twa
twe
tws
uart Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
ubsec
ubser
uchcom
ucycom
udf
udf_iconv
ufs
uinput
unionfs
usb Fix build of stand/usb . 2020-01-23 10:40:34 +00:00
veriexec
vesa
vge
viawd
videomode
virtio
vkbd
vmd This driver attaches to the Intel VMD drive and connects a new PCI domain 2019-10-10 03:12:17 +00:00
vmm Remove more manual additions of -DSMP. 2020-02-06 21:01:19 +00:00
vmware vmxnet3: add support for RSS kernel option 2020-01-23 11:05:03 +00:00
vnic
vr
vte
wbwd
wi
wlan
wlan_acl
wlan_amrr
wlan_ccmp
wlan_rssadapt
wlan_tkip
wlan_wep
wlan_xauth
wpi
wpifw
wtap
x86bios
xl
xz
zfs Remove duplicate lz4 implementations 2019-11-02 12:28:04 +00:00
zlib Remove zlib 1.0.4 from kernel. 2019-08-25 17:13:00 +00:00
Makefile [aacraid] Port driver to big-endian 2020-03-05 20:04:41 +00:00
Makefile.inc