History log of /openbsd-current/etc/MAKEDEV.common
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.120 28-Jan-2023 phessler

Update the number of default wskbd entries

OK deraadt@


# 1.119 14-Jan-2023 kettenis

Create /dev/efi on amd64 and arm64.

ok yasuoka@


# 1.118 10-Nov-2022 krw

Nuke Vax (ra,rx) and HP-300 (hd) devices.

Noticed by kn@

ok millert@


# 1.117 09-Nov-2022 krw

Remove xy/xd. SMD left with sparc.

ok kn@ deraadt@


# 1.116 06-Nov-2022 kn

There is only one pf(4); OK sashan


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.115 07-Jan-2022 jsg

stop creating old drm device nodes


# 1.114 11-Nov-2021 claudio

/dev/switch[0-4] is no longer needed.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.113 12-Feb-2021 jsg

create /dev/ drm nodes with the same names as linux

This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.

/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128

The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.

libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.

ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.119 14-Jan-2023 kettenis

Create /dev/efi on amd64 and arm64.

ok yasuoka@


# 1.118 10-Nov-2022 krw

Nuke Vax (ra,rx) and HP-300 (hd) devices.

Noticed by kn@

ok millert@


# 1.117 09-Nov-2022 krw

Remove xy/xd. SMD left with sparc.

ok kn@ deraadt@


# 1.116 06-Nov-2022 kn

There is only one pf(4); OK sashan


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.115 07-Jan-2022 jsg

stop creating old drm device nodes


# 1.114 11-Nov-2021 claudio

/dev/switch[0-4] is no longer needed.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.113 12-Feb-2021 jsg

create /dev/ drm nodes with the same names as linux

This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.

/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128

The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.

libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.

ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.118 10-Nov-2022 krw

Nuke Vax (ra,rx) and HP-300 (hd) devices.

Noticed by kn@

ok millert@


# 1.117 09-Nov-2022 krw

Remove xy/xd. SMD left with sparc.

ok kn@ deraadt@


# 1.116 06-Nov-2022 kn

There is only one pf(4); OK sashan


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.115 07-Jan-2022 jsg

stop creating old drm device nodes


# 1.114 11-Nov-2021 claudio

/dev/switch[0-4] is no longer needed.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.113 12-Feb-2021 jsg

create /dev/ drm nodes with the same names as linux

This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.

/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128

The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.

libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.

ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.116 06-Nov-2022 kn

There is only one pf(4); OK sashan


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.115 07-Jan-2022 jsg

stop creating old drm device nodes


# 1.114 11-Nov-2021 claudio

/dev/switch[0-4] is no longer needed.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.113 12-Feb-2021 jsg

create /dev/ drm nodes with the same names as linux

This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.

/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128

The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.

libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.

ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.115 07-Jan-2022 jsg

stop creating old drm device nodes


# 1.114 11-Nov-2021 claudio

/dev/switch[0-4] is no longer needed.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.113 12-Feb-2021 jsg

create /dev/ drm nodes with the same names as linux

This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.

/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128

The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.

libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.

ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.114 11-Nov-2021 claudio

/dev/switch[0-4] is no longer needed.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.113 12-Feb-2021 jsg

create /dev/ drm nodes with the same names as linux

This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.

/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128

The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.

libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.

ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.113 12-Feb-2021 jsg

create /dev/ drm nodes with the same names as linux

This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.

/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128

The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.

libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.

ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.112 23-Jan-2021 thfr

introduce ujoy(4), a restricted subset of uhid(4) for gamecontrollers.
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@


Revision tags: OPENBSD_6_8_BASE
# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.111 06-Jul-2020 dlg

wire up kstat(4).

it's only accessible to root:wheel.

ok deraadt@


Revision tags: OPENBSD_6_7_BASE
# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.110 18-Apr-2020 ratchov

Create /dev/audio* and /dev/rmidi* with mode 0660 and owned by
root:_sndiod. Stop creating unused /dev/mixer* devices.

suggested by and ok deraadt


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.109 23-Jan-2020 dlg

wire up pppac(4).

with help from claudio@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.108 21-Jan-2020 mpi

Add /dev/dt


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.107 17-Dec-2019 reyk

Fix fido(4) documentation link (no functional change)


# 1.106 17-Dec-2019 reyk

Add fido(4), a HID driver for FIDO/U2F security keys

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


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.105 14-Dec-2019 deraadt

usb devices nodes have been excesively permissive.
repair that.


# 1.104 13-Dec-2019 deraadt

gpr(4) goes away


Revision tags: OPENBSD_6_6_BASE
# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.103 11-Jun-2019 jcs

make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.102 14-Apr-2019 jsg

create drm render node devices


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.101 31-Aug-2018 jcs

Add more uhid devices, 8 total

ok deraadt


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.100 19-Aug-2018 anton

Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@


# 1.99 28-Jul-2018 ratchov

Remove unused /dev/audio and /dev/audioctl symlinks.

ok deraadt


Revision tags: OPENBSD_6_3_BASE
# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@


# 1.98 14-Nov-2017 naddy

Remove /dev/arandom symlink. Nothing in base, xenocara, or ports uses
/dev/arandom any longer. ok deraadt@


# 1.97 02-Nov-2017 mpi

Switch DEC 3000 (TURBOchannel) alpha serial code to MI z8530 code.

ttyB* minor numbers change; be sure to rerun MAKEDEV if you do not
upgrade with bsd.rd

Adapted from NetBSD by miod@


# 1.96 16-Oct-2017 naddy

Make it explicit that there is only one type of random device:
Create only /dev/urandom as device.
Create /dev/random and /dev/arandom as symlinks.
Drop /dev/srandom, which has been unused for a long time.
/dev/arandom will go away at a later point.

Discussed with guenther@, ok deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.95 21-Jul-2017 mikeb

Multiple virtualization layers may be available at the same time
reachable through different pvbus device nodes.

Suggestion and OK deraadt, OK reyk


Revision tags: OPENBSD_6_1_BASE
# 1.94 11-Sep-2016 deraadt

cua/tty nodes only need group dialer, the initial uid does not
matter much -- and "uucp" is just stupid in 2016.
ok rpe


# 1.93 11-Sep-2016 deraadt

extra spaces


# 1.92 08-Sep-2016 ratchov

Remove /dev/sound* as they are not used and they are identical
to /dev/audio*. No port is using them (thanks to sthen@ for checking).

ok sthen@


# 1.91 04-Sep-2016 naddy

Remove the tape block device nodes.
While here, also remove two forgotten descriptions for long obsolete
devices.


# 1.90 02-Sep-2016 goda

Add switch(4) cdev entry

ok deraadt@ yasuoka@ reyk@


Revision tags: OPENBSD_6_0_BASE
# 1.89 26-May-2016 deraadt

whitespace found during review


# 1.88 21-May-2016 deraadt

Default /dev/video node to root.wheel 600 because this should not be
available wide open. there should be some access model either via a
group or fbtab. This will cause a decision to be made.
ok millert


# 1.87 28-Apr-2016 natano

Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node is
unused for now, but I plan to convert all programs in base to use it in
a future diff. /dev/bpf0 is for compatibility with existing binaries
and is to be removed after a transition period.

ok rpe krw, for the installer part
"Let's see it hit the tree." deraadt


# 1.86 25-Apr-2016 tedu

rm systrace


Revision tags: OPENBSD_5_9_BASE
# 1.85 05-Feb-2016 uebayasi

Add ipmi(4) cdev entry on amd64 and i386


# 1.84 27-Jan-2016 reyk

Add /dev/pvbus0 (mode 0640) to MAKEDEV on i386 and amd64.
Needed for the key-value interface that has been added to pvbus(4).

OK mikeb@


# 1.83 21-Dec-2015 sf

add virtio-console driver

This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.

Discussed with uebayasi@, deraadt@


# 1.82 09-Dec-2015 deraadt

vmm node only needs mode 600


# 1.81 10-Nov-2015 sthen

remove stray { }


# 1.80 10-Nov-2015 sthen

add /dev/vmm, req'd by and ok mlarkin@


# 1.79 23-Oct-2015 claudio

MAKEDEV bits for tap(4)
OK dlg@ mpi@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.78 11-Dec-2014 tedu

remove urio


# 1.77 09-Oct-2014 tedu

remove lkm


# 1.76 20-Aug-2014 mikeb

Remove userland bits related to the crypto(4) interface; ok deraadt


Revision tags: OPENBSD_5_6_BASE
# 1.75 15-Jul-2014 miod

Remove ppi (hp300 leftover)


# 1.74 11-Jul-2014 tedu

remove bluetooth bits


Revision tags: OPENBSD_5_5_BASE
# 1.73 21-Nov-2013 kettenis

Change /dev/drm* permissions to 0600.

ok deraadt@, naddy@, ajacoutot@


# 1.72 05-Nov-2013 deraadt

kill iop(4); spotted by jmc


# 1.71 16-Sep-2013 dcoppa

Increase default number of ugen device files: two are too few for
modern standards, with people having usb cameras, music players,
smartcard readers, UPSs, wifi scanners, rocket launchers and so
on...

OK sthen@, djm@


# 1.70 05-Sep-2013 jmc

no bthub(4) page;


# 1.69 20-Aug-2013 ajacoutot

Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.
No regression has been reported since libusb became the prefered
solution to work with USB scanners.

req. by mpi@
ok ian@ mpi@ miod@


Revision tags: OPENBSD_5_4_BASE
# 1.68 06-Jul-2013 naddy

create 12 com(4) device nodes by default; requested by deraadt@


# 1.67 06-Jul-2013 naddy

create more com(4) entries by default since puc(4)s are now guaranteed
to show up at com4 or higher on x86; ok kettenis@ krw@


# 1.66 21-Jun-2013 syl

Make fuse device clonable.

ok tedu@


# 1.65 15-Jun-2013 halex

allow creation of more fuse devices, and create 4 of them by default

ok syl@ todd@


# 1.64 03-Jun-2013 tedu

userland fuse support, but not attaching libfuse yet. ok beck deraadt
from Sylvestre Gallon ccna.syl gmail.com


# 1.63 28-Mar-2013 jmc

vscsi(8) -> vscsi(4);


# 1.62 15-Mar-2013 ratchov

Delete the sequencer(4) driver, since its not used any longer. Diff
mostly from armani.
ok miod, mpi, jsg and help from sthen


Revision tags: OPENBSD_5_3_BASE
# 1.61 30-Jan-2013 yasuoka

Create /dev/pppx by default.


# 1.60 23-Aug-2012 deraadt

get rid of the nnpfs nodes


Revision tags: OPENBSD_5_2_BASE
# 1.59 06-Apr-2012 jsing

Remove raidframe device nodes.


Revision tags: OPENBSD_5_1_BASE
# 1.58 22-Oct-2011 miod

Move the audio* device creation stanzas from MI to MD, and reduce the
number of audio* nodes from 3 to 1 on vax, since none of the audio-capable
vax can receive another audio device as expansion (until we get TURBOchannel
support with DMA on VS4k/90).
ok deraadt@ todd@


# 1.57 06-Oct-2011 deraadt

ccd goes to the attic
discussed with jsing and millert


Revision tags: OPENBSD_5_0_BASE
# 1.56 06-Jul-2011 miod

Remove obsolete drivers descriptions; no change in generated files on all
plotfarms.


# 1.55 26-Jun-2011 tedu

remove mcd


# 1.54 18-Apr-2011 thib

Deprecate vnds in favour of svnds.

In effect, this removes the "old" vndX nodes, and renames
the svndX nodes to vndX.

Old svndX nodes will still continue to work though, for now.

Cleanup accordingly.

ok deraadt@, todd@
comments and ok on the man page bits from jmc@


Revision tags: OPENBSD_4_9_BASE
# 1.53 30-Sep-2010 claudio

Add pppx(4) to MAKEDEV but do not create the device unless requested
explicitly. OK dlg@ & todd@


# 1.52 30-Sep-2010 claudio

Move the vscsi __devitem() so that it is before the _mcdev() line like
for all other definitions. Both dlg@ and todd@ wanted that to be a
seperate commit.


Revision tags: OPENBSD_4_8_BASE
# 1.51 03-Aug-2010 miod

Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@


# 1.50 23-Jul-2010 mglocker

Create video1 by default. Can be useful e.g. on many laptops with
integrated cams where you want to use an external cam. Suggested by Brad.

OK todd@, jakemsr@


# 1.49 21-Jul-2010 nicm

Some ss(4) bits escaped the purge, eliminate them.

ok todd krw


# 1.48 14-Jun-2010 todd

to assist diskmap testing, lets make the character dev a character dev, doh!
ok jsing@


# 1.47 09-Jun-2010 todd

add diskmap entries, not on ramdisks yet
get it in! jsing@


Revision tags: OPENBSD_4_7_BASE
# 1.46 23-Sep-2009 miod

Stricter patterns for numbered wsmouse and wskbd devices, so that
`wsmouse' and `wskbd' without suffixes match the wsmux rule.
Reported by Vadim Zhukov (persgray on gmail)


# 1.45 13-Aug-2009 deraadt

Add nodes for vscsi0; ok dlg


# 1.44 22-Jul-2009 ratchov

add missing /dev/{rmidi,sequencer,music} bits in MAKEDEV for
armish, landisk and zaurus. Also fix corresponding .Xr in MAKEDEV.8
ok miod@, todd@


Revision tags: OPENBSD_4_6_BASE
# 1.43 03-Jun-2009 jj

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@


# 1.42 05-Apr-2009 jmc

video(4) devices use v4l2 api; from J.C. Roberts
ok miod


Revision tags: OPENBSD_4_5_BASE
# 1.41 30-Nov-2008 jakemsr

make 'MAKEDEV all' create device nodes for 3 separate audio devices
instead of just 1.

ok todd@


# 1.40 10-Oct-2008 deraadt

skip making /dev/prandom. as a side effect, /dev/arandom becomes minor 3.
but that is OK because both minor 3 and 4 now do the same thing. eventually,
2 releases from now, everyone will have forgotten about minor 4 and we can
delete the support code for it from sys/dev/rnd.c
various versions of this looked at by millert and todd


Revision tags: OPENBSD_4_4_BASE
# 1.39 14-Jul-2008 miod

/dev/tuner description should point out to bktr(4), spotted by jmc.


# 1.38 12-Jun-2008 todd

make /dev/drm0 to go with oga@'s libdrm commit moments ago
ok oga@


# 1.37 10-Jun-2008 mglocker

Add /dev/video* for amd64.

Help and OK todd@, OK robert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.36 23-Jul-2007 todd

+bthub
ok mk@


# 1.35 28-May-2007 todd

remove wt tape drives. prodded by krw@


# 1.34 18-May-2007 jmc

MASSBUSS -> MASSBUS; ok miod


Revision tags: OPENBSD_4_1_BASE
# 1.33 07-Mar-2007 krw

Forcibly change /dev/pci to a symbolic link if it isn't one.

Feedback from drahn@, millert@, marco@. "then get it in" deraadt@.


# 1.32 16-Feb-2007 deraadt

create "i" partitions for floppies too, in case we need them


# 1.31 15-Dec-2006 kettenis

Create /dev/pci[0-3].

ok miod@, deraadt@


# 1.30 10-Oct-2006 todd

4 usb tty devices by default; ok msf@ marco@


Revision tags: OPENBSD_4_0_BASE
# 1.29 28-Aug-2006 tsi

Extend /dev/tty[C-F]* to /dev/tty[C-J]* on sparc64, and to /dev/tty[C-I]* on
sparc.

ok miod@


# 1.28 11-Jun-2006 mk

Remove wdt char device stuff from here too.

ok todd


# 1.27 16-Apr-2006 todd

remove some rather deceptively unused lines; no change to generated MAKEDEV's


# 1.26 16-Apr-2006 todd

shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV


# 1.25 15-Apr-2006 todd

add 'com' serial port as a common ramdisk device


# 1.24 15-Apr-2006 todd

add forgotten copyright; ok deraadt@


Revision tags: OPENBSD_3_9_BASE
# 1.23 27-Dec-2005 miod

Target for basic wscons devices is `wscons', not `ttyC0'; also fix the
dev/fd comment and point to fd(4).


# 1.22 06-Dec-2005 pedro

Remove fdescfs


# 1.21 06-Oct-2005 otto

Greatly speedup MAKEDEV by using arrays instead of very long strings
that get copied around a lot. Needs sh(1) max array index bump I
committed earlier. ok todd@ deraadt@


Revision tags: OPENBSD_3_8_BASE
# 1.20 01-Aug-2005 deraadt

old ses device goes away


# 1.19 29-Jun-2005 todd

add bio
prompted by deraadt@ and henning@, ok marco@


# 1.18 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.17 29-Mar-2005 miod

Move the apm description out of MAKEDEV.common, so that sparc can declare it
with a specific manpage reference.


Revision tags: OPENBSD_3_7_BASE
# 1.16 01-Mar-2005 otto

Increase the default number of usb dev nodes to 6. Some new machines
(like the Mac mini) have that many usb devs on board.

ok drahn@ dlg@ miod@


# 1.15 28-Jan-2005 danh

use Add() consistently and make sure we use decimal numbers for addition
in the case of ugen devices.

suggestions and ok todd@


# 1.14 14-Jan-2005 miod

Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.

Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.

X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.

Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.


# 1.13 10-Jan-2005 dlg

add calling units (cuaU*) for use by devices supported by ucom


Revision tags: OPENBSD_3_6_BASE
# 1.12 19-Aug-2004 miod

``SCSI unknown devices'' -> ``Unknown SCSI devices'', requested long ago by
jmc@.


# 1.11 17-Aug-2004 miod

Describe the oppr ({ee,open}prom) target, and add it to sparc64 (despite it
being handmade in std).

spotted by jmc@, ok deraadt@


# 1.10 03-Jun-2004 grange

Add gpio device nodes.

ok deraadt@


# 1.9 30-May-2004 grange

Add hotplug device.


# 1.8 29-May-2004 deraadt

usb2 & usb3 more needed on modern machines


# 1.7 11-Apr-2004 millert

Add back a lie about tty* do that MAKEDEV works again. todd@ can fix...


# 1.6 11-Apr-2004 millert

Update for pty changes (62 per letter instead of just 16)


Revision tags: OPENBSD_3_5_BASE
# 1.5 12-Mar-2004 miod

Cause ct to be escaped in nroff output; spotted by jmc.
No regen necessary except for hp300 MAKEDEV.8


# 1.4 12-Mar-2004 deraadt

replace usbs with uall to avoid matching balony


# 1.3 20-Feb-2004 miod

MAKEDEV.8 improvement pack:
- refer to the section 4 manual page for every device target, whenever
possible
- repair a few minor quoting errors
- repair a few sorting errors
- fix a few device descriptions (ideally they would be synched with the
.Nd line of their manpages, but we are not there... yet)
- minor mdoc fixes

Thanks to jmc@ for review and a lot of constructive criticism.


# 1.2 17-Feb-2004 miod

Move conflicting hd(4) definitions to MD files.


# 1.1 16-Feb-2004 miod

Move the real knowledge of MI devices to a specific file, MAKEDEV.common.
While there, allow the comment char and the divert section for md script
fragments to be overriden.
No functional change (yet).

disabused ok deraadt@