1 /* $NetBSD: majors+minors,v 1.12 2001/02/20 22:58:34 reinoud Exp $ */
4 * Copyright (c) 19941198 Mark Brinicombe.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed by Mark Brinicombe
18 * for the NetBSD Project.
19 * 4. The name of the company nor the name of the author may be used to
20 * endorse or promote products derived from this software without specific
21 * prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
24 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * list of all allocated major numbers
40 List of allocated and reserved major and minor numbers
42 The block and character major numbers are ALWAYS allocated together to the
43 same device driver even if the driver does not require both.
52 1 C - psuedo swap device
56 minor = 0 - /dev/console
58 3 C - controlling terminal
65 5 C - kernel log device
68 6 C - psuedo tty master
71 minor / 16 = 0 - class = p
72 minor / 16 = 1 - class = q
73 minor / 16 = 2 - class = r
74 minor / 16 = 3 - class = s
75 minor / 16 = 4 - class = t
77 7 C - psuedo tty slave
80 minor / 16 = 0 - class = p
81 minor / 16 = 1 - class = q
82 minor / 16 = 2 - class = r
83 minor / 16 = 3 - class = s
84 minor / 16 = 4 - class = t
86 8 C - parallel printer
89 minor & 0x80 = 0x00 - class = t - interrupt driver
90 minor & 0x80 = 0x80 - class = a - polling driver
95 9 C - quadrature mouse
96 minor = 0 - /dev/quadmouse
101 11 C - keyboard device
113 16 B - ST506/ESDI/IDE disk
114 /dev/wd{unit}{partition}
115 partition = minor % 8
117 16 C - ST506/ESDI/IDE disk
118 /dev/rwd{unit}{partition}
119 partition = minor % 8
122 /dev/fd{unit}{partition}
123 partition = minor % 8
126 /dev/rfd{unit}{partition}
127 partition = minor % 8
130 /dev/rd{unit}{partition}
131 partition = minor % 8
134 /dev/rrd{unit}{partition}
135 partition = minor % 8
137 19 B - vnode disk driver
138 /dev/vnd{unit}{partition}
139 partition = minor % 8
141 19 C - vnode disk driver
142 /dev/rvnd{unit}{partition}
143 partition = minor % 8
145 20 B - reserved (ATAPI CDROM)
146 /dev/acd{unit}{partition}
147 partition = minor % 8
149 20 C - reserved (ATAPI CDROM)
150 /dev/racd{unit}{partition}
151 partition = minor % 8
153 21 B - concatenated disk driver
154 /dev/ccd{unit}{partition}
155 partition = minor % 8
157 21 C - concatenated disk driver
158 /dev/rccd{unit}{partition}
159 partition = minor % 8
166 /dev/sd{unit}{partition}
167 partition = minor % 8
170 /dev/rsd{unit}{partition}
171 partition = minor % 8
176 /dev/cd{unit}{partition}
177 partition = minor % 8
180 /dev/rcd{unit}{partition}
181 partition = minor % 8
184 27 C - SCSI autochanger
188 28 C - SCSI unknown device
192 29 C - SCSI scanner device
200 32 C - Berkeley packet filter
203 minor = 0 - /dev/bpf0
204 minor = 1 - /dev/bpf1
205 minor = 2 - /dev/bpf2
206 minor = 3 - /dev/bpf3
208 33 C - network tunnel
211 minor = 0 - /dev/tun0
212 minor = 1 - /dev/tun1
213 minor = 2 - /dev/tun2
215 34 C - file descriptor pseudo-device
216 minor = 0 - /dev/stdin
217 minor = 1 - /dev/stdout
218 minor = 2 - /dev/stderr
220 35 C - loadable module driver
223 36 C - generic audio device
225 37 C - vidcconsole device
226 minor = 0 - /dev/vidcconsole
229 minor = 0 - /dev/cpu0
242 44 C - reserved (generic video)
246 45 C - reserved (virtual console)
257 50 C - smart card (/dev/scr)
265 54 C - Footbridge diag serial
266 minor = 0 - /dev/fcom
268 55 C - reserved for bypass device
276 59 C - reserved for CODA
278 60 C - wsdisplay device
282 62 C - wsmouse device
286 64 C - USB controller
298 70+ free for allocation