Commit Graph

1767 Commits

Author SHA1 Message Date
flxd 50e68e123b spelling (DEC called it "TURBOchannel") 2017-06-22 16:46:52 +00:00
christos 20db6eee6d Assign DTB files to a variable so we can make -V DTB 2017-06-17 17:08:49 +00:00
jmcneill 65c281d231 bump required config version for multiline makeoptions feature 2017-06-16 21:36:35 +00:00
jmcneill 77f306ac09 Add support for building DTB files during kernel build, from christos. 2017-06-15 21:41:01 +00:00
pgoyette 5b782bb9ef Remove the 'needs-flag' from spkr.c - it's not needed by anything. 2017-06-11 21:45:28 +00:00
nat b377bbb391 New device wsbell - allows for a console beep for non pckbds (usb etc).
Works for platforms without pcppi - can work with spkr at audio and spkr
at pcppi.

To use add the following to your kernel config:
wsbell* at spkr? console?

Ok pgoyette@.
2017-06-11 03:55:56 +00:00
jmcneill 25cf81196f Add driver for ARM PrimeCell PL031 (RTC) Real Time Clock. 2017-06-08 21:00:43 +00:00
jmcneill fa4e708e32 Add driver for ARM PrimeCell Advanced Audio CODEC interface (PL041).
Don't expect this driver to work on real hardware, but QEMU emulates it.
2017-06-08 10:02:39 +00:00
jmcneill 08e913c093 Add driver for ARM PrimeCell PL050 (KMI) PS2 keyboard/mouse interface 2017-06-03 17:03:36 +00:00
bouyer 6e4cb2b9ab merge the bouyer-socketcan branch to HEAD.
CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.
2017-05-27 21:02:54 +00:00
christos 6f3dbe105c Fix typo 2017-04-09 14:52:14 +00:00
christos 169a1fef7d Add makefile snippet for vers.c building. 2017-04-08 19:53:54 +00:00
christos 15545435eb - modernize: use getopts/usage/true/false variables
- if ${MKREPRO_TIMESTAMP} is used, synthesize all the information, instead
  of eliding it.
2017-04-08 18:24:09 +00:00
rin 7e8d492b8f Add DKWEDGE_METHOD_RDB option, which is Amiga Rigid Disk Block (RDB)
partitioning detection method for dk(4).
2017-02-26 11:56:49 +00:00
knakahara 939a415a7d add l2tp(4) L2TPv3 interface.
originally implemented by IIJ SEIL team.
2017-02-16 08:12:43 +00:00
macallan a0e93c0528 chipsfb needs glyphcache now 2017-02-02 19:50:35 +00:00
joerg f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
christos 6be7068cf1 Move to ssp.c suggested by uebayasi@ 2017-01-08 17:10:35 +00:00
christos 65ce4b4f2f Add COPTS for xhci.c, since the do_command_locked causes a spurious stack
proector warning.
2017-01-08 05:02:08 +00:00
christos f83bb9fcab Collect a list of kernel swap files to be removed (Yorick Hardy) 2017-01-04 21:37:46 +00:00
christos 393981f1b2 match the M* and N* targets. 2017-01-04 19:55:06 +00:00
christos 772001de84 PR/51772: Yorick Hardy: Don't hard-code "netbsd", use ${.TARGET} consistently. 2017-01-04 15:43:04 +00:00
snj f9c4b1fa54 goodbye 2016, hello 2017! 2017-01-01 06:56:59 +00:00
pgoyette 7f0851cee1 Add a BIOHIST option. As mentioned on tech-kern. 2016-12-26 23:12:33 +00:00
christos 0b335da6c0 Restructure speaker devices so that there can be multiple of them, and have
proper softc's.
2016-12-13 20:20:34 +00:00
nat 03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
pgoyette a60b99094c * Split sys/kern/sys_process.c into three parts:
1 - ptrace(2) syscall for native emulation
        2 - common ptrace(2) syscall code (shared with compat_netbsd32)
        3 - support routines that are shared with PROCFS and/or KTRACE

* Add module glue for #1 and #2.  Both modules will be built-in to the
  kernel if "options PTRACE" is included in the config file (this is
  the default, defined in sys/conf/std).

* Mark the ptrace(2) syscall as modular in syscalls.master (generated
  files will be committed shortly).

* Conditionalize all remaining portions of PTRACE code on a new kernel
  option PTRACE_HOOKS.

XXX Instead of PROCFS depending on 'options PTRACE', we should probably
    just add a procfs attribute to the sys/kern/sys_process.c file's
    entry in files.kern, and add PROCFS to the "#if defineds" for
    process_domem().  It's really confusing to have two different ways
    of requiring this file.
2016-11-02 00:11:59 +00:00
pgoyette 1adbabf156 Update dependencies for COMPAT_LINUX32 to include COMPAT_NETBSD32
Without this, an attempt to build a kernel with COMPAT_LINUX32 but without
COMPAT_NETBSD32 will fail during the execution of genassym, and the error
messages are not very helpful.

With this change, config(1) will automatically (and silently) select/add
COMPAT_NETBSD32 to the configuration.  It might be better if config(1)
were to issue an appropriate diagnostic, but that is a change for some
future day.
2016-11-01 22:54:33 +00:00
christos e6da8e6442 sppp is not a pseudo-device 2016-09-09 21:10:01 +00:00
nonaka 4a15838ffa Fix to cannnot be opened a nvme(4) namespace device file. 2016-09-08 15:00:08 +00:00
maxv 42e304b16d Remove the last references to KMEMSTATS. 2016-08-19 18:08:50 +00:00
christos 5a7020b9b6 defopt PPPOE_DEBUG kill unknown sessions 2016-08-11 15:16:54 +00:00
christos 520827be3b rename ifmpls to mpls, so we don't have if_ifmpls... 2016-08-07 10:44:04 +00:00
skrll 70699ce203 Fix UVMHIST builds for kernels that don't include usb 2016-06-23 07:32:12 +00:00
nonaka e7c0cc5d9a Add NVMe command passthrough support. 2016-06-04 16:11:50 +00:00
bouyer bdf10c852a The UART in the allwiner SoCs is not full-compatible with the 16550, and
it's not a 16750 either. Like the 16750 it has the IIR_BUSY interrupt,
which is triggered when writing to LCR while the chip
can't accept it. But unlike the 16750, it has a specific register,
HALT, to allow writing to the LCR and divisor registers, and then
commit the changes.
Tested on an A20 SoC, changing the baud rate while keeping the
tty device open and incoming data.
2016-05-27 20:01:49 +00:00
skrll c0bc9f43b6 Clarify the intention here after discussing it with soda@ 2016-05-13 07:41:47 +00:00
soda 5407bb6145 - change major number limit for MI devices from 255 to 511,
because twe is already using 332
- clarify that new MI devices should go to this file
  instead of majors.{ws,usb,std,tty,storage}
- fix major number conflict about hdmicec vs tty

OKed by matt@
the expression "previously not MI" is suggested by matt@ too.
2016-05-13 02:00:36 +00:00
skrll eb30461f6b Update with info about tty/storage reservations 2016-05-11 06:42:06 +00:00
nonaka 8b5163f01f Added nvme(4) for Non-Volatile Memory Host Controller Interface devices.
Ported from OpenBSD.
2016-05-01 10:21:01 +00:00
christos 021cd4d7f5 Add rt2860 now that it compiles. 2016-04-27 19:46:11 +00:00
skrll 9b8e5df7bf First pass at adapting SLHCI_DEBUG to USBHIST 2016-04-26 10:38:42 +00:00
skrll ee8228cf5e Merge nick-nhusb (missed commit) 2016-04-23 12:50:35 +00:00
christos 66e4a9ed95 Add PAX_MPROTECT_DEBUG 2016-04-12 11:51:08 +00:00
riastradh 617d199e69 Use && to fail early if subcommands of kernel link fail.
(Remind me why we string together shell commands instead of just
using make targets?)
2016-04-09 18:51:44 +00:00
skrll 62976e3600 Move linux_work.c and workqueue.h from sys/external/bsd/drm2 to
sys/external/common so that they can be used by others.

LGTM from riastradh@

These should really live outside sys/external, but that can be decided
later
2016-02-24 22:04:15 +00:00
mrg c662775e21 WELCOME 2016! 2015-12-31 15:23:07 +00:00
maxv a1153902a9 Rename verified_exec.c -> veriexec.c.
The old log is now in Attic/.
2015-12-09 18:25:32 +00:00
jmcneill bd0f8235ce Add basic clock device infrastructure. 2015-12-05 13:31:07 +00:00
christos e77b077223 use commands() instead of target() because assym.mk creates all the targets
unconditionally.
2015-11-27 20:59:47 +00:00