Home | History | Annotate | Line # | Download | only in etc.hp300
MAKEDEV.conf revision 1.9
      1 #	$NetBSD: MAKEDEV.conf,v 1.9 2003/12/22 22:26:32 lukem Exp $
      2 
      3 all_md)
      4 	makedev ct0 ct1 rd0 rd1 rd2
      5 #	makedev wscons # should be after 'std'
      6 	makedev sd0 sd1 sd2 cd0 cd1 st0 st1 ch0
      7 	makedev hil grf0 ite0
      8 	makedev ttyC0 ttyC1 ttyC2 ttyC3
      9 	makedev ttyM0 ttyM1 ttyM2 ttyM3 ttyM4 ttyM5 ttyM6 ttyM7
     10 	makedev ttyM8 ttyM9 ttyMa ttyMb ttyMc ttyMd ttyMe ttyMf
     11 	makedev scsibus0 scsibus1 scsibus2 scsibus3
     12 	makedev ss0 uk0 uk1
     13 # Create symlinks for compatibility with old devices.
     14 # These entries should be removed after 2.0-release.
     15 	makedev dca0 dcm0 dcm1 dcm2 dcm3 apci0
     16 	;;
     17 
     18 ct*)
     19 	case $i in
     20 	ct*) name=ct; unit=${i#ct}; blk=0; chr=7;;
     21 	esac
     22 	case $unit in
     23 	0|1|2|3|4|5|6|7)
     24 		four=$(($unit + 4)) ; eight=$(($unit + 8))
     25 		twelve=$(($unit + 12)) ; twenty=$(($unit + 20))
     26 		#
     27 		# block devices don't work so don't make them
     28 		#mkdev ${name}${unit}	b $blk $unit	660 $g_operator
     29 		#mkdev ${name}${four}	b $blk $four	660 $g_operator
     30 		#mkdev ${name}${eight}	b $blk $eight	660 $g_operator
     31 		#mkdev ${name}${twelve}	b $blk $twelve	660 $g_operator
     32 		#lndev ${name}{$four} n${name}${unit}	;: sanity w/pdp11 v7
     33 		#lndev ${name}{$twelve} n${name}${eight}	;: ditto
     34 		#
     35 		mkdev r${name}${unit}	c $chr $unit	660 $g_operator
     36 		mkdev r${name}${four}	c $chr $four	660 $g_operator
     37 		mkdev r${name}${eight}	c $chr $eight	660 $g_operator
     38 		mkdev r${name}${twelve}	c $chr $twelve	660 $g_operator
     39 		lndev r${name}${four} nr${name}${unit}	;: sanity w/pdp11 v7
     40 		lndev r${name}${twelve} nr${name}${eight}	;: ditto
     41 		;;
     42 	*)
     43 		warn "bad unit for tape in: $1"
     44 		;;
     45 	esac
     46 	;;
     47 
     48 hil)
     49 	for unit in 0 1 2 3 4 5 6 7
     50 	do
     51 		mkdev hil${unit} c 14 ${unit} 666
     52 		if [ -f /usr/sbin/hilinfo ]; then
     53 			case $(/usr/sbin/hilinfo -t hil${unit}) in
     54 			mouse)
     55 				if [ ! -f locator ]; then
     56 					lndev hil${unit} locator
     57 				fi
     58 				;;
     59 			keyboard)
     60 				if [ ! -f keyboard ]; then
     61 					lndev hil${unit} keyboard
     62 				fi
     63 				;;
     64 			*)
     65 				;;
     66 			esac
     67 		fi
     68 	done
     69 	if [ ! -f /usr/sbin/hilinfo ]; then
     70 		lndev hil1 keyboard
     71 		lndev hil3 locator
     72 	fi
     73 #	warn "hil: use $0.hpux to make HP-UX names for devices"
     74 	;;
     75 
     76 rd*)
     77 	name=rd; unit=${i#rd}; blk=2; chr=9
     78 	%MKDISK% $name $unit $blk $chr
     79 	;;
     80 
     81 ttyM*)
     82 	unit=${i#????}
     83 	case $unit in
     84 	[0-9])	i=$unit ;;
     85 	a)	i=10 ;;
     86 	b)	i=11 ;;
     87 	c)	i=12 ;;
     88 	d)	i=13 ;;
     89 	e)	i=14 ;;
     90 	f)	i=15 ;;
     91 	*)	i=-1 ;;
     92 	esac
     93 	if [ $i = -1 ]; then
     94 		warn "bad unit for ttyM in: $unit"
     95 		break
     96 	fi
     97 	mkdev ttyM$unit c 15 $i "" "" $u_uucp
     98 	;;
     99 
    100 # Create symlinks for compatibility with old devices.
    101 # The following entries should be removed after 2.0-release.
    102 dca*)
    103 	# old MAKEDEV creates only tty0 for dca
    104 	unit=${i#dca}
    105 	case $unit in
    106 	0)
    107 		lndev ttyC0 tty0
    108 		;;
    109 	*)
    110 		warn "bad unit for dca in: $i"
    111 		;;
    112 	esac
    113 	;;
    114 
    115 dcm*)
    116 	unit=${i#dcm}
    117 	case $unit in
    118 	0|1|2|3)
    119 		for n in 0 1 2 3
    120 		do
    121 			in=$(($unit * 4 + $n))
    122 			case $in in
    123 			[0-9])	i=$in ;;
    124 			10)	i=a ;;
    125 			11)	i=b ;;
    126 			12)	i=c ;;
    127 			13)	i=d ;;
    128 			14)	i=e ;;
    129 			15)	i=f ;;
    130 			esac
    131 			lndev ttyM${i} tty0${i}
    132 		done
    133 		;;
    134 	*)
    135 		warn "bad unit for dcm in: $i"
    136 		;;
    137 	esac
    138 	;;
    139 
    140 apci*)
    141 	# There exists only one Frodo ASIC per HP9000/400 SPU.
    142 	unit=${i#apci}
    143 	case $unit in
    144 	0)
    145 		for i in 0 1 2
    146 		do
    147 			lndev ttyC$(($i + 1)) ttya${i}
    148 		done
    149 		;;
    150 	*)
    151 		warn "bad unit for apci in: $i"
    152 		;;
    153 	esac
    154 	;;
    155 # end of entries for compatibility with old devices
    156