opnsense-src/sys
Alexander Motin fcaf473cfc Overhaul CAM SG driver IOCTL interfaces.
Make it really work for native FreeBSD programs.  Before this it was broken
for years due to different number of pointer dereferences in Linux and
FreeBSD IOCTL paths, permanently returning errors to FreeBSD programs.
This change breaks the driver FreeBSD IOCTL ABI, making it more strict,
but since it was not working any way -- who bother.

Add shims for 32-bit programs on 64-bit host, translating the argument
of the SG_IO IOCTL for both FreeBSD and Linux ABIs.

With this change I was able to run 32-bit Linux sg3_utils tools and simple
32 and 64-bit FreeBSD test tools on both 32 and 64-bit FreeBSD systems.

MFC after:	1 month
2014-06-02 19:53:53 +00:00
..
amd64 Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doing 2014-05-31 23:37:34 +00:00
arm Configure the analog input 7 which, on BBB, is connected to the 3V3B rail 2014-06-02 02:00:17 +00:00
boot Add support for Exynos 5420 Octa - 8-core 2014-06-01 08:15:34 +00:00
bsm IFp4 @1192291: 2014-04-07 20:44:00 +00:00
cam Overhaul CAM SG driver IOCTL interfaces. 2014-06-02 19:53:53 +00:00
cddl MFV 266913+266914: 2014-05-31 01:00:22 +00:00
compat Overhaul CAM SG driver IOCTL interfaces. 2014-06-02 19:53:53 +00:00
conf Factor out kernel configuration for DWC OTG FDT attach code. 2014-05-29 11:13:40 +00:00
contrib Move mutex creation from ipf_log_soft_init() to ipf_log_soft_create() 2014-05-24 06:05:21 +00:00
crypto NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
ddb ddb: Minor style cleanups. 2014-03-31 16:37:41 +00:00
dev Convert bxe(4) to use the driver API. 2014-06-02 18:54:45 +00:00
fs Initial import of character device in userspace support for FreeBSD. 2014-05-23 08:46:28 +00:00
gdb rename scheduler->swapper and SI_SUB_RUN_SCHEDULER->SI_SUB_LAST 2013-07-24 09:45:31 +00:00
geom Use g_conf_printf_escaped() to escape symbols, which can break 2014-05-30 10:35:51 +00:00
gnu Symbolic bindings for the dts files... 2014-02-28 16:51:33 +00:00
i386 To allow to run the interpreter itself add a new ELF branding type. 2014-05-31 15:01:51 +00:00
ia64 Bring in the mpr(4) driver for LSI's MPT3 12Gb SAS controllers. 2014-05-02 20:25:09 +00:00
isa Remove vestiges of knowing the ISA bus, which we gave up on around 20 2014-03-19 21:03:04 +00:00
kern Introduce a procedural interface to the ifnet structure. The new 2014-06-02 17:54:39 +00:00
kgssapi Add support for host-based (Kerberos 5 service principal) initiator 2013-07-09 01:05:28 +00:00
libkern Fix typo 2013-11-29 20:14:26 +00:00
mips Hook the ISP/SAF1761 driver into MIPS kernel builds. 2014-05-29 10:46:09 +00:00
modules enable sound modules on arm.. This is necessary to get the uaudio 2014-06-02 03:27:33 +00:00
net Introduce a procedural interface to the ifnet structure. The new 2014-06-02 17:54:39 +00:00
net80211 Use logical rather than bitwise OR in if() expression. 2014-04-26 23:22:49 +00:00
netgraph Use M_WAITOK for the NGM_PIPE_SET_CFG control message. We expect it to 2014-05-28 13:15:14 +00:00
netinet ECN marking implenetation for dummynet. 2014-06-01 07:28:24 +00:00
netinet6 Fix unintended KBI change from r264905. Add _fib versions of 2014-05-29 21:03:49 +00:00
netipsec Use IPv4 statistics in ipsec4_process_packet() rather than the IPv6 2014-05-28 23:01:20 +00:00
netnatm Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
netpfil DNOLD_IS_ECN introduced by r266941 is not required. 2014-06-01 20:19:17 +00:00
netsmb Remove redundant unlock. 2014-04-17 12:22:08 +00:00
nfs - Remove rt_metrics_lite and simply put its members into rtentry. 2014-03-05 01:17:47 +00:00
nfsclient For software builds, the NFS client does many small 2013-12-07 23:05:59 +00:00
nfsserver The PR reported that the old NFS server did not set uio_td == NULL 2014-04-24 20:47:58 +00:00
nlm Correct a typo in nlm_find_host_by_addr(): the intention of the 2014-03-11 00:25:55 +00:00
ofed Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
opencrypto allow the kern.cryptodevallowsoft sysctl to enable symetric/hashes too... 2014-03-11 01:45:46 +00:00
pc98 lindev(4): finish the partial commit in r265212 2014-05-02 07:14:22 +00:00
pci Increase the number of TX DMA segments from 32 to 35. It turned 2014-03-31 01:54:59 +00:00
powerpc Commit the rest of the changes that were intended to be part of r266826. 2014-05-29 01:42:22 +00:00
rpc Properly free resources in case of error. 2014-05-02 20:45:55 +00:00
security audit: plug FILEDESC_LOCK leak in audit_canon_path. 2014-03-21 01:30:33 +00:00
sparc64 Bring in the mpr(4) driver for LSI's MPT3 12Gb SAS controllers. 2014-05-02 20:25:09 +00:00
sys To allow to run the interpreter itself add a new ELF branding type. 2014-05-31 15:01:51 +00:00
teken Fix typo. 2014-02-06 13:28:06 +00:00
tools Fix logic error. <blush> 2014-04-30 20:52:38 +00:00
ufs Due to reasons unknown at this time, the system can be forced to write 2014-05-06 20:40:16 +00:00
vm Remove the assert which can be triggered by the userspace. The 2014-05-28 00:45:35 +00:00
x86 Eliminate the fake contig_dmamap and replace it with a new flag, 2014-05-27 21:31:11 +00:00
xdr Use m_get() and m_getcl() instead of compat macros. 2013-03-15 10:21:18 +00:00
xen Make this compile with gcc. 2014-04-05 22:43:18 +00:00
Makefile Reorganize this Makefile so that all the bsd.*.mk bits are in one 2014-05-29 16:03:08 +00:00