1define(MACHINE,sparc64)dnl 2vers(__file__, 3 {-$OpenBSD: MAKEDEV.md,v 1.55 2009/08/13 15:12:36 deraadt 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 uucp-})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 uucp-})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 49_TITLE(make) 50_DEV(all) 51_DEV(ramdisk) 52_DEV(std) 53_DEV(local) 54_TITLE(dis) 55_DEV(ccd, 23, 9) 56_DEV(cd, 58, 18) 57_DEV(flo, 54, 16) 58_DEV(raid, 121, 25) 59_DEV(rd, 61, 5) 60_DEV(sd, 17, 7) 61_DEV(vnd, 110, 8) 62_DEV(wd, 26, 12) 63_TITLE(tap) 64_DEV(ch, 19) 65_DEV(st, 18, 11) 66_TITLE(term) 67_DEV(com, 36) 68_DEV(s64_czs, 12) 69_DEV(s64_tzs, 12) 70_DEV(spif, 108) 71_DEV(tth, 77) 72_DEV(vcc, 127) 73_TITLE(pty) 74_DEV(ptm, 123) 75_DEV(pty, 21) 76_DEV(tty, 20) 77_TITLE(cons) 78_DEV(pcons, 122) 79_DEV(wscons) 80_DEV(wsdisp, 78) 81_DEV(wskbd, 79) 82_DEV(wsmux, 81) 83_TITLE(point) 84_DEV(wsmouse, 80) 85_TITLE(prn) 86_DEV(bpp, 107) 87_DEV(bppmag, 72) 88_DEV(bppsp, 109) 89_DEV(lpa) 90_DEV(lpt, 37) 91_TITLE(usb) 92_DEV(uall) 93_DEV(ttyU, 95) 94_DEV(ugen, 92) 95_DEV(uhid, 91) 96_DEV(ulpt, 93) 97_DEV(urio, 94) 98_DEV(usb, 90) 99_DEV(uscan, 96) 100_TITLE(spec) 101_DEV(au, 69) 102_DEV(bio, 120) 103_DEV(bpf, 105) 104_DEV(cry, 75) 105_DEV(fdesc, 24) 106_DEV(hotplug, 124) 107_DEV(lkm, 112) 108_DEV(oppr) 109_DEV(mag, 71) 110_DEV(pci, 52) 111_DEV(pf, 73) 112_DEV(rnd, 119) 113_DEV(ss, 59) 114_DEV(systrace, 50) 115_DEV(tun, 111) 116_DEV(uk, 60) 117_DEV(uperf, 25) 118_DEV(vi, 44) 119_DEV(nnpfs, 51) 120_DEV(vscsi, 128) 121dnl 122divert(__mddivert)dnl 123dnl 124ramdisk) 125 _recurse std fd0 wd0 wd1 wd2 sd0 sd1 sd2 rd0 126 _recurse st0 cd0 bpf0 bio 127 ;; 128 129_std(2, 3, 76, 16) 130 M openprom c 70 0 640 kmem 131 M mdesc c 70 1 640 kmem 132 ;; 133dnl 134dnl *** sparc64 specific targets 135dnl 136twrget(wscons, wscons, ttyD, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl 137twrget(wscons, wscons, ttyE, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl 138twrget(wscons, wscons, ttyF, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl 139twrget(wscons, wscons, ttyG, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl 140twrget(wscons, wscons, ttyH, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl 141twrget(wscons, wscons, ttyI, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl 142twrget(wscons, wscons, ttyJ, cfg, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b)dnl 143target(all, ccd, 0, 1, 2, 3)dnl 144target(all, ch, 0)dnl 145target(all, ss, 0, 1)dnl 146target(all, nnpfs, 0)dnl 147target(all, vscsi, 0)dnl 148twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl 149twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl 150target(all, pty, 0)dnl 151target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl 152target(all, bio)dnl 153target(all, tun, 0, 1, 2, 3)dnl 154target(all, xy, 0, 1, 2, 3)dnl 155target(all, rd, 0)dnl 156target(all, cd, 0, 1)dnl 157target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl 158target(all, vnd, 0, 1, 2, 3)dnl 159target(all, bpp, 0)dnl 160twrget(all, s64_tzs, tty, a, b, c, d)dnl 161twrget(all, s64_czs, cua, a, b, c, d)dnl 162twrget(all, vcc, ttyV, 0, 1, 2, 3)dnl 163