1 # $NetBSD: MAKEDEV.conf,v 1.10 2007/01/15 23:35:12 hubertf Exp $
4 makedev mt0 mt1 ts0 ts1 st0 st1 uk0 ss0 cd0 vt0
5 makedev ra0 ra1 ra2 ra3 hp0 hp1 hp2 hp3 sd0 sd1 sd2 sd3 rd0 rd1 rd2
6 makedev dz0 dl0 dhu0 rx0 rx1
7 makedev scsibus0 scsibus1 scsibus2 scsibus3
8 makedev ses0 ses1 ses2 ses3
29 ht*) name=ht; unit=${i#ht}; blk=1; chr=5 ;;
30 mt*) name=mt; unit=${i#mt}; blk=15; chr=38;;
31 tm*) name=tm; unit=${i#tm}; blk=5; chr=14;;
32 ts*) name=ts; unit=${i#ts}; blk=6; chr=16;;
33 ut*) name=ut; unit=${i#ut}; blk=10; chr=17;;
37 four=$(($unit + 4)) ; eight=$(($unit + 8))
38 twelve=$(($unit + 12)) ; twenty=$(($unit + 20))
39 mkdev $name$unit b $blk $unit 660 $g_operator
40 mkdev $name$four b $blk $four 660 $g_operator
41 mkdev $name$eight b $blk $eight 660 $g_operator
42 mkdev $name$twelve b $blk $twelve 660 $g_operator
43 # next 4 are for sanity with pdp11 v7
44 mkdev n$name$unit b $blk $four 660 $g_operator
45 mkdev n$name$eight b $blk $twelve 660 $g_operator
46 mkdev nr$name$unit c $chr $four 660 $g_operator
47 mkdev nr$name$eight c $chr $twelve 660 $g_operator
48 mkdev r$name$unit c $chr $unit 660 $g_operator
49 mkdev r$name$four c $chr $four 660 $g_operator
50 mkdev r$name$eight c $chr $eight 660 $g_operator
51 mkdev r$name$twelve c $chr $twelve 660 $g_operator
53 mkdev $name$twenty b $blk $twenty 660 $g_operator
54 mkdev r$name$twenty c $chr $twenty 660 $g_operator
58 warn "bad unit for tape in: $1"
63 hp*|hk*|up*|ra[0-9]*|rl*|rb*|rd*|rx*)
65 hp*) name=hp; unit=${i#hp}; blk=0; chr=4;;
66 hk*) name=hk; unit=${i#hk}; blk=3; chr=11;;
67 up*) name=up; unit=${i#up}; blk=2; chr=13;;
68 ra*) name=ra; unit=${i#ra}; blk=9; chr=9;;
69 rb*) name=rb; unit=${i#rb}; blk=11; chr=23;;
70 rx*) name=rx; unit=${i#rx}; blk=12; chr=30;;
71 rl*) name=rl; unit=${i#rl}; blk=14; chr=32;;
72 rd*) name=rd; unit=${i#rd}; blk=19; chr=58;;
74 %MKDISK% $name $unit $blk $chr
82 mkdev ${name}${unit} b $blk $(($unit * 2 + 0))
83 mkdev ${name}${unit}a b $blk $(($unit * 2 + 1))
86 warn "bad unit for uu in: $i"
98 oi=$(($unit * 8 + $i))
101 mkdev tty$zoi c 1 $oi
106 warn "bad unit for dz in: $i"
111 dhu*|dh*|dmf*|dmz*|vt*)
113 vt*) name=vt; major=68; count=8
117 *) warn "bad unit for $name in: $i" ;;
120 dmz*) name=dmz; major=37; count=24
128 *) warn "bad unit for $name in: $i" ;;
131 dmf*) name=dmf; major=22; count=8
142 *) warn "bad unit for $name in: $i" ;;
145 dhu*) name=dhu; major=34; count=16
156 *) warn "bad unit for $name in: $i" ;;
159 dh*) name=dh; major=12; count=16
170 *) warn "bad unit for $name in: $i" ;;
175 while [ $i -lt $count ]
177 mkdev tty$ch$(hexprint $i) c $major $(($unit * $count + $i))
185 mkdev ttyJ$(hexprint $unit) c 66 $unit
190 lp*) name=lp; unit=${i#lp}; major=15;;
191 va*) name=va; unit=${i#va}; major=10;;
192 vp*) name=vp; unit=${i#vp}; major=6;;
196 mkdev $i c $major $unit 666
199 warn "bad unit for $name in: $i"
208 1) offset=16 name=1;;
209 2) offset=32 name=2;;
210 *) warn "bad unit for np in: $i" ;;
219 mkdev np$zoi c 39 $oi
227 ct*) name=ct; unit=${i#ct}; chr=18;;
228 dn*) name=cu; unit=${i#dn}; chr=24;;
229 ps*) name=ps; unit=${i#ps}; chr=27;;
230 ad*) name=ad; unit=${i#ad}; chr=29;;
231 ik*) name=ik; unit=${i#ik}; chr=31;;
235 mkdev ${name}${unit} c ${chr} ${unit} 666
238 warn "bad unit for $name in: $i"
245 mkdev qc$unit c 40 $(($unit * 4))
246 mkdev qd$unit c 40 $(($unit * 4 + 2))