xref: /openbsd/etc/etc.alpha/MAKEDEV.md (revision 274d7c50)
1define(MACHINE,alpha)dnl
2vers(__file__,
3	{-$OpenBSD: MAKEDEV.md,v 1.71 2017/11/02 14:04:24 mpi Exp $-},
4etc.MACHINE)dnl
5dnl
6dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
7dnl
8dnl Permission to use, copy, modify, and distribute this software for any
9dnl purpose with or without fee is hereby granted, provided that the above
10dnl copyright notice and this permission notice appear in all copies.
11dnl
12dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15dnl ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19dnl
20_TITLE(make)
21_DEV(all)
22_DEV(ramdisk)
23_DEV(std)
24_DEV(local)
25_TITLE(dis)
26_DEV(cd, 13, 3)
27_DEV(flo, 37, 4)
28_DEV(rd, 28, 6)
29_DEV(sd, 8, 8)
30_DEV(vnd, 9, 9)
31_DEV(wd, 36, 0)
32_TITLE(tap)
33_DEV(ch, 14)
34_DEV(st, 12)
35_TITLE(term)
36_DEV(com, 26)
37_DEV(ttyc, 38)
38_DEV(ttyB, 15)
39_TITLE(pty)
40_DEV(ptm, 55)
41_DEV(pty, 5)
42_DEV(tty, 4)
43_TITLE(cons)
44_DEV(wsdisp, 25)
45_DEV(wscons)
46_DEV(wskbd, 29)
47_DEV(wsmux, 60)
48_TITLE(point)
49_DEV(wsmouse, 30)
50_TITLE(prn)
51_DEV(lpa)
52_DEV(lpt, 31)
53_TITLE(usb)
54_DEV(ttyU, 49)
55_DEV(uall)
56_DEV(ugen, 48)
57_DEV(uhid, 46)
58_DEV(ulpt, 47)
59_DEV(usb, 45)
60_TITLE(spec)
61_DEV(au, 24)
62_DEV(bio, 53)
63_DEV(bktr, 58)
64_DEV(bpf, 11)
65_DEV(diskmap, 63)
66_DEV(fdesc, 10)
67_DEV(fuse, 67)
68_DEV(hotplug, 56)
69_DEV(pci, 52)
70_DEV(pf, 35)
71_DEV(pppx, 64)
72_DEV(radio, 59)
73_DEV(rnd, 34)
74_DEV(rmidi, 41)
75_DEV(speak, 40)
76_DEV(tun, 7)
77_DEV(tap, 68)
78_DEV(tuner, 58)
79_DEV(uk, 33)
80_DEV(vi, 44)
81_DEV(vscsi, 61)
82_DEV(switch, 69)
83dnl
84divert(__mddivert)dnl
85dnl
86ramdisk)
87	_recurse std fd0 wd0 wd1 wd2 sd0 sd1 sd2 bpf
88	_recurse st0 cd0 ttyC0 rd0 bio diskmap random
89	;;
90
91_std(1, 2, 39, 6)
92	M xf86		c 2 4 600
93	;;
94
95ttyB*|ttyc*)
96	U=${i##tty?}
97	case $i in
98	ttyB*)	type=B major=15 minor=$U;;
99	ttyc*)	type=c major=38 minor=$U;;
100	esac
101	M tty$type$U c $major $minor 660 dialer root
102	M cua$type$U c $major Add($minor, 128) 660 dialer root
103	;;
104dnl
105dnl *** alpha specific targets
106dnl
107twrget(all, au, audio, 0, 1, 2)dnl
108target(all, bio)dnl
109target(all, ch, 0)dnl
110target(all, vscsi, 0)dnl
111target(all, diskmap)dnl
112twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl
113twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl
114target(all, pty, 0)dnl
115target(all, tun, 0, 1, 2, 3)dnl
116target(all, tap, 0, 1, 2, 3)dnl
117target(all, ttyB, 0, 1)dnl
118target(all, rd, 0)dnl
119target(all, cd, 0, 1)dnl
120target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
121target(all, vnd, 0, 1, 2, 3)dnl
122target(all, switch, 0, 1, 2, 3)dnl
123target(ramd, ttyB, 0, 1)dnl
124