2006-09-06 15:09:58 +04:00
|
|
|
# $NetBSD: MAKEDEV.conf,v 1.7 2006/09/06 11:09:58 ad Exp $
|
2003-10-15 23:13:32 +04:00
|
|
|
|
|
|
|
all_md)
|
|
|
|
makedev minimal
|
2003-12-14 02:11:17 +03:00
|
|
|
makedev wscons
|
2006-07-29 23:10:56 +04:00
|
|
|
makedev stic0 stic1 stic2
|
2003-10-15 23:13:32 +04:00
|
|
|
makedev audio
|
|
|
|
makedev scsibus0 scsibus1 scsibus2 scsibus3
|
|
|
|
;;
|
|
|
|
|
|
|
|
minimal)
|
|
|
|
makedev std
|
|
|
|
makedev cd0
|
|
|
|
makedev sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
|
|
|
|
makedev sd8 sd9 sd10 sd11 sd12 sd13 sd14 sd15
|
|
|
|
makedev st0 st1
|
|
|
|
makedev md0 dz0 zs0 opty
|
|
|
|
;;
|
|
|
|
|
|
|
|
# Serial devices: dc*, scc*.
|
|
|
|
#
|
2006-07-29 23:10:56 +04:00
|
|
|
# Create dz* devices as /dev/ttyD[0-3],
|
|
|
|
dz*)
|
2003-10-15 23:13:32 +04:00
|
|
|
case $i in
|
|
|
|
dz*) name=dz; unit=${i#dz}; chr=16;;
|
|
|
|
esac
|
|
|
|
case $unit in
|
|
|
|
0)
|
2003-12-21 20:37:26 +03:00
|
|
|
mkdev ttyD0 c $chr 0
|
|
|
|
mkdev ttyD1 c $chr 1
|
|
|
|
mkdev ttyD2 c $chr 2
|
|
|
|
mkdev ttyD3 c $chr 3
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
|
|
|
*)
|
2003-12-23 01:26:32 +03:00
|
|
|
warn "bad unit for $name in: $i"
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
2006-07-29 23:10:56 +04:00
|
|
|
# Make zs devices as /dev/tty[abcd],
|
2003-10-15 23:13:32 +04:00
|
|
|
#
|
2006-07-29 23:10:56 +04:00
|
|
|
zs*)
|
2003-10-15 23:13:32 +04:00
|
|
|
case $i in
|
|
|
|
zs*) name=scc; unit=${i#zs}; chr=17;;
|
|
|
|
esac
|
|
|
|
case $unit in
|
|
|
|
0|1)
|
2003-12-21 20:37:26 +03:00
|
|
|
mkdev ttya c $chr 0
|
|
|
|
mkdev ttyb c $chr 1
|
|
|
|
mkdev ttyc c $chr 2
|
|
|
|
mkdev ttyd c $chr 3
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
|
|
|
*)
|
2003-12-23 01:26:32 +03:00
|
|
|
warn "bad unit for $name in: $i"
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
;;
|
|
|
|
|
2003-12-14 02:11:17 +03:00
|
|
|
stic*)
|
|
|
|
unit=${i#stic}
|
2003-12-21 20:37:26 +03:00
|
|
|
mkdev stic$unit c 98 $unit
|
2003-10-15 23:13:32 +04:00
|
|
|
;;
|