xref: /openbsd/etc/etc.sparc64/MAKEDEV.md (revision d415bd75)
1define(MACHINE,sparc64)dnl
2vers(__file__,
3	{-$OpenBSD: MAKEDEV.md,v 1.101 2022/11/09 19:35:24 krw 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(fdesc, 24)
117_DEV(dt, 30)
118_DEV(fuse, 134)
119_DEV(hotplug, 124)
120_DEV(oppr)
121_DEV(pci, 52)
122_DEV(pf, 73)
123_DEV(pppx, 131)
124_DEV(pppac, 138)
125_DEV(rmidi, 68)
126_DEV(rnd, 119)
127_DEV(tun, 111)
128_DEV(tap, 135)
129_DEV(uk, 60)
130_DEV(uperf, 25)
131_DEV(vi, 44)
132_DEV(vscsi, 128)
133_DEV(vldc_hvctl, 132)
134_DEV(vldc_spds, 132)
135_DEV(vldc_ldom, 132)
136_DEV(vdsp, 133)
137_DEV(kstat, 51)
138dnl
139divert(__mddivert)dnl
140dnl
141ramdisk)
142	_recurse std fd0 wd0 wd1 wd2 sd0 sd1 sd2 rd0
143	_recurse st0 cd0 bpf bio diskmap random
144	;;
145
146_std(2, 3, 76, 16)
147	M openprom	c 70 0 600
148	M mdesc		c 70 1 640 kmem
149	M pri		c 70 2 640 kmem
150	M vcons0	c 125 0 600
151	;;
152dnl
153dnl *** sparc64 specific targets
154dnl
155twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
156twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
157twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
158twrget(wscons, wscons, ttyG, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
159twrget(wscons, wscons, ttyH, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
160twrget(wscons, wscons, ttyI, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
161twrget(wscons, wscons, ttyJ, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
162twrget(all, au, audio, 0, 1, 2, 3)dnl
163target(all, ch, 0)dnl
164target(all, vscsi, 0)dnl
165target(all, diskmap)dnl
166twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl
167twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl
168target(all, pty, 0)dnl
169target(all, bio)dnl
170target(all, tun, 0, 1, 2, 3)dnl
171target(all, tap, 0, 1, 2, 3)dnl
172target(all, rd, 0)dnl
173target(all, cd, 0, 1)dnl
174target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
175target(all, vnd, 0, 1, 2, 3)dnl
176target(all, bpp, 0)dnl
177target(all, dri)dnl
178twrget(all, s64_tzs, tty, a, b, c, d)dnl
179twrget(all, s64_czs, cua, a, b, c, d)dnl
180twrget(all, vcc, ttyV, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f)dnl
181twrget(all, vldc_hvctl, hvctl)dnl
182twrget(all, vldc_spds, spds)dnl
183twrget(all, vldc_ldom, ldom, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)dnl
184target(all, vdsp, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23)dnl
185