Source-Changes-HG archive

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

[src/trunk]: src/etc/etc.x86_64 etc files for x86_64



details:   https://anonhg.NetBSD.org/src/rev/07b461bcdc6a
branches:  trunk
changeset: 533001:07b461bcdc6a
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Jun 18 20:30:41 2002 +0000

description:
etc files for x86_64

diffstat:

 etc/etc.x86_64/MAKEDEV   |  964 +++++++++++++++++++++++++++++++++++++++++++++++
 etc/etc.x86_64/ttyaction |    4 +
 etc/etc.x86_64/ttys      |  129 ++++++
 3 files changed, 1097 insertions(+), 0 deletions(-)

diffs (truncated from 1109 to 300 lines):

diff -r 7bb761d4628e -r 07b461bcdc6a etc/etc.x86_64/MAKEDEV
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/etc.x86_64/MAKEDEV    Tue Jun 18 20:30:41 2002 +0000
@@ -0,0 +1,964 @@
+#!/bin/sh -
+#
+#      $NetBSD: MAKEDEV,v 1.1 2002/06/18 20:30:41 fvdl Exp $
+#
+# Copyright (c) 1990 The Regents of the University of California.
+# All rights reserved.
+#
+# Written and contributed by W. Jolitz 12/90
+#
+# Redistribution and use in source and binary forms are permitted provided
+# that: (1) source distributions retain this entire copyright notice and
+# comment, and (2) distributions including binaries display the following
+# acknowledgement:  ``This product includes software developed by the
+# University of California, Berkeley and its contributors'' in the
+# documentation or other materials provided with the distribution and in
+# all advertising materials mentioning features or use of this software.
+# Neither the name of the University nor the names of its contributors may
+# be used to endorse or promote products derived from this software without
+# specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+#      @(#)MAKEDEV     5.2 (Berkeley) 6/22/90
+#
+###########################################################################
+#
+#   PLEASE RUN "cd ../share/man/man8 ; perl5 MAKEDEV2manpage.pl"
+#   AFTER CHANGING THIS FILE, AND COMMIT THE UPDATED MANPAGE!
+#
+###########################################################################
+#
+# Device "make" file.  Valid arguments:
+#      all     makes all known devices, including local devices.
+#              Tries to make the 'standard' number of each type.
+#      floppy  devices to be put on install floppies
+#      ramdisk devices to be put into INSTALL kernel ramdisks.
+#      std     standard devices
+#      local   configuration specific devices
+#      usbs    make USB devices
+#      isdns   make ISDN devices
+#
+# Tapes:
+#      wt*     QIC-interfaced (e.g. not SCSI) 3M cartridge tape
+#      st*     SCSI tapes
+#
+# Disks:
+#      wd*     "winchester" disk drives (ST506,IDE,ESDI,RLL,...)
+#      fd*     "floppy" disk drives (3 1/2", 5 1/4")
+#      sd*     SCSI disks
+#      cd*     SCSI or ATAPI CD-ROM
+#      mcd*    Mitsumi CD-ROM
+#      vnd*    "file" pseudo-disks
+#      md*     memory pseudo-disk devices
+#      ccd*    contatenated disk devices
+#      raid*   RAIDframe disk devices
+#      ld*     Logical disk devices (e.g., hardware RAID)
+#      ed*     PS/2 ESDI disk devices
+#
+# Console ports:
+#      ttyv0   pccons
+#      ttyE*   wscons
+#
+# Pointing devices:
+#      mms*    Microsoft bus mouse
+#      lms*    Logitech bus mouse
+#      wsmouse* wscons mouse events
+#
+# Keyboard devices:
+#      wskbd*  wscons keyboard events
+#
+# Terminal ports:
+#      com*    standard PC COM ports                   (XXX)
+#      tty*    alias for PC COM ports, this is what the system really wants
+#      ttyCZ*  Cyclades-Z multiport serial boards.  Each "unit"
+#              makes 64 ports.
+#      ttyCY*  Cyclom-Y multiport serial boards. Each "unit" makes
+#              32 ports.
+#
+# Pseudo terminals:
+#      pty*    set of 62 master and slave pseudo terminals
+#      opty    first 16 ptys, to save inodes on install media
+#
+# Printers:
+#      lpt*    stock lp
+#      lpa*    interruptless lp
+#
+# USB devices:
+#      usb*    USB control devices
+#      uhid*   USB generic HID devices
+#      ulpt*   USB printer devices
+#      ugen*   USB generic devices
+#      urio*   USB Diamond Rio 500 devices
+#      uscanner*       USB scanners
+#      ttyU*   USB modems
+#
+# ISDN devices:
+#      isdn    communication between userland isdnd and kernel
+#      isdnctl control device
+#      isdnbchan* raw b-channel access
+#      isdntel*        telephony device
+#      isdntrc*        trace device
+#
+# Special purpose devices:
+#      clockctl clock control for non root users
+#      fd      file descriptors
+#      bpf*    packet filter
+#      cir*    Consumer IR
+#      ipl     IP filter
+#      irframe* IrDA physical frame
+#      random  Random number generator, see rnd(4)
+#      speaker pc speaker              (XXX - installed)
+#      lkm     loadable kernel modules interface
+#      audio*  audio devices
+#      apm     power management device
+#      tun*    network tunnel driver
+#      joy*    joystick device
+#      satlink* PlanetConnect satellite receiver driver
+#      scsibus* SCSI busses, see scsi(4), scsictl(8)
+#      ses*    SES/SAF-TE SCSI Devices
+#      ss*     SCSI scanner
+#      uk*     unknown SCSI device
+#      ch*     SCSI media changer
+#      cfs*    Coda file system device
+#      sysmon  System Monitoring hardware
+#      bktr    Brooktree 848/849/878/879 based TV cards
+#      iop*    I2O IOP control interface
+#      mlx*    Mylex DAC960 control interface
+#      mly*    Mylex AcceleRAID/eXtremeRAID control interface
+#      altq    ALTQ control interface
+#      vmegen* generic VME access
+#      wsfont* console font control
+#      wsmux*  wscons event multiplexor
+#      agp*    AGP GART devices
+#      pci*    PCI bus access devices
+#      dpti*   DPT/Adaptec RAID management interface
+#      radio*  radio devices
+#      nsmb*   SMB requester
+#
+
+dialin=0
+dialout=524288         # high bit of the minor number
+callunit=262144
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+umask 77
+
+# Check if we have fdesc mounted
+if [ -d fd ]; then
+       case "`df fd`" in
+       *fdesc*) nofdesc=false;;
+       *) nofdesc=true;;
+       esac
+else
+       nofdesc=true
+fi
+
+makedev()
+{
+
+for i
+do
+
+case $i in
+
+all)
+       makedev std wscons fd wt0 fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4
+       makedev tty0 tty1 tty2 tty3 pty0
+       makedev raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
+       makedev st0 st1 ch0 cd0 cd1 mcd0 vnd0 vnd1 lpa0 lpa1 lpa2
+       makedev bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
+       makedev lpt0 lpt1 lpt2 ttyv0 tun0 tun1 tun2 tun3 ipl
+       makedev ccd0 ccd1 ccd2 ccd3 md0 ss0 ch0 uk0 uk1 random
+       makedev speaker lkm mms0 lms0 joy0 joy1 apm local satlink0
+       makedev iop0 mlx0 mly0
+       makedev audio
+       makedev radio
+       makedev usbs
+       makedev isdns
+       makedev music rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
+       makedev scsibus0 scsibus1 scsibus2 scsibus3
+       makedev ld0 ld1 ld2 ld3
+       makedev sysmon
+       makedev bktr
+       makedev ttyCZ0 ttyCY0
+       makedev agp0
+       makedev pci0 pci1 pci2 pci3 pci4 pci5 pci6 pci7
+       makedev altq
+       makedev ed0 ed1
+       makedev cir0 cir1 irframe0 irframe1
+       makedev clockctl
+       makedev nsmb0 nsmb1 nsmb2 nsmb3
+       ;;
+
+audio)
+       makedev audio0 audio1 audio2 audio3
+       ln -fs sound0 sound
+       ln -fs audio0 audio
+       ln -fs mixer0 mixer
+       ln -fs audioctl0 audioctl
+       ;;
+
+radio)
+       makedev radio0 radio1
+       ln -fs radio0 radio
+       ;;
+
+floppy)
+       makedev std wt0 fd0 fd1 wd0 wd1 wd2 wd3 sd0 sd1 sd2 sd3 sd4 st0 st1
+       makedev tty0 tty1 tty2 cd0 cd1 mcd0 ttyv0 opty ld0 ld1 ld2 ld3 ed0 ed1
+       ;;
+
+ramdisk)
+       makedev floppy md0
+       ;;
+
+usbs)
+       makedev usb usb0 usb1 usb2 usb3 usb4 usb5 usb6 usb7
+       makedev uhid0 uhid1 uhid2 uhid3
+       makedev ulpt0 ulpt1
+       makedev ttyU0 ttyU1
+       makedev urio0
+       makedev uscanner0 uscanner1
+       makedev ugen0
+       ;;
+
+isdns)
+       makedev isdn isdnctl isdnbchan0 isdnbchan1 isdntel0 isdntel1 isdntrc0 isdntrc1
+       ;;
+
+std)
+       rm -f console drum mem kmem null zero io klog
+       mknod console           c 0 0
+       mknod drum              c 4 0   ; chmod 640 drum ; chgrp kmem drum
+       mknod kmem              c 2 1   ; chmod 640 kmem ; chgrp kmem kmem
+       mknod mem               c 2 0   ; chmod 640 mem ; chgrp kmem mem
+       mknod null              c 2 2   ; chmod 666 null
+       mknod zero              c 2 12  ; chmod 666 zero
+       mknod io                c 2 14  ; chmod 640 io ; chgrp kmem io
+       mknod klog              c 7 0   ; chmod 600 klog
+       if $nofdesc; then
+               rm -f tty stdin stdout stderr
+               mknod tty       c 1 0   ; chmod 666 tty
+               mknod stdin     c 22 0  ; chmod 666 stdin
+               mknod stdout    c 22 1  ; chmod 666 stdout
+               mknod stderr    c 22 2  ; chmod 666 stderr
+       fi
+       ;;
+
+usb*)
+       unit=${i#usb}
+       if [ "$unit" = "" ]; then
+           unit=255
+           usb=usb
+       else
+           usb=usb$unit
+       fi
+       major=55
+       rm -f $usb
+       mknod $usb c $major $unit
+       chmod 600 $usb
+       ;;
+
+uhid*)
+       unit=${i#uhid}
+       uhid=uhid$unit
+       major=56
+       rm -f $uhid
+       mknod $uhid c $major $unit
+       chmod 666 $uhid
+       ;;
+
+ulpt*)
+       unit=${i#ulpt}
+       ulpt=ulpt$unit
+       ulpn=ulpn$unit
+       major=57
+       rm -f $ulpt $ulpn
+       mknod $ulpt c $major $unit
+       mknod $ulpn c $major $(($unit + 64))
+       chmod 600 $ulpt $ulpn
+       ;;
+
+urio*)
+       unit=${i#urio}
+       urio=urio$unit
+       major=70
+       rm -f $urio
+       mknod $urio c $major $unit
+       chmod 666 $urio
+       ;;
+
+uscanner*)
+       unit=${i#uscanner}
+       uscanner=uscanner$unit
+       major=75



Home | Main Index | Thread Index | Old Index