summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.thfr2021-01-231-1/+9
| | | | | | | | This includes ujoy_hid_is_collection() to work around limitations of hid_is_collection() until this can be combined without fallout. input, testing with 8bitdo controller, and ok brynet@ PS4 controller testing, fix for hid_is_collection, and ok mglocker@
* kstat does open, close, and ioctl.dlg2020-07-061-1/+9
|
* ipmi: add a matching kqfilter filter for `seltrue' as well, allowing ussthen2020-06-291-3/+3
| | | | | to keep the behavior when switching poll(2) to use kqueue filters. From mpi@
* fix /dev/ipmi. conf.h r1.150 changed from enodev->selfalse for the pollsthen2020-06-291-2/+2
| | | | | | function but actually a 'true' value is needed; use seltrue instead. Problem reported, kenel bisected and diff tested by Jens A. Griepentrog. ok deraadt@ mpi@
* Make cdev_{audio,video}_init() expose a kqfilter handler.mpi2020-05-261-4/+4
| | | | Missed in previous.
* Match direct `seltrue' usages with a corresponding `seltrue_kqfilter'.mpi2020-05-131-2/+2
| | | | | | | This ensure spec_kqfilter() won't return an error when spec_poll() returns success for a given device. ok visa@
* Correct cdev_ipmi_init()'s poll stub to return 0 instead of ENODEV.mpi2020-04-211-3/+4
| | | | | | | | | poll functions shouldn't return errnos, selfalse() and seltrue() exist for this reason :) While here fix some comments. ok visa@
* Kill unused cdev_mousewr_init().mpi2020-04-031-8/+1
| | | | ok jca@, jsg@
* add pppac(4) code for a dedicated PPP Access Concentrator interface.dlg2020-01-221-1/+2
| | | | | | | | this is so we can pull the PIPEX code out of tun(4), which in turn will let us lock down tun(4) functionality and start moving the code around. ok claudio@ yasuoka@
* Import dt(4) a driver and framework for Dynamic Profiling.mpi2020-01-211-1/+10
| | | | | | | | | | | The design is fairly simple: events, in the form of descriptors on a ring, are being produced in any kernel context and being consumed by a userland process reading /dev/dt. Code and hooks are all guarded under '#if NDT > 0' so this commit shouldn't introduce any change as long as dt(4) is disable in GENERIC. ok kettenis@, visa@, jasper@, deraadt@
* Add fido(4), a HID driver for FIDO/U2F security keysreyk2019-12-171-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | While FIDO/U2F keys were already supported by the generic uhid(4) driver, this driver adds the first step to tighten the security of FIDO/U2F access. Specifically, users don't need read/write access to all USB/HID devices anymore and the driver also improves integration with pledge(2) and unveil(2): It is pledge-friendly because it doesn't require any ioctls to discover the device and unveil-friendly because it uses a single /dev/fido/* directory for its device nodes. It also allows to support FIDO/U2F in firefox without further weakening the "sandbox" of the browser. Firefox does not have a proper privsep design and many operations, such as U2F access, are handled directly by the main process. This means that the browser's "fat" main process needs direct read/write access to all USB HID devices, at least on other operating systems. With fido(4) we can support security keys in Firefox under OpenBSD without such a compromise. With this change, libfido2 stops using the ioctl to query the device vendor/product and just assumes "OpenBSD" "fido(4)" instead. The ioctl is still supported but there was no benefit in obtaining the vendor product or name; it also allows to use libfido2 under pledge. With feedback from deraadt@ and many others OK kettenis@ djm@ and jmc@ for the manpage bits
* Move kcov device definitions into <sys/conf.h>.visa2018-08-311-1/+9
| | | | OK anton@ deraadt@ kettenis@ mpi@
* add kqueue support to drm(4) by making the drm_sysfs_hotplug_event()robert2018-01-131-2/+2
| | | | | | | | | | | | available on OpenBSD well and by notifying listeners of a device state change using EVFILT_DEVICE and NOTE_CHANGE. drm_sysfs_hotplug_event() gets called when a state change of the device occured, like an hdmi cable has been plugged, this in the future will be used by the modesetting xorg driver to notify desktop environments via randr events to update their screen configuration ok kettenis@
* Remove support for tape block devices. Nobody mount(8)s tapes any longer.naddy2016-09-041-11/+4
| | | | ok deraadt@ guenther@
* Add switch(4) cdev entrygoda2016-09-021-1/+9
| | | | ok deraadt@ yasuoka@ reyk@
* more systrace goes awayderaadt2016-04-261-9/+1
|
* Enable device cloning for bpf. This allows to have just one bpf devicenatano2016-04-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | node in /dev, that services all bpf consumers (up to 1024). Also, disallow the usage of all but the first minor device, so accidental use of another minor device will attract attention. Cloning bpf offers some advantages: - Users with high bpf usage won't have to clutter their /dev with device nodes. - A lot of programs in base use a pattern like this to acces bpf: int fd, n = 0; do { (void)snprintf(device, sizeof device, "/dev/bpf%d", n++); fd = open(device, mode); } while (fd < 0 && errno == EBUSY); Those can now be replaced by a simple open(), without loop. ok mikeb "right time in the cycle to try" deraadt
* Move misplaced cdev_ipmi_init() back into within #ifdef _KERNEL.uebayasi2016-02-251-3/+3
| | | | Pointed out by natano@.
* Implement FreeBSD-compatible IOCTL to access BMC in ipmi(4)uebayasi2016-02-051-1/+9
| | | | | | Initial help & testing by jmatthew@ Code review & input by mpi@ Final review & OK by jsg@
* Add a key-value interface to pvbus(4) that allows to get or set valuesreyk2016-01-271-1/+10
| | | | | | | | | | | | | | in the underlying information store of the host from the OpenBSD-VM's userspace. OpenBSD did not provide access to these stores before, mostly because we did not want to add a custom tool and interface for each hypervisor. The pvbus(4) interface provides backends for xen(4)'s XenStore and vmt(4)'s VMware Tools "guestinfo". These information stores are fairly different, XenStore is a "filesystem" while vmt is a RPC, and the key-value abstraction limits them a bit but provides the most wanted functionality. Discussed with many OK mikeb@
* Add pledge "drm", which allows a subset of the drm(4) ioctls. These arekettenis2016-01-061-1/+2
| | | | | | | | | | | | | basically only the ioctls that Linux allows on the so-called "render nodes". For now, it also allows DRM_IOCTL_GET_MAGIC and DRM_IOCTL_GEM_OPEN, as we don't implement prime/dma-buf yet in OpenBSD. That still leaves a big gaping hole, so they will be removed as soon as we can. Based on a diff by robert@, who did all the heavy lifting by studying the behaviour of the chromium GPU process, with some further suggestions by deraadt@. ok jsg@, deraadt@, robert@
* Allocate a new major for tap(4) also note that pseudo-device tun is for tapclaudio2015-10-231-1/+2
| | | | as well. OK dlg@ mpi@
* kqueue(2) support for wsmouse(4), wskbd(4) and wsmux(4).mpi2015-09-101-3/+3
| | | | | | Needed for libinput port. ok guenther@, miod@
* Reimplement the audio driver in a simpler way, removing unused/unusableratchov2015-06-251-2/+2
| | | | | | functionality. Same API and ABI except for the removed bits and no behaviour change for programs using libsndio. With help from armani@ and mpi@, thanks.
* for decades, wsdisplay has acted in one way like it is not a ttyderaadt2015-05-171-2/+2
|
* dragonflybsd has added a urio driver. conservation of urios requirestedu2014-12-111-7/+1
| | | | | that we delete ours, which isn't actually useful. ok mpi sthen
* no need for lkm dummytedu2014-10-091-19/+1
|
* remove LKM supporttedu2014-10-091-11/+3
|
* Bye bye /dev/cryptomikeb2014-08-201-9/+1
| | | | | | | The interface has been disabled by default for about 4 years and currently there's not much value in having it around at all. ok deraadt
* Remove the userland AGP interface. Now that we have KMS, it is no longerkettenis2014-03-141-8/+1
| | | | | | | | | | used by any of the remaining xenocara drivers. Except perhaps for the legacy i810 support in the xf86-video-intel driver. But i810 support has almost certainly been broken for more than a year now, and any remaining users are probably better off using the xf86-video-vesa driver ever since XAA support was removed from the X server. ok deraadt@, jsg@, mpi@
* remove iop(4) driver. it is entirely unmaintained and supports somethingderaadt2013-11-041-21/+1
| | | | | which basically doesn't exist at all. reminded about it by brad
* Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.ajacoutot2013-08-201-2/+1
| | | | | | | | No regression has been reported since libusb became the prefered solution to work with USB scanners. req. by mpi@ ok ian@ mpi@ miod@
* Make fuse device clonable.syl2013-06-211-2/+2
| | | | ok tedu@
* final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt2013-06-111-5/+5
| | | | | test period; i think 3 years ago the last bugs fell out. ok otto beck others
* changes for isc fuse support. not enabled. ok beck deraadt.tedu2013-06-031-1/+9
| | | | from Sylvestre Gallon ccna.syl gmail.com
* sw_vp is now in struct nfs_diskless, remove it from struct swdevt.florian2013-04-191-2/+1
| | | | | This needs a change in config(8) to be commited shortly. input/ok deraadt@, ok miod@
* remove forgotten sequencer function prototypesratchov2013-03-151-2/+1
|
* kill nnpfs deadderaadt2012-08-231-8/+1
|
* ccd goes to the atticderaadt2011-10-061-4/+1
| | | | discussed with jsing and millert
* Introduce a kqfilter wrapper for the controlling tty device entrymikeb2011-10-061-2/+2
| | | | | | | | | | | | | | which allows a correct registration of kqueue(2) notifications on the /dev/tty instead of calling a function via a null pointer in the ttkqfilter leading to a local DoS. Surprisingly the same code is present in NetBSD since the kqueue merge, but didn't make it to the OpenBSD for 10 years. Thanks to Anton Yabchinskiy <arn-at-bestmx-dot-ru> for a GHCi crash report and his willingness to test multiple diffs for over a week. With input from nicm, ok miod, derraadt.
* Don't bother keeping a {u,}lptioctl function which is a duplicate ofmiod2011-09-171-7/+7
| | | | | enodev(). ok jsing@ krw@ deraadt@
* Add a new kqfilter for random which returns ARC4_MAIN_MAX_BYTES for readnicm2011-07-061-2/+2
| | | | | | and POOLBYTES for write. looks right to deraadt
* remove compat_svr4 support. ok deraadttedu2011-07-041-14/+1
|
* Nuke the useless D_KQFILTER flag and just check that d_kqfilter isnicm2011-07-041-25/+24
| | | | | | filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
* wsdisplay should use wsdisplaypoll not ttpoll.nicm2011-07-031-2/+2
| | | | ok miod deraadt
* Fix chrtoblk() and blktochr() prototypes to reflect that they returnmatthew2011-06-271-3/+3
| | | | dev_t, not int.
* garbage collect "usb events". without /dev/usb there is no way to accessjakemsr2011-01-251-2/+2
| | | | | | them from userland, and nothing in the kernel uses them. ok krw@, miod@
* split randomattach into random_init() and random_start(), so that wederaadt2011-01-081-2/+1
| | | | | can make attempts to load 'entropy' into the RC4. ok miod ariane
* all random nodes have been arc4-based for a while, so none of them everderaadt2010-12-311-3/+3
| | | | | | block. the kq and poll code should have been replaced with "selltrue" type code a while ago. with and ok nicm
* Add a new interface pppx(4) -- the ppp multiplexer to be used with npppdclaudio2010-09-221-1/+9
| | | | | | | and pipex. pppx(4) creates an interface whenever a session is created so that altq and pf can work on these. Started by dlg@ debugged and made usable by myself OK dlg@ yasuoka@ deraadt@