2003-12-23 01:26:32 +03:00
|
|
|
# $NetBSD: MAKEDEV.conf,v 1.9 2003/12/22 22:26:32 lukem Exp $
|
2003-10-15 23:13:32 +04:00
|
|
|
|
|
|
|
all_md)
|
2003-11-01 22:02:54 +03:00
|
|
|
makedev ct0 ct1 rd0 rd1 rd2
|
2003-10-15 23:13:32 +04:00
|
|
|
# makedev wscons # should be after 'std'
|
|
|
|
makedev sd0 sd1 sd2 cd0 cd1 st0 st1 ch0
|
2003-11-22 20:20:08 +03:00
|
|
|
makedev hil grf0 ite0
|
|
|
|
makedev ttyC0 ttyC1 ttyC2 ttyC3
|
|
|
|
makedev ttyM0 ttyM1 ttyM2 ttyM3 ttyM4 ttyM5 ttyM6 ttyM7
|
|
|
|
makedev ttyM8 ttyM9 ttyMa ttyMb ttyMc ttyMd ttyMe ttyMf
|
2003-10-15 23:13:32 +04:00
|
|
|
makedev scsibus0 scsibus1 scsibus2 scsibus3
|
|
|
|
makedev ss0 uk0 uk1
|
2003-11-22 20:20:08 +03:00
|
|
|
# Create symlinks for compatibility with old devices.
|
|
|
|
# These entries should be removed after 2.0-release.
|
|
|
|
makedev dca0 dcm0 dcm1 dcm2 dcm3 apci0
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
|
|
|
|
|
|
|
ct*)
|
|
|
|
case $i in
|
|
|
|
ct*) name=ct; unit=${i#ct}; blk=0; chr=7;;
|
|
|
|
esac
|
|
|
|
case $unit in
|
|
|
|
0|1|2|3|4|5|6|7)
|
|
|
|
four=$(($unit + 4)) ; eight=$(($unit + 8))
|
|
|
|
twelve=$(($unit + 12)) ; twenty=$(($unit + 20))
|
|
|
|
#
|
|
|
|
# block devices don't work so don't make them
|
2003-12-21 20:37:26 +03:00
|
|
|
#mkdev ${name}${unit} b $blk $unit 660 $g_operator
|
|
|
|
#mkdev ${name}${four} b $blk $four 660 $g_operator
|
|
|
|
#mkdev ${name}${eight} b $blk $eight 660 $g_operator
|
|
|
|
#mkdev ${name}${twelve} b $blk $twelve 660 $g_operator
|
|
|
|
#lndev ${name}{$four} n${name}${unit} ;: sanity w/pdp11 v7
|
|
|
|
#lndev ${name}{$twelve} n${name}${eight} ;: ditto
|
2003-10-15 23:13:32 +04:00
|
|
|
#
|
2003-12-21 20:37:26 +03:00
|
|
|
mkdev r${name}${unit} c $chr $unit 660 $g_operator
|
|
|
|
mkdev r${name}${four} c $chr $four 660 $g_operator
|
|
|
|
mkdev r${name}${eight} c $chr $eight 660 $g_operator
|
|
|
|
mkdev r${name}${twelve} c $chr $twelve 660 $g_operator
|
|
|
|
lndev r${name}${four} nr${name}${unit} ;: sanity w/pdp11 v7
|
|
|
|
lndev r${name}${twelve} nr${name}${eight} ;: ditto
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
|
|
|
*)
|
2003-12-23 01:26:32 +03:00
|
|
|
warn "bad unit for tape in: $1"
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
hil)
|
|
|
|
for unit in 0 1 2 3 4 5 6 7
|
|
|
|
do
|
2003-12-21 20:37:26 +03:00
|
|
|
mkdev hil${unit} c 14 ${unit} 666
|
|
|
|
if [ -f /usr/sbin/hilinfo ]; then
|
|
|
|
case $(/usr/sbin/hilinfo -t hil${unit}) in
|
2003-10-15 23:13:32 +04:00
|
|
|
mouse)
|
2003-12-21 20:37:26 +03:00
|
|
|
if [ ! -f locator ]; then
|
|
|
|
lndev hil${unit} locator
|
2003-10-15 23:13:32 +04:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
keyboard)
|
2003-12-21 20:37:26 +03:00
|
|
|
if [ ! -f keyboard ]; then
|
|
|
|
lndev hil${unit} keyboard
|
2003-10-15 23:13:32 +04:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
done
|
2003-12-21 20:37:26 +03:00
|
|
|
if [ ! -f /usr/sbin/hilinfo ]; then
|
|
|
|
lndev hil1 keyboard
|
|
|
|
lndev hil3 locator
|
2003-10-15 23:13:32 +04:00
|
|
|
fi
|
2003-12-23 01:26:32 +03:00
|
|
|
# warn "hil: use $0.hpux to make HP-UX names for devices"
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
2003-10-24 12:20:26 +04:00
|
|
|
|
|
|
|
rd*)
|
|
|
|
name=rd; unit=${i#rd}; blk=2; chr=9
|
|
|
|
%MKDISK% $name $unit $blk $chr
|
|
|
|
;;
|
2003-11-22 20:20:08 +03:00
|
|
|
|
|
|
|
ttyM*)
|
|
|
|
unit=${i#????}
|
|
|
|
case $unit in
|
|
|
|
[0-9]) i=$unit ;;
|
|
|
|
a) i=10 ;;
|
|
|
|
b) i=11 ;;
|
|
|
|
c) i=12 ;;
|
|
|
|
d) i=13 ;;
|
|
|
|
e) i=14 ;;
|
|
|
|
f) i=15 ;;
|
|
|
|
*) i=-1 ;;
|
|
|
|
esac
|
2003-12-21 20:37:26 +03:00
|
|
|
if [ $i = -1 ]; then
|
2003-12-23 01:26:32 +03:00
|
|
|
warn "bad unit for ttyM in: $unit"
|
2003-11-22 20:20:08 +03:00
|
|
|
break
|
|
|
|
fi
|
2003-12-21 20:37:26 +03:00
|
|
|
mkdev ttyM$unit c 15 $i "" "" $u_uucp
|
2003-11-22 20:20:08 +03:00
|
|
|
;;
|
|
|
|
|
|
|
|
# Create symlinks for compatibility with old devices.
|
|
|
|
# The following entries should be removed after 2.0-release.
|
|
|
|
dca*)
|
|
|
|
# old MAKEDEV creates only tty0 for dca
|
|
|
|
unit=${i#dca}
|
|
|
|
case $unit in
|
|
|
|
0)
|
2003-12-21 20:37:26 +03:00
|
|
|
lndev ttyC0 tty0
|
2003-11-22 20:20:08 +03:00
|
|
|
;;
|
|
|
|
*)
|
2003-12-23 01:26:32 +03:00
|
|
|
warn "bad unit for dca in: $i"
|
2003-11-22 20:20:08 +03:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
dcm*)
|
|
|
|
unit=${i#dcm}
|
|
|
|
case $unit in
|
|
|
|
0|1|2|3)
|
2003-12-21 20:37:26 +03:00
|
|
|
for n in 0 1 2 3
|
|
|
|
do
|
2003-11-22 20:20:08 +03:00
|
|
|
in=$(($unit * 4 + $n))
|
|
|
|
case $in in
|
|
|
|
[0-9]) i=$in ;;
|
|
|
|
10) i=a ;;
|
|
|
|
11) i=b ;;
|
|
|
|
12) i=c ;;
|
|
|
|
13) i=d ;;
|
|
|
|
14) i=e ;;
|
|
|
|
15) i=f ;;
|
|
|
|
esac
|
2003-12-21 20:37:26 +03:00
|
|
|
lndev ttyM${i} tty0${i}
|
2003-11-22 20:20:08 +03:00
|
|
|
done
|
|
|
|
;;
|
|
|
|
*)
|
2003-12-23 01:26:32 +03:00
|
|
|
warn "bad unit for dcm in: $i"
|
2003-11-22 20:20:08 +03:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
|
|
|
apci*)
|
|
|
|
# There exists only one Frodo ASIC per HP9000/400 SPU.
|
|
|
|
unit=${i#apci}
|
|
|
|
case $unit in
|
|
|
|
0)
|
2003-12-21 20:37:26 +03:00
|
|
|
for i in 0 1 2
|
|
|
|
do
|
|
|
|
lndev ttyC$(($i + 1)) ttya${i}
|
2003-11-22 20:20:08 +03:00
|
|
|
done
|
|
|
|
;;
|
|
|
|
*)
|
2003-12-23 01:26:32 +03:00
|
|
|
warn "bad unit for apci in: $i"
|
2003-11-22 20:20:08 +03:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
# end of entries for compatibility with old devices
|