xref: /openbsd/etc/etc.sparc64/MAKEDEV.md (revision db3296cf)
1vers(__file__,
2	{-$OpenBSD: MAKEDEV.md,v 1.27 2003/06/18 18:08:59 todd Exp $-},
3etc.MACHINE)dnl
4dnl
5dnl Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org>
6dnl
7dnl Permission to use, copy, modify, and distribute this software for any
8dnl purpose with or without fee is hereby granted, provided that the above
9dnl copyright notice and this permission notice appear in all copies.
10dnl
11dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14dnl ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18dnl
19dnl *** sparc64 specific definitions
20dnl
21__devitem(s64_tzs, tty[a-z]*, Zilog 8530 Serial Port)dnl
22__devitem(s64_czs, cua[a-z]*, Zilog 8530 Serial Port)dnl
23_mkdev(s64_tzs, {-tty[a-z]-}, {-u=${i#tty*}
24	case $u in
25	a) n=0 ;;
26	b) n=1 ;;
27	c) n=2 ;;
28	d) n=3 ;;
29	*) echo unknown tty device $i ;;
30	esac
31	M tty$u c major_s64_tzs_c $n 660 dialer uucp-})dnl
32_mkdev(s64_czs, cua[a-z], {-u=${i#cua*}
33	case $u in
34	a) n=0 ;;
35	b) n=1 ;;
36	c) n=2 ;;
37	d) n=3 ;;
38	*) echo unknown cua device $i ;;
39	esac
40	M cua$u c major_s64_czs_c Add($n, 128) 660 dialer uucp-})dnl
41dnl
42_TITLE(make)
43__devitem(uperf, uperf, performance counters)dnl
44_mkdev(uperf, uperf, {-M uperf c major_uperf_c 0 664-})dnl
45_DEV(all)
46_DEV(ramdisk)
47_DEV(std)
48_DEV(loc)
49_TITLE(tap)
50dnl _DEV(wt, 10, 3)
51_DEV(st, 18, 11)
52_DEV(ch, 19)
53_TITLE(dis)
54_DEV(wd, 26, 12)
55_DEV(flo, 54, 16)
56_DEV(sd, 17, 7)
57_DEV(cd, 58, 18)
58_DEV(vnd, 110, 8)
59_DEV(rd, 61, 5)
60_DEV(ccd, 23, 9)
61_DEV(raid, 121, 25)
62_TITLE(cons)
63_DEV(wscons)
64_DEV(wsdisp, 78)
65_DEV(wskbd, 79)
66_DEV(wsmux, 81)
67_DEV(pcons, 122)
68_TITLE(point)
69_DEV(mouse, 13)
70_DEV(wsmouse, 80)
71_TITLE(term)
72_DEV(s64_tzs, 12)
73_DEV(s64_czs, 12)
74_DEV(com, 36)
75_DEV(tth, 77)
76_TITLE(pty)
77_DEV(tty, 20)
78_DEV(pty, 21)
79_TITLE(prn)
80_DEV(lpt, 37)
81_DEV(lpa)
82_TITLE(usb)
83_DEV(usb, 90)
84_DEV(uhid, 91)
85_DEV(ugen, 92)
86_DEV(ulpt, 93)
87_DEV(urio, 94)
88_DEV(utty, 95)
89_DEV(uscan, 96)
90_TITLE(spec)
91_DEV({-usbs-})
92_DEV(ses, 4)
93_DEV(fdesc, 24)
94_DEV(xfs, 51)
95_DEV(ss, 59)
96_DEV(uk, 60)
97_DEV(au, 69)
98_DEV(pf, 73)
99_DEV(bpf, 105)
100_DEV(tun, 111)
101_DEV(lkm, 112)
102_DEV(rnd, 119)
103_DEV(mag, 71)
104_DEV(bppmag, 72)
105_DEV(bpp, 107)
106_DEV(spif, 108)
107_DEV(bppsp, 109)
108_DEV(cry, 75)
109_DEV(pci, 52)
110_DEV(uperf, 25)
111_DEV(systrace, 50)
112dnl
113divert(7)dnl
114dnl
115ramdisk)
116	_recurse std fd0 wd0 wd1 wd2 sd0 sd1 sd2 rd0
117	_recurse st0 cd0 bpf0 random
118	;;
119
120_std(2, 3, 76, 7, 16)
121	M mouse		c 13 0 666
122	M fb		c 22 0 666
123	M openprom	c 70 0 640 kmem
124	;;
125
126mouse*)
127	name=${i##mouse-}
128	if [ ! -c $name ]; then
129		$0 $name	# make the appropriate device
130	fi
131	RMlist="$RMlist mouse"
132	MKlist="$MKlist;ln -s $name mouse"
133	;;
134dnl
135dnl *** sparc64 specific targets
136dnl
137twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
138twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
139twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
140target(all, ccd, 0, 1, 2, 3)dnl
141target(all, ses, 0)dnl
142target(all, ch, 0)dnl
143target(all, ss, 0, 1)dnl
144target(all, xfs, 0)dnl
145twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl
146twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl
147target(all, pty, 0, 1, 2)dnl
148target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
149target(all, tun, 0, 1, 2, 3)dnl
150target(all, xy, 0, 1, 2, 3)dnl
151target(all, rd, 0)dnl
152target(all, cd, 0, 1)dnl
153target(all, sd, 0, 1, 2, 3, 4)dnl
154target(all, vnd, 0, 1, 2, 3)dnl
155target(all, bpp, 0)dnl
156target(ramd, fd, 0)dnl
157target(ramd, rd, 0)dnl
158target(ramd, sd, 0, 1, 2, 3)dnl
159target(ramd, wd, 0, 1, 2, 3)dnl
160target(ramd, cd, 0, 1)dnl
161target(ramd, st, 0, 1)dnl
162target(ramd, bpf, 0)dnl
163twrget(all, s64_tzs, tty, a, b, c, d)dnl
164twrget(all, s64_czs, cua, a, b, c, d)dnl
165