Home | History | Annotate | Line # | Download | only in etc.hp300
MAKEDEV.conf revision 1.4
      1  1.4  jdolecek #	$NetBSD: MAKEDEV.conf,v 1.4 2003/10/24 08:20:26 jdolecek Exp $
      2  1.1  jdolecek 
      3  1.1  jdolecek all_md)
      4  1.1  jdolecek 	makedev ct0 ct1 rd0 rd1 rd
      5  1.1  jdolecek #	makedev wscons # should be after 'std'
      6  1.1  jdolecek 	makedev sd0 sd1 sd2 cd0 cd1 st0 st1 ch0
      7  1.1  jdolecek 	makedev hil grf0 ite0 dca0 dcm0 dcm1 dcm2 dcm3 apci0
      8  1.1  jdolecek 	makedev scsibus0 scsibus1 scsibus2 scsibus3
      9  1.1  jdolecek 	makedev ss0 uk0 uk1
     10  1.1  jdolecek 	;;
     11  1.1  jdolecek 
     12  1.1  jdolecek ct*)
     13  1.1  jdolecek 	case $i in
     14  1.1  jdolecek 	ct*) name=ct; unit=${i#ct}; blk=0; chr=7;;
     15  1.1  jdolecek 	esac
     16  1.1  jdolecek 	case $unit in
     17  1.1  jdolecek 	0|1|2|3|4|5|6|7)
     18  1.1  jdolecek 		four=$(($unit + 4)) ; eight=$(($unit + 8))
     19  1.1  jdolecek 		twelve=$(($unit + 12)) ; twenty=$(($unit + 20))
     20  1.1  jdolecek 		#
     21  1.1  jdolecek 		# block devices don't work so don't make them
     22  1.1  jdolecek 		#rm -f ${name}${unit} ${name}${four} ${name}${eight} \
     23  1.1  jdolecek 		#    ${name}${twelve}
     24  1.1  jdolecek 		#mknod ${name}${unit}	b $blk $unit
     25  1.1  jdolecek 		#mknod ${name}${four}	b $blk $four
     26  1.1  jdolecek 		#mknod ${name}${eight}	b $blk $eight
     27  1.1  jdolecek 		#mknod ${name}${twelve}	b $blk $twelve
     28  1.1  jdolecek 		#ln -fs ${name}{$four} n${name}${unit}	;: sanity w/pdp11 v7
     29  1.1  jdolecek 		#ln -fs ${name}{$twelve} n${name}${eight}	;: ditto
     30  1.1  jdolecek 		#chgrp operator ${name}${unit} ${name}${four} ${name}${eight} \
     31  1.1  jdolecek 		#    ${name}${twelve} n${name}${unit} n${name}${eight}
     32  1.1  jdolecek 		#chmod 660 ${name}${unit} ${name}${four} ${name}${eight} \
     33  1.1  jdolecek 		#    ${name}${twelve} n${name}${unit} n${name}${eight}
     34  1.1  jdolecek 		#
     35  1.1  jdolecek 		rm -f r${name}${unit} r${name}${four} r${name}${eight} \
     36  1.1  jdolecek 		    r${name}${twelve}
     37  1.1  jdolecek 		mknod r${name}${unit}	c $chr $unit
     38  1.1  jdolecek 		mknod r${name}${four}	c $chr $four
     39  1.1  jdolecek 		mknod r${name}${eight}	c $chr $eight
     40  1.1  jdolecek 		mknod r${name}${twelve}	c $chr $twelve
     41  1.1  jdolecek 		ln -fs r${name}${four} nr${name}${unit}	;: sanity w/pdp11 v7
     42  1.1  jdolecek 		ln -fs r${name}${twelve} nr${name}${eight}	;: ditto
     43  1.1  jdolecek 		chgrp operator r${name}${unit} r${name}${four} \
     44  1.1  jdolecek 		    r${name}${eight} r${name}${twelve} nr${name}${unit} \
     45  1.1  jdolecek 		    nr${name}${eight}
     46  1.1  jdolecek 		chmod 660 r${name}${unit} r${name}${four} \
     47  1.1  jdolecek 		    r${name}${eight} r${name}${twelve} nr${name}${unit} \
     48  1.1  jdolecek 		    nr${name}${eight}
     49  1.1  jdolecek 		;;
     50  1.1  jdolecek 	*)
     51  1.1  jdolecek 		echo bad unit for tape in: $1
     52  1.1  jdolecek 		;;
     53  1.1  jdolecek 	esac
     54  1.1  jdolecek 	;;
     55  1.1  jdolecek 
     56  1.1  jdolecek dca*)
     57  1.1  jdolecek 	# XXX What about dca cards?
     58  1.1  jdolecek 	unit=${i#dca}
     59  1.1  jdolecek 	case $unit in
     60  1.1  jdolecek 	0)
     61  1.1  jdolecek 		rm -f tty0
     62  1.1  jdolecek 		mknod tty0 c 12 0
     63  1.1  jdolecek 		;;
     64  1.1  jdolecek 	*)
     65  1.1  jdolecek 		echo bad unit for dca in: $i
     66  1.1  jdolecek 		;;
     67  1.1  jdolecek 	esac
     68  1.1  jdolecek 	;;
     69  1.1  jdolecek 
     70  1.1  jdolecek dcm*)
     71  1.1  jdolecek 	unit=${i#dcm}
     72  1.1  jdolecek 	case $unit in
     73  1.1  jdolecek 	0|1|2|3)
     74  1.1  jdolecek 		eval `echo $unit | awk ' { unit = $1; u = 4 * $1 } END {
     75  1.1  jdolecek 		for (i = 0; i < 4; i++)
     76  1.1  jdolecek 		printf("rm -f tty0%x; mknod tty0%x c 15 %d; ",u+i,u+i,u+i); }'`
     77  1.1  jdolecek 		;;
     78  1.1  jdolecek 	*)
     79  1.1  jdolecek 		echo bad unit for dcm in: $i
     80  1.1  jdolecek 		;;
     81  1.1  jdolecek 	esac
     82  1.1  jdolecek 	;;
     83  1.1  jdolecek 
     84  1.1  jdolecek apci*)
     85  1.1  jdolecek 	# There exists only one Frodo ASIC per HP9000/400 SPU.
     86  1.1  jdolecek 	unit=${i#apci}
     87  1.1  jdolecek 	case $unit in
     88  1.1  jdolecek 	0)
     89  1.1  jdolecek 		for i in 0 1 2 3; do
     90  1.1  jdolecek 			rm -f ttya${i};
     91  1.1  jdolecek 			mknod ttya${i} c 31 ${i}
     92  1.1  jdolecek 		done
     93  1.1  jdolecek 		;;
     94  1.1  jdolecek 	*)
     95  1.1  jdolecek 		echo bad unit for apci in: $i
     96  1.1  jdolecek 		;;
     97  1.1  jdolecek 	esac
     98  1.1  jdolecek 	;;
     99  1.1  jdolecek 
    100  1.1  jdolecek hil)
    101  1.1  jdolecek 	for unit in 0 1 2 3 4 5 6 7
    102  1.1  jdolecek 	do
    103  1.1  jdolecek 		rm -f hil${unit}
    104  1.1  jdolecek 		mknod hil${unit} c 14 ${unit}
    105  1.1  jdolecek 		if [ -f /usr/sbin/hilinfo ]
    106  1.1  jdolecek 		then
    107  1.1  jdolecek 			case `/usr/sbin/hilinfo -t hil${unit}` in
    108  1.1  jdolecek 			mouse)
    109  1.1  jdolecek 				if [ ! -f locator ]
    110  1.1  jdolecek 				then
    111  1.1  jdolecek 					ln -fs hil${unit} locator
    112  1.1  jdolecek 				fi
    113  1.1  jdolecek 				;;
    114  1.1  jdolecek 			keyboard)
    115  1.1  jdolecek 				if [ ! -f keyboard ]
    116  1.1  jdolecek 				then
    117  1.1  jdolecek 					ln -fs hil${unit} keyboard
    118  1.1  jdolecek 				fi
    119  1.1  jdolecek 				;;
    120  1.1  jdolecek 			*)
    121  1.1  jdolecek 				;;
    122  1.1  jdolecek 			esac
    123  1.1  jdolecek 		fi
    124  1.1  jdolecek 	done
    125  1.1  jdolecek 	if [ ! -f /usr/sbin/hilinfo ]
    126  1.1  jdolecek 	then
    127  1.1  jdolecek 		ln -fs hil1 keyboard
    128  1.1  jdolecek 		ln -fs hil3 locator
    129  1.1  jdolecek 	fi
    130  1.1  jdolecek 	chmod 666 hil*
    131  1.1  jdolecek #	echo "hil: use $0.hpux to make HP-UX names for devices"
    132  1.4  jdolecek 	;;
    133  1.4  jdolecek 
    134  1.4  jdolecek rd*)
    135  1.4  jdolecek 	name=rd; unit=${i#rd}; blk=2; chr=9
    136  1.4  jdolecek 	%MKDISK% $name $unit $blk $chr
    137  1.1  jdolecek 	;;
    138