xref: /openbsd/share/man/man8/man8.riscv64/MAKEDEV.8 (revision 3bef86f7)
1.\" $OpenBSD: MAKEDEV.8,v 1.8 2023/01/28 11:47:27 deraadt Exp $
2.\"
3.\" THIS FILE AUTOMATICALLY GENERATED.  DO NOT EDIT.
4.\" generated from:
5.\"
6.\"	OpenBSD: etc.riscv64/MAKEDEV.md,v 1.5 2023/01/24 13:30:44 jca Exp
7.\"	OpenBSD: MAKEDEV.common,v 1.120 2023/01/28 11:04:47 phessler Exp
8.\"	OpenBSD: MAKEDEV.man,v 1.9 2017/06/06 08:11:23 tb Exp
9.\"	OpenBSD: MAKEDEV.mansub,v 1.2 2004/02/20 19:13:01 miod Exp
10.\"
11.\" Copyright (c) 2004, Miodrag Vallat
12.\" Copyright (c) 2001-2004 Todd T. Fries <todd@OpenBSD.org>
13.\"
14.\" Permission to use, copy, modify, and distribute this software for any
15.\" purpose with or without fee is hereby granted, provided that the above
16.\" copyright notice and this permission notice appear in all copies.
17.\"
18.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
19.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
20.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
21.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
23.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
24.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25.\"
26.Dd $Mdocdate: January 28 2023 $
27.Dt MAKEDEV 8 riscv64
28.Os
29.Sh NAME
30.Nm MAKEDEV
31.Nd create system and device special files
32.Sh SYNOPSIS
33.Nm MAKEDEV
34.Op Ar name ...
35.Sh DESCRIPTION
36The shell script
37.Nm ,
38found in the
39.Pa /dev
40directory, is used to create various special files.
41See
42.Xr intro 4
43for a more complete discussion of special files.
44.Pp
45.Nm
46takes any number of device names as arguments, where the names are
47the common abbreviation for the device or group of devices.
48Files are created in the current working directory.
49.Pp
50Where a device name is followed by a star
51.Sq * ,
52the star must be replaced by a unit number.
53If units are expected for a device but not provided,
54.Nm
55will supply the standard numbers in most cases.
56.Pp
57The riscv64 supports the following devices:
58.Pp
59.Sy Special device names
60.Bl -tag -width tenletters -compact
61.It Ar all
62Creates special files for all devices on riscv64.
63.It Ar ramdisk
64Ramdisk kernel devices.
65.It Ar std
66Creates the
67.Sq standard
68devices (console, klog, kmem, ksyms, mem, null,
69stderr, stdin, stdout, tty, zero)
70which are absolutely necessary for the system to function properly.
71.It Ar local
72Creates configuration-specific devices, by invoking the shell file
73.Pa MAKEDEV.local .
74.El
75.Pp
76.Sy Disks
77.Bl -tag -width tenletters -compact
78.It Ar cd*
79ATAPI and SCSI CD-ROM drives, see
80.Xr cd 4 .
81.It Ar rd*
82.Dq rd
83pseudo-disks, see
84.Xr rd 4 .
85.It Ar sd*
86SCSI disks, including flopticals, see
87.Xr sd 4 .
88.It Ar vnd*
89.Dq file
90pseudo-disk devices, see
91.Xr vnd 4 .
92.It Ar wd*
93.Dq winchester
94disk drives (ST506, IDE, ESDI, RLL, ...), see
95.Xr wd 4 .
96.El
97.Pp
98.Sy Tapes
99.Bl -tag -width tenletters -compact
100.It Ar ch*
101SCSI media changers, see
102.Xr ch 4 .
103.El
104.Pp
105.Sy Terminal ports
106.Bl -tag -width tenletters -compact
107.It Ar tty[0-7][0-9a-f]
108NS16x50 serial ports, see
109.Xr com 4 .
110.El
111.Pp
112.Sy Pseudo terminals
113.Bl -tag -width tenletters -compact
114.It Ar ptm
115pty master device, see
116.Xr ptm 4 .
117.It Ar pty*
118Set of 62 master pseudo terminals, see
119.Xr pty 4 .
120.It Ar tty*
121Set of 62 slave pseudo terminals, see
122.Xr tty 4 .
123.El
124.Pp
125.Sy Console ports
126.Bl -tag -width tenletters -compact
127.It Ar ttyC-J*
128wscons display devices, see
129.Xr wsdisplay 4 .
130.It Ar wscons
131Minimal wscons devices, see
132.Xr wscons 4 .
133.It Ar wskbd*
134wscons keyboards, see
135.Xr wskbd 4 .
136.It Ar wsmux
137wscons keyboard/mouse mux devices, see
138.Xr wsmux 4 .
139.El
140.Pp
141.Sy Pointing devices
142.Bl -tag -width tenletters -compact
143.It Ar wsmouse*
144wscons mice, see
145.Xr wsmouse 4 .
146.El
147.Pp
148.Sy Printers
149.Bl -tag -width tenletters -compact
150.El
151.Pp
152.Sy USB devices
153.Bl -tag -width tenletters -compact
154.It Ar ttyU*
155USB serial ports, see
156.Xr ucom 4 .
157.It Ar uall
158All USB devices, see
159.Xr usb 4 .
160.It Ar ugen*
161Generic USB devices, see
162.Xr ugen 4 .
163.It Ar uhid*
164Generic HID devices, see
165.Xr uhid 4 .
166.It Ar fido
167fido/* nodes, see
168.Xr fido 4 .
169.It Ar ujoy
170ujoy/* nodes, see
171.Xr ujoy 4 .
172.It Ar ulpt*
173Printer devices, see
174.Xr ulpt 4 .
175.It Ar usb*
176Bus control devices used by usbd for attach/detach, see
177.Xr usb 4 .
178.El
179.Pp
180.Sy Special purpose devices
181.Bl -tag -width tenletters -compact
182.It Ar apm
183Power Management Interface, see
184.Xr apm 4 .
185.It Ar audio*
186Audio devices, see
187.Xr audio 4 .
188.It Ar bio
189ioctl tunnel pseudo-device, see
190.Xr bio 4 .
191.It Ar bktr*
192Video frame grabbers, see
193.Xr bktr 4 .
194.It Ar bpf
195Berkeley Packet Filter, see
196.Xr bpf 4 .
197.It Ar dt
198Dynamic Tracer, see
199.Xr dt 4 .
200.It Ar diskmap
201Disk mapper, see
202.Xr diskmap 4 .
203.It Ar dri
204Direct Rendering Infrastructure, see
205.Xr drm 4 .
206.It Ar fd
207fd/* nodes, see
208.Xr fd 4 .
209.It Ar fuse
210Userland Filesystem, see
211.Xr fuse 4 .
212.It Ar gpio*
213General Purpose Input/Output, see
214.Xr gpio 4 .
215.It Ar hotplug
216devices hot plugging, see
217.Xr hotplug 4 .
218.It Ar ipmi*
219IPMI BMC access, see
220.Xr ipmi 4 .
221.It Ar pci*
222PCI bus devices, see
223.Xr pci 4 .
224.It Ar pf
225Packet Filter, see
226.Xr pf 4 .
227.It Ar pppx*
228PPP Multiplexer, see
229.Xr pppx 4 .
230.It Ar pppac*
231PPP Access Concentrator, see
232.Xr pppac 4 .
233.It Ar radio*
234FM tuner devices, see
235.Xr radio 4 .
236.It Ar *random
237In-kernel random data source, see
238.Xr random 4 .
239.It Ar rmidi*
240Raw MIDI devices, see
241.Xr midi 4 .
242.It Ar tun*
243Network tunnel driver, see
244.Xr tun 4 .
245.It Ar tap*
246Ethernet tunnel driver, see
247.Xr tap 4 .
248.It Ar uk*
249Unknown SCSI devices, see
250.Xr uk 4 .
251.It Ar video*
252Video V4L2 devices, see
253.Xr video 4 .
254.It Ar vscsi*
255Virtual SCSI controller, see
256.Xr vscsi 4 .
257.It Ar kstat
258Kernel Statistics, see
259.Xr kstat 4 .
260.El
261.Sh FILES
262.Bl -tag -width /dev -compact
263.It Pa /dev
264The special file directory.
265.El
266.Sh SEE ALSO
267.Xr intro 4 ,
268.Xr config 8 ,
269.Xr mknod 8
270