xref: /openbsd/etc/etc.i386/MAKEDEV.md (revision 5af055cd)
1define(MACHINE,i386)dnl
2vers(__file__,
3	{-$OpenBSD: MAKEDEV.md,v 1.78 2016/02/05 06:29:45 uebayasi 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
21__devitem(apm, apm, Power management device)dnl
22__devitem(amdmsr, amdmsr, AMD MSR access device)dnl
23__devitem(nvram, nvram, NVRAM access)dnl
24_mkdev(nvram, nvram, {-M nvram c major_nvram_c 0 440 kmem-})dnl
25_mkdev(amdmsr, amdmsr*, {-M amdmsr c major_amdmsr_c $U -})dnl
26_TITLE(make)
27_DEV(all)
28_DEV(ramdisk)
29_DEV(std)
30_DEV(local)
31_TITLE(dis)
32_DEV(cd, 15, 6)
33_DEV(flo, 9, 2)
34_DEV(rd, 47, 17)
35_DEV(sd, 13, 4)
36_DEV(vnd, 41, 14)
37_DEV(wd, 3, 0)
38_TITLE(tap)
39_DEV(ch, 17)
40_DEV(st, 14, 5)
41_TITLE(term)
42_DEV(com, 8)
43_DEV(ttyc, 38)
44_TITLE(pty)
45_DEV(ptm, 81)
46_DEV(pty, 6)
47_DEV(tty, 5)
48_TITLE(cons)
49_DEV(wsdisp, 12)
50_DEV(wscons)
51_DEV(wskbd, 67)
52_DEV(wsmux, 69)
53_TITLE(point)
54_DEV(wsmouse, 68)
55_TITLE(prn)
56_DEV(lpa)
57_DEV(lpt, 16)
58_TITLE(usb)
59_DEV(ttyU, 66)
60_DEV(uall)
61_DEV(ugen, 63)
62_DEV(uhid, 62)
63_DEV(ulpt, 64)
64_DEV(usb, 61)
65_TITLE(spec)
66_DEV(amdmsr, 89)
67_DEV(apm, 21)
68_DEV(au, 42)
69_DEV(bio, 79)
70_DEV(bktr, 49)
71_DEV(bpf, 23)
72_DEV(diskmap, 91)
73_DEV(drm, 88)
74_DEV(fdesc, 22)
75_DEV(fuse, 93)
76_DEV(gpio, 83)
77_DEV(gpr, 80)
78_DEV(hotplug, 82)
79_DEV(ipmi, 96)
80_DEV(joy, 26)
81_DEV(nvram, 84)
82_DEV(pci, 72)
83_DEV(pctr, 46)
84_DEV(pf, 73)
85_DEV(pppx, 92)
86_DEV(radio, 76)
87_DEV(rnd, 45)
88_DEV(rmidi, 52)
89_DEV(speak, 27)
90_DEV(systrace, 78)
91_DEV(tun, 40)
92_DEV(tap, 94)
93_DEV(tuner, 49)
94_DEV(uk, 20)
95_DEV(vi, 44)
96_DEV(vmm, 10)
97_DEV(vscsi, 90)
98_DEV(pvbus, 95)
99dnl
100divert(__mddivert)dnl
101dnl
102ramdisk)
103	_recurse std bpf0 fd0 wd0 sd0 tty00 tty01 rd0 bio diskmap
104	_recurse st0 cd0 ttyC0 wskbd0 wskbd1 wskbd2 apm random
105	;;
106
107_std(1, 2, 50, 7)
108	M xf86		c 2 4 600
109	;;
110
111ttyc*)
112	M ttyc$U c 38 $U 660 dialer uucp
113	M cuac$U c 38 Add($U, 128) 660 dialer uucp
114	;;
115dnl
116dnl i386 specific targets
117dnl
118twrget(all, au, audio, 0, 1, 2)dnl
119target(all, ch, 0)dnl
120target(all, vscsi, 0)dnl
121target(all, diskmap)dnl
122twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl
123twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl
124target(all, pty, 0)dnl
125target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
126target(all, bio)dnl
127target(all, tun, 0, 1, 2, 3)dnl
128target(all, tap, 0, 1, 2, 3)dnl
129target(all, xy, 0, 1, 2, 3)dnl
130target(all, rd, 0)dnl
131target(all, cd, 0, 1)dnl
132target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
133target(all, vnd, 0, 1, 2, 3)dnl
134target(all, bktr, 0)dnl
135target(all, gpio, 0, 1, 2)dnl
136target(all, nvram)dnl
137target(all, drm, 0, 1, 2, 3)dnl
138target(all, amdmsr)dnl
139target(all, ipmi, 0)dnl
140twrget(ramd, wsdisp, ttyC, 0)dnl
141