1define(MACHINE,macppc)dnl 2vers(__file__, 3 {-$OpenBSD: MAKEDEV.md,v 1.46 2011/04/19 23:07:55 todd 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(s64_tzs, tty[a-z]*, Zilog 8530 serial ports,zs)dnl 22__devitem(s64_czs, cua[a-z]*, Zilog 8530 serial ports,zs)dnl 23_mkdev(s64_tzs, {-tty[a-z]-}, {-u=${i#tty*} 24 case $u in 25 a) n=0 ;; 26 b) n=1 ;; 27 *) echo unknown tty device $i ;; 28 esac 29 M tty$u c major_s64_tzs_c $n 660 dialer uucp-})dnl 30_mkdev(s64_czs, cua[a-z], {-u=${i#cua*} 31 case $u in 32 a) n=0 ;; 33 b) n=1 ;; 34 *) echo unknown cua device $i ;; 35 esac 36 M cua$u c major_s64_czs_c Add($n, 128) 660 dialer uucp-})dnl 37__devitem(apm, apm, Power management device)dnl 38_TITLE(make) 39_DEV(all) 40_DEV(ramd) 41_DEV(std) 42_DEV(local) 43_TITLE(dis) 44_DEV(ccd, 18, 16) 45_DEV(cd, 9, 3) 46_DEV(raid, 54, 19) 47_DEV(rd, 17, 17) 48_DEV(sd, 8, 2) 49_DEV(vnd, 19, 14) 50_DEV(wd, 11, 0) 51_TITLE(tap) 52_DEV(ch, 10) 53_DEV(st, 20, 5) 54_TITLE(term) 55_DEV(s64_czs, 7) 56_DEV(com, 26) 57_DEV(s64_tzs, 7) 58_TITLE(pty) 59_DEV(ptm, 77) 60_DEV(pty, 5) 61_DEV(tty, 4) 62_TITLE(cons) 63_DEV(wscons) 64_DEV(wsdisp, 67) 65_DEV(wskbd, 68) 66_DEV(wsmux, 70) 67_TITLE(point) 68_DEV(wsmouse, 69) 69_TITLE(usb) 70_DEV(uall) 71_DEV(ttyU, 66) 72_DEV(ugen, 63) 73_DEV(uhid, 62) 74_DEV(ulpt, 64) 75_DEV(urio, 65) 76_DEV(usb, 61) 77_DEV(uscan, 74) 78_TITLE(spec) 79_DEV(apm, 25) 80_DEV(au, 44) 81_DEV(bio, 80) 82_DEV(bktr, 75) 83_DEV(bpf, 22) 84_DEV(bthub, 81) 85_DEV(cry, 47) 86_DEV(diskmap, 84) 87_DEV(fdesc, 21) 88_DEV(gpio, 79) 89_DEV(hotplug, 78) 90_DEV(iop, 73) 91_DEV(lkm, 24) 92_DEV(nnpfs, 51) 93_DEV(pci, 71) 94_DEV(pf, 39) 95_DEV(pppx, 85) 96_DEV(radio, 76) 97_DEV(rnd, 40) 98_DEV(rmidi, 52) 99_DEV(music, 53) 100_DEV(systrace, 50) 101_DEV(tun, 23) 102_DEV(tuner, 75) 103_DEV(uk, 41) 104_DEV(vi, 45) 105_DEV(vscsi, 83) 106dnl 107divert(__mddivert)dnl 108dnl 109_std(1, 2, 43, 6) 110 M xf86 c 2 4 600 111 M openprom c 82 0 640 kmem 112 ;; 113 114dnl 115dnl *** macppc specific targets 116dnl 117twrget(all, s64_tzs, tty, a, b)dnl 118twrget(all, s64_czs, cua, a, b)dnl 119target(all, ch, 0)dnl 120target(all, nnpfs, 0)dnl 121target(all, vscsi, 0)dnl 122target(all, diskmap)dnl 123twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl 124twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl 125target(all, pty, 0)dnl 126target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl 127target(all, tun, 0, 1, 2, 3)dnl 128target(all, xy, 0, 1, 2, 3)dnl 129target(all, rd, 0)dnl 130target(all, cd, 0, 1)dnl 131target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl 132target(all, vnd, 0, 1, 2, 3)dnl 133target(all, ccd, 0, 1, 2, 3)dnl 134target(all, gpio, 0, 1, 2)dnl 135target(all, bio)dnl 136target(all, bthub, 0, 1, 2)dnl 137target(ramd, ttya, 0, 1)dnl 138target(ramd, ttyb, 0, 1)dnl 139target(ramd, pty, 0)dnl 140target(ramd, bio)dnl 141target(ramd, diskmap)dnl 142