Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/etc.pmax Make MI SCSI device ready. For now MAKEDEV al...



details:   https://anonhg.NetBSD.org/src/rev/a200c1017f6f
branches:  trunk
changeset: 482791:a200c1017f6f
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Tue Feb 22 03:57:38 2000 +0000

description:
Make MI SCSI device ready.   For now MAKEDEV all won't create them.

diffstat:

 etc/etc.pmax/MAKEDEV |  193 +++++++++++++++++++++++++++++---------------------
 1 files changed, 110 insertions(+), 83 deletions(-)

diffs (290 lines):

diff -r 1a25acd51356 -r a200c1017f6f etc/etc.pmax/MAKEDEV
--- a/etc/etc.pmax/MAKEDEV      Tue Feb 22 03:39:47 2000 +0000
+++ b/etc/etc.pmax/MAKEDEV      Tue Feb 22 03:57:38 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.34 2000/01/21 12:28:27 tsutsui Exp $
+#      $NetBSD: MAKEDEV,v 1.35 2000/02/22 03:57:38 nisimura Exp $
 #
 #      from: @(#)MAKEDEV       8.1 (Berkeley) 6/9/93
 #
@@ -14,17 +14,20 @@
 
 # Device "make" file.  Valid arguments:
 #      all     all known devices, including local devices.
-#      minimal A minimal set of devices for install disks, etc.
+#      minimal A minimal set of devices for install disks, etc.
 #      std     standard devices
 #      local   configuration specific devices
 # Tapes:
 #      tz*     SCSI tapes, DEC TK50 cartridge tape
+#      st*     MI SCSI tape drives
 # Disks:
 #      rz*     SCSI disks
+#      ccd*    concatenated disk driver
+#      cd*     MI SCSI cdroms
+#      md*     memory pseudo-disk devices
+#      raid*   RAIDframe disk driver
+#      sd*     MI SCSI disks
 #      vnd*    "file" pseudo-disks
-#      ccd*    concatenated disk driver
-#      raid*   RAIDframe disk driver
-#      md*     memory pseudo-disk devices
 # Terminal multiplexors:
 #      dc*     4 channel serial interface (keyboard, mouse, modem, printer)
 #      scc*    82530 serial interface
@@ -32,28 +35,23 @@
 #      pty*    set of 16 master and slave pseudo terminals
 # Special purpose devices:
 #      bpf*    packet filter
+#      ch*     SCSI media changer
+#      fd      file descriptors (/dev/fd/*)
+#      ipl     IP packet filter
 #      lkm     loadable kernel modules interface    (unsupported in 1.3_ALPHA)
+#      random  Random number generator
+#      scsibus* SCSI busses, see scsictl(8), scsi(4)
+#      ss*     MI scsi scanners
 #      tun*    network tunnel driver
-#      ipl     IP packet filter
-#      random  Random number generator
+#      uk*     MI unknown scsi devices
 # Platform-specific devices:
 #      NOTE: /dev/mouse should be a link to one of these for X windows.
 #      fb*     generic framebuffer pseudo-device
 #      px*     PixelStamp Xserver access 
-#
 # The following names are reserved for future use:
-#      pm*     raw interface to PMAX graphics devices
-#      cfb*    raw interface to turbochannel PMAG-BA color frame buffer
-#      xcfb*   raw interface to maxine graphics devices
-#      mfb*    raw interface to mono graphics devices
-#      scsibus* SCSI busses, see scsictl(8), scsi(4)
-#      sd*     MI SCSI disks
-#      st*     MI SCSI tape drives
-#      cd*     MI SCSI cdroms
-#      ss*     MI scsi scanners
-#      uk*     MI unknown scsi devices
+#      audio*  phone-quality audio on Personal DECstations
 #      fdc*    Baseboard 2.88 floppy disk on Personal DECstations
-#      audio*  phone-quality audio on Personal  DECstations
+#      ttyE?   Workstation console ("wscons") glass-tty emulators
 #
 
 
@@ -70,12 +68,14 @@
        sh $0 tun0 tun1 tun2 tun3
        sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
        sh $0 fb0 fb1 fb2
-       sh $0 px0 px1 px2
+       sh $0 px0 # px1 px2
        sh $0 mouse
        sh $0 ipl random lkm
-       sh $0 local
-#      sh $0 audio0 audio1 audio2 audio3 pm0 cfb0 xcfb0 mfb0 sfb0
-#      sh $0 cd0                        # no MI scsi yet
+       sh $0 local
+#      sh $0 audio0 audio1 audio2 audio3
+#      sh $0 cd0
+#      sh $0 sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
+#      sh $0 st0 st1
        sh $0 scsibus0 scsibus1 scsibus2 scsibus3
        ;;
 
@@ -122,9 +122,9 @@
        case $unit in
        [0-6])
                rm -f rmt$unit nrmt$unit rmth$unit nrmth$unit
-               mknod rmt$unit c $chr   $(($unit * 16 + 0))
-               mknod nrmt$unit c $chr  $(($unit * 16 + 1))
-               mknod rmth$unit c $chr  $(($unit * 16 + 2))
+               mknod rmt$unit c $chr   $(($unit * 16 + 0))
+               mknod nrmt$unit c $chr  $(($unit * 16 + 1))
+               mknod rmth$unit c $chr  $(($unit * 16 + 2))
                mknod nrmth$unit c $chr $(($unit * 16 + 3))
                chgrp operator rmt$unit nrmt$unit rmth$unit nrmth$unit
                chmod 660 rmt$unit nrmt$unit rmth$unit nrmth$unit
@@ -137,8 +137,8 @@
 
 bpf*|tun*)
        case $i in
-       bpf*) name=bpf; unit=${i#bpf};  chr=12;;
-       tun*) name=tun; unit=${i#tun};  chr=93;;
+       bpf*) name=bpf; unit=${i#bpf};  chr=12;;
+       tun*) name=tun; unit=${i#tun};  chr=93;;
        esac
        rm -f $name$unit
        mknod $name$unit c $chr $unit
@@ -163,13 +163,16 @@
        chgrp operator md${unit}? #rmd${unit}?
        chmod 640 md${unit}? #rmd${unit}?
        ;;
+       ;;
 
-rz*|vnd*|ccd*|raid*)
+rz*|ccd*|cd*|raid*|sd*|vnd*)
        case $i in
-       rz*) name=rz;   unit=${i#rz};   blk=21; chr=56;;
-       raid*) name=raid; unit=${i#raid}; blk=32; chr=96;;
-       vnd*) name=vnd; unit=${i#vnd};  blk=2; chr=11;;
-       ccd*) name=ccd; unit=${i#ccd};  blk=24; chr=87;;
+       rz*)    name=rz;        unit=${i#rz};   blk=21; chr=56;;
+       ccd*)   name=ccd;       unit=${i#ccd};  blk=24; chr=87;;
+       cd*)    name=cd;        unit=${i#cd};   blk=25; chr=47;;
+       raid*)  name=raid;      unit=${i#raid}; blk=32; chr=96;;
+       sd*)    name=sd;        unit=${i#sd};   blk=19; chr=9;;
+       vnd*)   name=vnd;       unit=${i#vnd};  blk=2;  chr=11;;
        esac
        case $unit in
        [0-9]|1[0-4])
@@ -263,69 +266,46 @@
        ln -s fb0 mouse
        ;;
 
-# NOTE:
-# framebuffer-specific devices pm*, cfb*, xfb*, sfb* ,mfb* are not 
-# supported in 1.2.  Use the generic fb device intsead.
-# the names and device entries are reserved for compatilibity reasons.
-#
-pm*|cfb*|xcfb*|mfb*)
-       case $i in
-       pm*)    name=pm;        unit=${i#pm};   chr=8;;
-       cfb*)   name=cfb;       unit=${i#cfb};  chr=13;;
-       xcfb*)  name=xcfb;      unit=${i#xcfb}; chr=14;;
-       mfb*)   name=mfb;       unit=${i#mfb};  chr=18;;
-       esac
-       case $unit in
-       0)
-               rm -f $name$unit
-               mknod $name$unit c $chr 0
-               ;;
-       *)
-               echo bad unit for $name in: $i
-               ;;
-       esac
-       ;;
-
 pty*)
        class=${i#pty}
        case $class in
-       0)      name=p;;
-       1)      name=q;;
-       2)      name=r;;
-       3)      name=s;;
-       4)      name=t;;
-       5)      name=u;;
-       6)      name=v;;
-       7)      name=w;;
-       8)      name=x;;
-       9)      name=y;;
-       10)     name=z;;
-       11)     name=P;;
-       12)     name=Q;;
-       13)     name=R;;
-       14)     name=S;;
-       15)     name=T;;
-       *)      echo "$0: $i: pty unit must be between 0 and 15"
-               continue ;;
+       0)      name=p;;
+       1)      name=q;;
+       2)      name=r;;
+       3)      name=s;;
+       4)      name=t;;
+       5)      name=u;;
+       6)      name=v;;
+       7)      name=w;;
+       8)      name=x;;
+       9)      name=y;;
+       10)     name=z;;
+       11)     name=P;;
+       12)     name=Q;;
+       13)     name=R;;
+       14)     name=S;;
+       15)     name=T;;
+       *)      echo "$0: $i: pty unit must be between 0 and 15"
+               continue ;;
        esac
        rm -f tty$name[0-9a-f] pty$name[0-9a-f]
        for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
        do
                case $j in
-               [0-9])  jn=$j ;;
-               a)      jn=10 ;;
-               b)      jn=11 ;;
-               c)      jn=12 ;;
-               d)      jn=13 ;;
-               e)      jn=14 ;;
-               f)      jn=15 ;;
+               [0-9])  jn=$j ;;
+               a)      jn=10 ;;
+               b)      jn=11 ;;
+               c)      jn=12 ;;
+               d)      jn=13 ;;
+               e)      jn=14 ;;
+               f)      jn=15 ;;
                esac
                unit=$(($class * 16 + $jn))
                mknod tty$name$j c 4 $unit
                mknod pty$name$j c 5 $unit
        done
-        chgrp wheel tty$name? pty$name?
-        chmod 666 tty$name? pty$name?
+       chgrp wheel tty$name? pty$name?
+       chmod 666 tty$name? pty$name?
        ;;
 
 ipl)
@@ -347,6 +327,53 @@
        chmod 644 urandom
        ;;
 
+st*)
+       case $i in
+       st*) name=st;   unit=${i#st};   blk=18; chr=46;;
+       esac
+       rm -f $name$unit n$name$unit e$name$unit en$name$unit \
+       r$name$unit nr$name$unit er$name$unit enr$name$unit
+       mknod ${name}${unit}    b $blk $(($unit * 16+ 0))
+       mknod n${name}${unit}   b $blk $(($unit * 16+ 1))
+       mknod e${name}${unit}   b $blk $(($unit * 16+ 2))
+       mknod en${name}${unit}  b $blk $(($unit * 16+ 3))
+       mknod r${name}${unit}   c $chr $(($unit * 16+ 0))
+       mknod nr${name}${unit}  c $chr $(($unit * 16+ 1))
+       mknod er${name}${unit}  c $chr $(($unit * 16+ 2))
+       mknod enr${name}${unit} c $chr $(($unit * 16+ 3))
+       chgrp operator ${name}${unit} n${name}${unit} \
+               e$name$unit en$name$unit \
+               r${name}${unit} nr${name}${unit} \
+               er${name}${unit} enr${name}${unit}
+       chmod 660 ${name}${unit} n${name}${unit} \
+               e$name$unit en$name$unit \
+               r${name}${unit} nr${name}${unit} \
+               er${name}${unit} enr${name}${unit}
+       ;;
+
+ch*|uk*)
+       case $i in
+       ch*) name=ch;   unit=${i#ch};   chr=54;;
+       uk*) name=uk;   unit=${i#uk};   chr=55;;
+       esac
+       rm -f $name$unit
+       mknod $name$unit        c $chr $unit
+       chgrp operator $name$unit
+       chmod 640 $name$unit
+       ;;
+
+ss*)
+       case $i in
+       ss*) name=ss;   unit=${i#ss};   chr=53;;
+       esac
+       rm -f $name$unit n$name$unit en$name$unit
+       mknod $name$unit        c $chr $(($unit * 16 + 0))
+       mknod n$name$unit       c $chr $(($unit * 16 + 1))
+       mknod en$name$unit      c $chr $(($unit * 16 + 3))
+       chgrp operator $name$unit n$name$unit en$name$unit
+       chmod 640 $name$unit n$name$unit en$name$unit
+       ;;
+
 scsibus*)
        unit=${i#scsibus}; 
        rm -f scsibus$unit



Home | Main Index | Thread Index | Old Index