1vers(__file__,
2	{-$MirOS: src/etc/etc.sparc/MAKEDEV.md,v 1.7 2006/06/17 16:28:22 tg Exp $-})dnl
3vers(__file__,
4	{-$OpenBSD: MAKEDEV.md,v 1.28 2005/07/17 12:23:14 miod Exp $-},
5etc.MACHINE)dnl
6dnl
7dnl Copyright (c) 2001-2004 Todd T. Fries <todd@OpenBSD.org>
8dnl
9dnl Permission to use, copy, modify, and distribute this software for any
10dnl purpose with or without fee is hereby granted, provided that the above
11dnl copyright notice and this permission notice appear in all copies.
12dnl
13dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
14dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
16dnl ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
19dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20dnl
21dnl
22dnl
23dnl *** some sparc-specific devices
24dnl
25__devitem(s64_tzs, tty[a-z]*, Zilog 8530 serial ports,zs)dnl
26__devitem(s64_czs, cua[a-z]*, Zilog 8530 serial ports,zs)dnl
27_mkdev(s64_tzs, {-tty[a-z]-}, {-u=${i#tty*}
28	case $u in
29	a) n=0 ;;
30	b) n=1 ;;
31	c) n=2 ;;
32	d) n=3 ;;
33	e) n=4;;
34	f) n=5;;
35	*) echo unknown tty device $i ;;
36	esac
37	M tty$u c major_s64_tzs_c $n 660 dialer uucp-})dnl
38_mkdev(s64_czs, cua[a-z], {-u=${i#cua*}
39	case $u in
40	a) n=0 ;;
41	b) n=1 ;;
42	c) n=2 ;;
43	d) n=3 ;;
44	e) n=4;;
45	f) n=5;;
46	*) echo unknown cua device $i ;;
47	esac
48	M cua$u c major_s64_czs_c Add($n, 128) 660 dialer uucp-})dnl
49__devitem(presto, presto*, Prestoserve NVRAM memory)dnl
50disk_q(presto)dnl
51dnl #notyet#__devitem(apm, apm, Power management device, tctrl)dnl
52dnl
53dnl *** MAKEDEV itself
54dnl
55_TITLE(make)
56_DEV(all)
57_DEV(ramdisk)
58_DEV(std)
59_DEV(local)
60_TITLE(dis)
61_DEV(ccd, 23, 9)
62_DEV(cd, 58, 18)
63_DEV(flo, 54, 16)
64_DEV(presto, 25, 26)
65_DEV(sd, 17, 7)
66_DEV(raid, 123, 25)
67_DEV(rd, 106, 17)
68_DEV(vnd, 110, 8)
69_DEV(xd, 42, 10)
70_DEV(xy, 9, 3)
71_TITLE(tap)
72_DEV(ch, 19)
73_DEV(st, 18, 11)
74_TITLE(term)
75_DEV(s64_czs, 12)
76_DEV(s64_tzs, 12)
77dnl #notyet#_DEV(com, 36)
78_DEV(mag, 100)
79_DEV(spif, 102)
80_TITLE(pty)
81_DEV(ptm, 125)
82_DEV(pty, 21)
83_DEV(tty, 20)
84_TITLE(prn)
85_DEV(bpp, 104)
86_DEV(bppmag, 101)
87_DEV(bppsp, 103)
88_TITLE(cons)
89_DEV(wscons)
90_DEV(wsdisp, 78)
91_DEV(wskbd, 79)
92_DEV(wsmux, 81)
93_TITLE(point)
94_DEV(wsmouse, 80)
95_TITLE(spec)
96dnl #notyet#_DEV(apm, 30)
97_DEV(au, 69)
98_DEV(bpf, 105)
99_DEV(fdesc, 24)
100_DEV(lkm, 112)
101_DEV(oppr)
102_DEV(pf, 59)
103_DEV(rnd, 119)
104_DEV(ss, 121)
105_DEV(systrace, 50)
106_DEV(tun, 111)
107_DEV(uk, 120)
108dnl
109divert(__mddivert)dnl
110dnl
111ramdisk)
112	_recurse std random bpf0
113	_recurse fd0 sd0 sd1 sd2 rd0 cd0
114	;;
115
116_std(2, 3, 122, 7, 16)
117	M eeprom	c 3 11	640 kmem
118	M openprom	c 70 0	640 kmem
119	;;
120dnl
121dnl *** some sparc-specific targets
122dnl
123twrget(all, s64_tzs, tty, a, b, c, d)dnl
124twrget(all, s64_czs, cua, a, b, c, d)dnl
125target(all, ch, 0)dnl
126target(all, ss, 0, 1)dnl
127twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl
128twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl
129target(all, pty, 0)dnl
130target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
131target(all, tun, 0, 1, 2, 3)dnl
132target(all, xy, 0, 1, 2, 3)dnl
133target(all, hk, 0, 1, 2, 3)dnl
134target(all, rd, 0)dnl
135target(all, cd, 0, 1)dnl
136target(all, sd, 0, 1, 2, 3, 4)dnl
137target(all, vnd, 0, 1, 2, 3)dnl
138target(all, ccd, 0, 1, 2, 3)dnl
139target(all, bpp, 0)dnl
140target(all, presto, 0)dnl
141target(ramd, fd, 0)dnl
142target(ramd, sd, 0, 1, 2, 3)dnl
143target(ramd, rd, 0)dnl
144target(ramd, cd, 0)dnl
145twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
146twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
147twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl
148