summaryrefslogtreecommitdiff
path: root/sys/modules
AgeCommit message (Collapse)Author
2021-12-19Suppress some harmless clang warnings.riastradh
2021-12-19Rename fence -> dma_fence, step 2: files files.riastradh
2021-12-07A driver and user land utility for the Sparkfun Serial Controlled Motorbrad
Driver module as illustrated here: https://www.sparkfun.com/products/13911 A SCMD module is a ARM SOC simular to a Arduino in front of a motor driver chip. The single SCMD module can control two motors and up to 16 additional modules can be chained together using an internal I2C bus. One can interface with the SCMD using tty uart commands, SPI or I2C. The driver in this commit adds a kernel driver for the I2C and SPI interfaces. The command line utility provides a set of convenience commands that support most of the functions of the SCMD and is able to use the tty uart mode, SPI user land or the included kernel driver in a uniform manor. The use of the SCMD module is mostly for small robots and the like, but it can control anything that is controllable by voltage.
2021-11-27fix build for aarch64ebryo
2021-11-25add support COMPAT_LINUX32 for aarch64ryo
2021-11-06Driver for the Sensirion SHT30/SHT31/SHT35 temperature and humiditybrad
sensor such as: https://www.adafruit.com/product/2857 This is a higher priced sensor with a lot of features, including the ability to do sub-second periodic updates. The driver supports everything about the sensor except for the alert pin.
2021-10-23Move msdosfs_rename() and doscheckpath() to new file msdosfs_rename.c.hannken
No functional change.
2021-10-21fix various typos, mainly in comments, but also in man pages and log messages.andvar
2021-10-14A driver for the Sensirion SGP40 MOx gas sensor. An example of thisbrad
chip from Adafruit is: https://www.adafruit.com/product/4829 This is a moderately priced gas sensor that can detect volatile organic compounds in the air. The driver uses the 3-clause BSD licensed VOC algorithm provided by Sensirion to turn the raw sensor metric into a VOC index which can indicate the quality of the air in a particular indoor environment. All published functions of the chip are supported and one unpublished feature.
2021-10-09Modularize compat_linux(8) for aarch64.ryo
2021-10-03A driver for the Sensirion SHT40/SHT41/SHT45 temperature and humiditybrad
sensor. An example of this chip is: https://www.adafruit.com/product/4885 This is a lower cost chip that provides higher then usual precision according to the data sheet. This driver supports all of the published functions that the chip has.
2021-09-25Disable drmkms module builds.maya
They haven't been functional (and won't be before fixing genfb abi). In a new drm update, we haven't prioritized fixing the build either.
2021-09-11Build and install the if_run module. run(4) is not necessarily includedpgoyette
in all GENERIC kernels (as reported on libera IRC).
2021-08-21rename glue.c to sodium_module.cchristos
2021-08-18Don't define HAVE_TI_MODE if we don't have it.christos
2021-08-18Fix broken namechristos
2021-08-17s/blake2s/blakes2s/ to match the directory that existskre
2021-08-17modules for blake2s libsodium and if_wgchristos
2021-08-09fix various typos in compatibility, mainly in comments.andvar
2021-08-08Fix LIST operations, found by strictly-aligned CPUs, i.e., ARMv5 and IBM403:rin
- Initialize LIST_HEAD. - Use LIST_FOREACH_SAFE() where necessary.
2021-08-08Add ddbping example module to SUBDIR list.uwe
2021-08-07Make sure that buffers allocated by lua_alloc() are aligned to 8-byterin
boundaries as done by kmem_alloc(9). Fix alignment faults on armv5te; GCC emits ldrd/strd instructions for memory operands that are guaranteed to be aligned properly. Drop unnecessary __packed attribute from alloc_header_t at the same time.
2021-08-03Switch evbppc/ibm4xx to generic evbppc (same as oea) kernel modules.rin
I've confirmed that kernels similar to amd64/conf/MODULAR work fine both on 403 and 405. XXX Unfortunately, we cannot immediately switch evbppc/booke to generic kernel modules yet; it has its own intr.h implementation.
2021-06-29Add containment for the cloning devices hack in vn_open.dholland
Cloning devices (and also things like /dev/stderr) work by allocating a struct file, stuffing it in the file table (which is a layer violation), stuffing the file descriptor number for it in a magic field of struct lwp (which is gross), and then "failing" with one of two magic errnos, EDUPFD or EMOVEFD. Before this commit, all callers of vn_open in the kernel (there are quite a few) were expected to check for these errors and handle the situation. Needless to say, none of them except for open() itself did, resulting in internal negative errnos being returned to userspace. This hack is fairly deeply rooted and cannot be eliminated all at once. This commit adds logic to handle the magic errnos inside vn_open; now on success vn_open returns either a vnode or an integer file descriptor, along with a flag that says whether the underlying code requested EDUPFD or EMOVEFD. Callers not prepared to cope with file descriptors can pass NULL for the extra return values, in which case if a file descriptor would be produced vn_open fails with EOPNOTSUPP. Since I'm rearranging vn_open's signature anyway, stop exposing struct nameidata. Instead, take three arguments: an optional vnode to use as the starting point (like openat()), the path, and additional namei flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei behavior, e.g. NOFOLLOW, can be requested via the open flags.) This change requires a kernel bump. Ride the one an hour ago. (That was supposed to be coordinated; did not intend to let an hour slip by. My fault.)
2021-06-21fix proplib deprecationchristos
2021-06-03build the drmkms modules with -fwrapv toonia
2021-05-17Add a new link-aggregation pseudo interface named lagg(4)yamaguchi
- FreeBSD's lagg(4) based implementation - MP-safe and MP-scalable
2021-04-25Handle mipsn64christos
2021-04-15- Don't define NEED_ISYSTEM. This is a rump thing and should be only exposedchristos
there.
2021-04-15- Don't include <bsd.own.mk> It should be done by the enclosing Makefilechristos
- Don't define NEED_ISYSTEM. This is a rump thing and should be only exposed there.
2021-04-13apply -Wno-error=array-bounds for GCC 10.mrg
these trigger "pointer to end of array" issues, and i'm not entirely sure what is happening in the code generated for the two "INDIR" system calls from syscalls.master.
2021-04-13more GCC 10 fixes.mrg
mDNSResponder: another wrong return local address dhcp: ignore a seemingly impossible stringop overflow hpacel: avoid maybe uninitialised error that is wrong. rsh: avoid impossible malloc(0) udf: cast pointers through (uintptr_t) to fool invalid boundary checks
2021-04-13apply some -Wno- to ignore several new warnings with GCC 10.mrg
ntp: ignore truncation beyond api sizes, and ignore wrongly guessed underflow tmux: ignore maybe uninitialised warning for impossible case libbfd: signed/unsigned variables assigned in the same statement dri/gallium: -Wno-builtin-declaration-mismatch for u_atomic.c as it implements backend functions with different in-C-machine but same-in-real-machine types libXfont/libXfont2: signed/unsigned variables assigned in the same statement i915drm: ignore impossible maybe uninitialised warnings sysinst: ignore an invalid string truncation issue
2021-04-12include bsd.own.mk to make sure $S is set.mrg
2021-04-12add some new uses of existing GCC_NO_* variables for warning issues.mrg
remove an no longer relevant for gcc7 workaround (works fine in both gcc9 and gcc 10.)
2021-04-10Build the netbsd32_syscall module if mips64.simonb
Don't build the linux_syscall module if mips*
2021-03-25don't restrict pad module to i386 and amd64.nia
- module build tested on amiga, vax, i386, amd64, evbarm. - build.sh release tested on i386. - pad module functionality tested on aarch64.
2021-03-23Add some \n's to the end of some printf()s.simonb
2021-02-23introduce DDB_END_CMD and replace more than 20 copies of the samemrg
list of NULLs and 0. idea from rillig@. all touched ports built, several booted.
2020-11-07fix arm testchristos
2020-11-04Use opt_execfmt.h to get build options.pgoyette
Only include elf32 hooks if we have elf32 defined and elf32 is not the "native" emulation. This allows for having compat_netbsd32 without elf32 (although it's probably not too useful), and also enables arm's old-ABI usage of compat_netbsd32.
2020-11-01Separate the compat_netbsd32_coredump from the compat_netbsd32 andpgoyette
coredump modules, into its own module. Welcome to 7.99.75 !!!
2020-10-27move vmt(4) from MD to MI, and add support vmt on aarch64. tested on ↵ryo
ESXi-Arm Fling - move from sys/arch/x86/x86/{vmt.c,vmtreg.h,vmtvar.h} to sys/dev/vmt/{vmt_subr.c,vmtreg.h,vmtvar.h}, and split the attach part of the cpufeaturebus and fdt - add aarch64 vmware backdoor op - add include guard to vmt{reg,var}.h - Yet there is still some little-endian dependency. it needs to be fixed in order to work properly on aarch64eb
2020-10-21process_machdep.c is mandatory now.christos
2020-10-19Arrange so that no options COREDUMP and no options PTRACE work together.christos
Thanks to Paul Goyette for testing.
2020-10-18Provide a global no-packed-address for both gcc and clangchristos
2020-10-18use the GCC_ warning variablechristos
2020-10-18Avoid alignment of packed memberchristos
2020-10-18Avoid alignment of packed memberchristos
2020-10-14modularize, and fix build errorryo