1/* $NetBSD: majors+minors,v 1.1 2001/10/18 00:05:01 reinoud Exp $ */ 2 3/* 4 * Copyright (c) 19941198 Mark Brinicombe. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 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. 22 * 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 33 * SUCH DAMAGE. 34 * 35 * list of all allocated major numbers 36 * 37 * Created : 17/09/94 38 */ 39 40List of allocated and reserved major and minor numbers 41 42The block and character major numbers are ALWAYS allocated together to the 43same device driver even if the driver does not require both. 44 45 0 B - reserved 46 0 C - memory device 47 minor = 0 - /dev/mem 48 minor = 1 - /dev/kmem 49 minor = 2 - /dev/null 50 minor = 3 - /dev/zero 51 1 B - swap device 52 1 C - psuedo swap device 53 minor = 0 - /dev/drum 54 2 B - reserved 55 2 C - console device 56 minor = 0 - /dev/console 57 3 B - reserved 58 3 C - controlling terminal 59 minor = 0 - /dev/tty 60 4 B - reserved 61 4 C - virtual console 62 /dev/ttyv{unit} 63 unit = minor 64 5 B - reserved 65 5 C - kernel log device 66 minor = 0 - /dev/klog 67 6 B - reserved 68 6 C - psuedo tty master 69 /dev/pty{class}{unit} 70 unit = minor % 16 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 76 7 B - reserved 77 7 C - psuedo tty slave 78 /dev/tty{class}{unit} 79 unit = minor % 16 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 85 8 B - reserved 86 8 C - parallel printer 87 /dev/lp{class}{unit} 88 unit = minor & 0x1f 89 minor & 0x80 = 0x00 - class = t - interrupt driver 90 minor & 0x80 = 0x80 - class = a - polling driver 91 e.g. 92 0 - /dev/lpt0 93 128 - /dev/lpa0 94 9 B - reserved 95 9 C - quadrature mouse 96 minor = 0 - /dev/quadmouse 9710 B - reserved 9810 C - beep device 99 minor = 0 - /dev/beep 10011 B - reserved 10111 C - keyboard device 102 minor = 0 - /dev/kbd 10312 B - reserved 10412 C - serial port 105 /dev/tty0{unit} 106 unit = minor 10713 B - reserver 10813 C - reserved 10914 B - reserved 11014 C - reserved 11115 B - reserved 11215 C - reserved 11316 B - ST506/ESDI/IDE disk 114 /dev/wd{unit}{partition} 115 partition = minor % 8 116 unit = minor / 8 11716 C - ST506/ESDI/IDE disk 118 /dev/rwd{unit}{partition} 119 partition = minor % 8 120 unit = minor / 8 12117 B - floppy disk 122 /dev/fd{unit}{partition} 123 partition = minor % 8 124 unit = minor / 8 12517 C - floppy disk 126 /dev/rfd{unit}{partition} 127 partition = minor % 8 128 unit = minor / 8 12918 B - ram disk 130 /dev/rd{unit}{partition} 131 partition = minor % 8 132 unit = minor / 8 13318 C - ram disk 134 /dev/rrd{unit}{partition} 135 partition = minor % 8 136 unit = minor / 8 13719 B - vnode disk driver 138 /dev/vnd{unit}{partition} 139 partition = minor % 8 140 unit = minor / 8 14119 C - vnode disk driver 142 /dev/rvnd{unit}{partition} 143 partition = minor % 8 144 unit = minor / 8 14520 B - reserved (ATAPI CDROM) 146 /dev/acd{unit}{partition} 147 partition = minor % 8 148 unit = minor / 8 14920 C - reserved (ATAPI CDROM) 150 /dev/racd{unit}{partition} 151 partition = minor % 8 152 unit = minor / 8 15321 B - concatenated disk driver 154 /dev/ccd{unit}{partition} 155 partition = minor % 8 156 unit = minor / 8 15721 C - concatenated disk driver 158 /dev/rccd{unit}{partition} 159 partition = minor % 8 160 unit = minor / 8 16122 B - reserved 16222 C - reserved 16323 B - reserved 16423 C - reserved 16524 B - SCSI disk 166 /dev/sd{unit}{partition} 167 partition = minor % 8 168 unit = minor / 8 16924 C - SCSI disk 170 /dev/rsd{unit}{partition} 171 partition = minor % 8 172 unit = minor / 8 17325 B - SCSI tape 17425 C - SCSI tape 17526 B - SCSI cdrom 176 /dev/cd{unit}{partition} 177 partition = minor % 8 178 unit = minor / 8 17926 C - SCSI cdrom 180 /dev/rcd{unit}{partition} 181 partition = minor % 8 182 unit = minor / 8 18327 B - reserved 18427 C - SCSI autochanger 185 /dev/ch{unit} 186 unit = minor 18728 B - reserved 18828 C - SCSI unknown device 189 /dev/uk{unit} 190 unit = minor 19129 B - reserved 19229 C - SCSI scanner device 193 /dev/ss{unit} 194 unit = minor 19530 B - reserved 19630 C - reserved 19731 B - reserved 19831 C - reserved 19932 B - reserved 20032 C - Berkeley packet filter 201 /dev/bpf{unit} 202 unit = minor 203 minor = 0 - /dev/bpf0 204 minor = 1 - /dev/bpf1 205 minor = 2 - /dev/bpf2 206 minor = 3 - /dev/bpf3 20733 B - reserved 20833 C - network tunnel 209 /dev/tun{unit} 210 unit = minor 211 minor = 0 - /dev/tun0 212 minor = 1 - /dev/tun1 213 minor = 2 - /dev/tun2 21434 B - reserved 21534 C - file descriptor pseudo-device 216 minor = 0 - /dev/stdin 217 minor = 1 - /dev/stdout 218 minor = 2 - /dev/stderr 21935 B - reserved 22035 C - loadable module driver 221 minor = 0 - /dev/lkm 22236 B - reserved 22336 C - generic audio device 22437 B - reserved 22537 C - vidcconsole device 226 minor = 0 - /dev/vidcconsole 22738 B - reserved 22838 C - cpu/hydra 229 minor = 0 - /dev/cpu0 23039 B - reserved 23139 C - reserved 23240 B - reserved 23340 C - PS2 mouse 234 minor = 0 - /dev/pms 23541 B - reserved 23641 C - reserved 23742 B - reserved 23842 C - IIC device 23943 B - reserved 24043 C - RTC device 24144 B - reserved 24244 C - reserved (generic video) 243 (/dev/gfx{unit}) 244 (unit = minor) 24545 B - reserved 24645 C - reserved (virtual console) 247 (/dev/ttyg{unit}) 248 (unit = minor) 24946 B - reserved 25046 C - ip-filter 25147 - reserved 25248 B - reserved 25348 C - S/PDIF 25449 B - reserved 25549 C - ofrom 25650 B - reserved 25750 C - smart card (/dev/scr) 25851 B - reserved 25951 C - reserved 26052 B - reserved 26152 C - random device 26253 B - reserved 26353 C - FIQ profiler 26454 B - reserved 26554 C - Footbridge diag serial 266 minor = 0 - /dev/fcom 26755 B - reserved 26855 C - reserved for bypass device 26956 B - reserved 27056 C - ISA jostick 27157 B - reserved 27257 C - MIDI I/O 27358 B - reserved 27458 C - Sequencer I/O 27559 B - reserved 27659 C - reserved for CODA 27760 B - reserved 27860 C - wsdisplay device 27961 B - reserved 28061 C - wskbd device 28162 B - reserved 28262 C - wsmouse device 28363 B - reserved 28463 C - reserved 28564 B - reserved 28664 C - USB controller 28765 B - reserved 28865 C - USB HID 28966 B - reserved 29066 C - USB printer 29167 B - reserved 29267 C - reserved 29368 B - reserved 29468 C - reserved 29569 B - reserved 29669 C - reserved 297 29870+ free for allocation 299