xref: /openbsd/etc/etc.sparc64/MAKEDEV.md (revision 097a140d)
1define(MACHINE,sparc64)dnl
2vers(__file__,
3	{-$OpenBSD: MAKEDEV.md,v 1.97 2021/02/12 10:26:34 jsg 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
20dnl *** sparc64 specific definitions
21dnl
22__devitem(s64_tzs, tty[a-z]*, Zilog 8530 serial port,zs)dnl
23__devitem(s64_czs, cua[a-z]*, Zilog 8530 serial port,zs)dnl
24_mkdev(s64_tzs, {-tty[a-z]-}, {-u=${i#tty*}
25	case $u in
26	a) n=0 ;;
27	b) n=1 ;;
28	c) n=2 ;;
29	d) n=3 ;;
30	*) echo unknown tty device $i ;;
31	esac
32	M tty$u c major_s64_tzs_c $n 660 dialer root-})dnl
33_mkdev(s64_czs, cua[a-z], {-u=${i#cua*}
34	case $u in
35	a) n=0 ;;
36	b) n=1 ;;
37	c) n=2 ;;
38	d) n=3 ;;
39	*) echo unknown cua device $i ;;
40	esac
41	M cua$u c major_s64_czs_c Add($n, 128) 660 dialer root-})dnl
42__devitem(vcc, ttyV*, Virtual console concentrator, vcctty)dnl
43_mkdev(vcc, ttyV[0-9a-zA-Z], {-U=${i#ttyV*}
44	o=$(alph2d $U)
45	M ttyV$U c major_vcc_c $o 600-})dnl
46dnl
47__devitem(uperf, uperf, Performance counters)dnl
48_mkdev(uperf, uperf, {-M uperf c major_uperf_c 0 664-})dnl
49dnl
50__devitem(vldc_hvctl, hvctl, Hypervisor control channel, vldcp)dnl
51_mkdev(vldc_hvctl, hvctl, {-M hvctl c major_vldc_hvctl_c 0 600-})dnl
52__devitem(vldc_spds, spds, Service processor domain services channel, vldcp)dnl
53_mkdev(vldc_spds, spds, {-M spds c major_vldc_spds_c 1 600-})dnl
54__devitem(vldc_ldom, ldom*, Logical domain services channels, vldcp)dnl
55_mkdev(vldc_ldom, ldom*, {-M ldom$U c major_vldc_ldom_c Add($U,32) 600-})dnl
56dnl
57__devitem(vdsp, vdsp*, Virtual disk server ports)dnl
58_mkdev(vdsp, vdsp*, {-M vdsp$U c major_vdsp_c $U 600-})dnl
59dnl
60_TITLE(make)
61_DEV(all)
62_DEV(ramdisk)
63_DEV(std)
64_DEV(local)
65_TITLE(dis)
66_DEV(cd, 58, 18)
67_DEV(flo, 54, 16)
68_DEV(rd, 61, 5)
69_DEV(sd, 17, 7)
70_DEV(vnd, 110, 8)
71_DEV(wd, 26, 12)
72_TITLE(tap)
73_DEV(ch, 19)
74_DEV(st, 18)
75_TITLE(term)
76_DEV(s64_czs, 12)
77_DEV(mag, 71)
78_DEV(spif, 108)
79_DEV(com, 36)
80_DEV(s64_tzs, 12)
81_DEV(tth, 77)
82_DEV(vcc, 127)
83_TITLE(pty)
84_DEV(ptm, 123)
85_DEV(pty, 21)
86_DEV(tty, 20)
87_TITLE(cons)
88_DEV(pcons, 122)
89_DEV(wsdisp, 78)
90_DEV(wscons)
91_DEV(wskbd, 79)
92_DEV(wsmux, 81)
93_TITLE(point)
94_DEV(wsmouse, 80)
95_TITLE(prn)
96_DEV(bpp, 107)
97_DEV(bppsp, 109)
98_DEV(bppmag, 72)
99_DEV(lpa)
100_DEV(lpt, 37)
101_TITLE(usb)
102_DEV(ttyU, 95)
103_DEV(uall)
104_DEV(ugen, 92)
105_DEV(uhid, 91)
106_DEV(fido, 137)
107_DEV(ujoy, 139)
108_DEV(ulpt, 93)
109_DEV(usb, 90)
110_TITLE(spec)
111_DEV(au, 69)
112_DEV(bio, 120)
113_DEV(bpf, 105)
114_DEV(diskmap, 130)
115_DEV(dri, 87)
116_DEV(drm, 87)
117_DEV(fdesc, 24)
118_DEV(dt, 30)
119_DEV(fuse, 134)
120_DEV(hotplug, 124)
121_DEV(oppr)
122_DEV(pci, 52)
123_DEV(pf, 73)
124_DEV(pppx, 131)
125_DEV(pppac, 138)
126_DEV(rmidi, 68)
127_DEV(rnd, 119)
128_DEV(tun, 111)
129_DEV(tap, 135)
130_DEV(uk, 60)
131_DEV(uperf, 25)
132_DEV(vi, 44)
133_DEV(vscsi, 128)
134_DEV(vldc_hvctl, 132)
135_DEV(vldc_spds, 132)
136_DEV(vldc_ldom, 132)
137_DEV(vdsp, 133)
138_DEV(switch, 136)
139_DEV(kstat, 51)
140dnl
141divert(__mddivert)dnl
142dnl
143ramdisk)
144	_recurse std fd0 wd0 wd1 wd2 sd0 sd1 sd2 rd0
145	_recurse st0 cd0 bpf bio diskmap random
146	;;
147
148_std(2, 3, 76, 16)
149	M openprom	c 70 0 600
150	M mdesc		c 70 1 640 kmem
151	M pri		c 70 2 640 kmem
152	M vcons0	c 125 0 600
153	;;
154dnl
155dnl *** sparc64 specific targets
156dnl
157twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
158twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
159twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
160twrget(wscons, wscons, ttyG, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
161twrget(wscons, wscons, ttyH, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
162twrget(wscons, wscons, ttyI, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
163twrget(wscons, wscons, ttyJ, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
164twrget(all, au, audio, 0, 1, 2, 3)dnl
165target(all, ch, 0)dnl
166target(all, vscsi, 0)dnl
167target(all, diskmap)dnl
168twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl
169twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl
170target(all, pty, 0)dnl
171target(all, bio)dnl
172target(all, tun, 0, 1, 2, 3)dnl
173target(all, tap, 0, 1, 2, 3)dnl
174target(all, xy, 0, 1, 2, 3)dnl
175target(all, rd, 0)dnl
176target(all, cd, 0, 1)dnl
177target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
178target(all, vnd, 0, 1, 2, 3)dnl
179target(all, bpp, 0)dnl
180target(all, dri)dnl
181target(all, drm, 0, 1, 2, 3)dnl
182target(all, switch, 0, 1, 2, 3)dnl
183twrget(all, s64_tzs, tty, a, b, c, d)dnl
184twrget(all, s64_czs, cua, a, b, c, d)dnl
185twrget(all, vcc, ttyV, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f)dnl
186twrget(all, vldc_hvctl, hvctl)dnl
187twrget(all, vldc_spds, spds)dnl
188twrget(all, vldc_ldom, ldom, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)dnl
189target(all, vdsp, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)dnl
190