diff options
author | dufault <dufault@FreeBSD.org> | 1995-04-28 00:51:40 +0000 |
---|---|---|
committer | dufault <dufault@FreeBSD.org> | 1995-04-28 00:51:40 +0000 |
commit | 6702bdcc1ba2ea51bb08f3c1785a6f5da76b017d (patch) | |
tree | b04da640a66a433a452ccf805eb30581306a748f /etc/etc.i386 | |
parent | a7372e7b99b33efab9bd9df0d18d63bdb4f486a5 (diff) | |
download | FreeBSD-src-6702bdcc1ba2ea51bb08f3c1785a6f5da76b017d.zip FreeBSD-src-6702bdcc1ba2ea51bb08f3c1785a6f5da76b017d.tar.gz |
Add National Instruments "LabPC" driver
Diffstat (limited to 'etc/etc.i386')
-rw-r--r-- | etc/etc.i386/MAKEDEV | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 10970eb..224d697 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/MAKEDEV @@ -63,6 +63,11 @@ # # Call units: # +# SCSI devices (other than CD-ROM, tape and disk) +# uk* "unknown" device (supports ioctl calls only) +# worm* WORM driver +# pt* Processor Type (HP scanner, as one example) +# # Special purpose devices: # bpf* packet filter # speaker pc speaker @@ -76,8 +81,9 @@ # tun Tunneling IP device # spigot Video Spigot video aquisition card # isdn* ISDN devices +# labpc* National Instrument's Lab-PC and LAB-PC+ # -# $Id: MAKEDEV,v 1.83 1995/04/23 12:02:21 ache Exp $ +# $Id: MAKEDEV,v 1.84 1995/04/26 08:07:30 bde Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -858,6 +864,52 @@ isdn*) esac ;; +# dufault@hda.com: If I do much more work on other A-D boards +# then eventually we'll have a "ad" and "dio" interface and some of these +# "labpcaio" ones will be gone. +# labpcaio: D-A and A-D. +# labpcdio: Digital in and Digital out. +# +labpc*) + umask 7 + case $i in + labpcaio*) + name=labpcaio + unit=`expr $i : 'labpcaio\(.*\)'` + all="0 1 2 3 4 5 6 7" + offset=0 + ;; + labpcdio*) + name=labpcdio + unit=`expr $i : 'labpcdio\(.*\)'` + all="0 1 2 3" + offset=128 + ;; + *) + echo "Don't understand that labpc name" + exit + ;; + esac + if [ "X${unit}" = "X" ]; then + unit=all + fi + case $unit in + 0|1|2|3|4|5|6|7) + mknod $name$unit c 66 `expr $offset + $unit ` + ;; + all) + for i in $all + do + mknod $name$i c 66 `expr $offset + $i ` + done + ;; + *) + echo "No such LabPC unit: $unit" + ;; + esac + umask 77 + ;; + local) umask 0 # XXX should be elsewhere sh MAKEDEV.local |