Source-Changes-HG archive

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

[src/trunk]: src Add a driver for the Mylex DAC960 family (including DEC SWXCR).



details:   https://anonhg.NetBSD.org/src/rev/c7b57076332d
branches:  trunk
changeset: 503278:c7b57076332d
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Feb 04 17:05:11 2001 +0000

description:
Add a driver for the Mylex DAC960 family (including DEC SWXCR).

diffstat:

 distrib/sets/lists/comp/mi          |     4 +-
 distrib/sets/lists/man/mi           |     4 +-
 etc/etc.alpha/MAKEDEV               |    10 +-
 etc/etc.i386/MAKEDEV                |    12 +-
 share/man/man4/Makefile             |     6 +-
 share/man/man4/ld.4                 |     8 +-
 share/man/man4/mlx.4                |   100 +
 share/man/man4/pci.4                |     5 +-
 share/man/man8/man8.alpha/MAKEDEV.8 |     5 +-
 share/man/man8/man8.i386/MAKEDEV.8  |     5 +-
 sys/arch/alpha/alpha/conf.c         |     8 +-
 sys/arch/alpha/conf/ALPHA           |     6 +-
 sys/arch/alpha/conf/GENERIC         |     6 +-
 sys/arch/alpha/conf/INSTALL         |     4 +-
 sys/arch/i386/conf/GENERIC          |    10 +-
 sys/arch/i386/conf/INSTALL          |     8 +-
 sys/arch/i386/conf/INSTALL_SMALL    |     9 +-
 sys/arch/i386/conf/INSTALL_TINY     |     9 +-
 sys/arch/i386/i386/conf.c           |     6 +-
 sys/conf/files                      |     9 +-
 sys/dev/ic/Makefile                 |     8 +-
 sys/dev/ic/ld_mlx.c                 |   278 ++++
 sys/dev/ic/mlx.c                    |  2174 +++++++++++++++++++++++++++++++++++
 sys/dev/ic/mlxio.h                  |    96 +
 sys/dev/ic/mlxreg.h                 |   532 ++++++++
 sys/dev/ic/mlxvar.h                 |   373 ++++++
 sys/dev/pci/files.pci               |     6 +-
 sys/dev/pci/mlx_pci.c               |   619 +++++++++
 28 files changed, 4280 insertions(+), 40 deletions(-)

diffs (truncated from 4779 to 300 lines):

diff -r fc5ab6c9b54f -r c7b57076332d distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Sun Feb 04 16:59:22 2001 +0000
+++ b/distrib/sets/lists/comp/mi        Sun Feb 04 17:05:11 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.307 2001/02/03 02:44:15 jwise Exp $
+#      $NetBSD: mi,v 1.308 2001/02/04 17:05:13 ad Exp $
 ./sys                          comp-sysutil-root
 ./usr/bin/addr2line            comp-debug-bin
 ./usr/bin/ar                   comp-util-bin
@@ -210,6 +210,8 @@
 ./usr/include/dev/ic/mc6845reg.h       comp-c-include
 ./usr/include/dev/ic/midwayreg.h       comp-c-include
 ./usr/include/dev/ic/midwayvar.h       comp-c-include
+./usr/include/dev/ic/mlxio.h           comp-c-include
+./usr/include/dev/ic/mlxvar.h          comp-c-include
 ./usr/include/dev/ic/ncr5380reg.h      comp-c-include
 ./usr/include/dev/ic/ncr5380var.h      comp-c-include
 ./usr/include/dev/ic/ncr53c400reg.h    comp-c-include
diff -r fc5ab6c9b54f -r c7b57076332d distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Sun Feb 04 16:59:22 2001 +0000
+++ b/distrib/sets/lists/man/mi Sun Feb 04 17:05:11 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.318 2001/02/02 22:01:19 is Exp $
+# $NetBSD: mi,v 1.319 2001/02/04 17:05:14 ad Exp $
 ./usr/share/info/am-utils.info                 man-amd-info
 ./usr/share/info/as.info                       man-computil-info
 ./usr/share/info/awk.info                      man-util-info
@@ -672,6 +672,7 @@
 ./usr/share/man/cat4/mii.0                     man-sys-catman
 ./usr/share/man/cat4/mixer.0                   man-sys-catman
 ./usr/share/man/cat4/mk48txx.0                 man-sys-catman
+./usr/share/man/cat4/mlx.0                     man-sys-catman
 ./usr/share/man/cat4/mpu.0                     man-sys-catman
 ./usr/share/man/cat4/mtio.0                    man-sys-catman
 ./usr/share/man/cat4/music.0                   man-sys-catman
@@ -2143,6 +2144,7 @@
 ./usr/share/man/man4/mii.4                     man-sys-man
 ./usr/share/man/man4/mixer.4                   man-sys-man
 ./usr/share/man/man4/mk48txx.4                 man-sys-man
+./usr/share/man/man4/mlx.4                     man-sys-man
 ./usr/share/man/man4/mpu.4                     man-sys-man
 ./usr/share/man/man4/mtio.4                    man-sys-man
 ./usr/share/man/man4/music.4                   man-sys-man
diff -r fc5ab6c9b54f -r c7b57076332d etc/etc.alpha/MAKEDEV
--- a/etc/etc.alpha/MAKEDEV     Sun Feb 04 16:59:22 2001 +0000
+++ b/etc/etc.alpha/MAKEDEV     Sun Feb 04 17:05:11 2001 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV,v 1.67 2001/01/08 06:21:19 martin Exp $
+#      $NetBSD: MAKEDEV,v 1.68 2001/02/04 17:05:14 ad Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -114,6 +114,7 @@
 #      ss*     SCSI scanner
 #      tun*    network tunnel driver
 #      uk*     SCSI unknown
+#      mlx*    Mylex DAC960 control interface
 
 dialin=0
 dialout=524288
@@ -502,6 +503,13 @@
        chmod 640 lkm
        ;;
 
+mlx*)
+       unit=${i#mlx};
+       rm -f mlx$unit
+       mknod mlx$unit c 65 $unit
+       chmod 600 mlx$unit
+       ;;
+
 wskbd*)
        unit=${i#wskbd}
        wskbd=wskbd$unit
diff -r fc5ab6c9b54f -r c7b57076332d etc/etc.i386/MAKEDEV
--- a/etc/etc.i386/MAKEDEV      Sun Feb 04 16:59:22 2001 +0000
+++ b/etc/etc.i386/MAKEDEV      Sun Feb 04 17:05:11 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.134 2001/01/08 06:21:19 martin Exp $
+#      $NetBSD: MAKEDEV,v 1.135 2001/02/04 17:05:14 ad Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -121,6 +121,7 @@
 #      sysmon  System Monitoring hardware
 #      bktr    Brooktree 848/849/878/879 based TV cards
 #      iop*    I2O IOP control interface
+#      mlx*    Mylex DAC960 control interface
 #
 
 dialin=0
@@ -155,7 +156,7 @@
        sh $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
        sh $0 lpt0 lpt1 lpt2 ttyv0 tun0 tun1 tun2 tun3 ipl
        sh $0 ccd0 ccd1 ccd2 ccd3 md0 ss0 ch0 uk0 uk1 random
-       sh $0 speaker lkm mms0 lms0 pms0 joy0 joy1 apm local satlink0 iop0
+       sh $0 speaker lkm mms0 lms0 pms0 joy0 joy1 apm local satlink0 iop0 mlx0
        sh $0 audio
        sh $0 usbs
        sh $0 isdn
@@ -776,6 +777,13 @@
        chmod 600 iop$unit
        ;;
 
+mlx*)
+       unit=${i#mlx};
+       rm -f mlx$unit
+       mknod mlx$unit c 78 $unit
+       chmod 600 mlx$unit
+       ;;
+
 i4b)
        rm -f i4b
        mknod i4b c 50 0
diff -r fc5ab6c9b54f -r c7b57076332d share/man/man4/Makefile
--- a/share/man/man4/Makefile   Sun Feb 04 16:59:22 2001 +0000
+++ b/share/man/man4/Makefile   Sun Feb 04 17:05:11 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.182 2001/01/31 04:32:18 augustss Exp $
+#      $NetBSD: Makefile,v 1.183 2001/02/04 17:05:15 ad Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/18/93
 
 MAN=   adv.4 adw.4 ahb.4 ahc.4 an.4 aria.4 atalk.4 audio.4 auich.4 auvia.4 \
@@ -9,8 +9,8 @@
        icsphy.4 idp.4 ifmedia.4 inet.4 inphy.4 intersil7170.4 ioat.4 \
        iop.4 iophy.4 iopsp.4 ip.4 ipip.4 ipkdb.4 iso.4 isp.4 \
        lc.4 ld.4 lkm.4 lo.4 lxtphy.4 \
-       mainbus.4 mbe.4 mca.4 md.4 mhzc.4 midi.4 mii.4 mk48txx.4 mpu.4 \
-       mtio.4 ncr.4 ne.4 neo.4 netintro.4 ns.4 nsip.4 \
+       mainbus.4 mbe.4 mca.4 md.4 mhzc.4 midi.4 mii.4 mk48txx.4 mlx.4 \
+       mpu.4 mtio.4 ncr.4 ne.4 neo.4 netintro.4 ns.4 nsip.4 \
        nsphy.4 ntwoc.4 null.4 opl.4 options.4 pas.4 pcdisplay.4 \
        pciide.4 pckbc.4 pckbd.4 pcppi.4 pcscp.4 pcweasel.4 pms.4 ppp.4 \
        pty.4 puc.4 qsphy.4 raid.4 ray.4 rnd.4 route.4 \
diff -r fc5ab6c9b54f -r c7b57076332d share/man/man4/ld.4
--- a/share/man/man4/ld.4       Sun Feb 04 16:59:22 2001 +0000
+++ b/share/man/man4/ld.4       Sun Feb 04 17:05:11 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ld.4,v 1.1 2000/11/26 17:44:12 ad Exp $
+.\"    $NetBSD: ld.4,v 1.2 2001/02/04 17:05:15 ad Exp $
 .\"
 .\" Copyright (c) 2000 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -43,6 +43,7 @@
 .Sh SYNOPSIS
 .Cd ld* at cac? unit ?
 .Cd ld* at iop? tid ?
+.Cd ld* at mlx? unit ?
 .Cd ld* at twe? unit ?
 .Sh DESCRIPTION
 The
@@ -67,6 +68,7 @@
 .Xr intro 4 ,
 .Xr cac 4 ,
 .Xr iop 4 ,
+.Xr mlx 4 ,
 .Xr twe 4
 .Sh AUTHOR
 The
@@ -79,8 +81,8 @@
 driver first appeared in
 .Nx 1.6 .
 .Sh BUGS
-This driver is in reality a nasty hack intended to reduce code size
-and maintenace overheads.
+This driver is in reality a kludge intended to reduce code size and
+maintenace overheads.
 .Pp
 The capacity and geometry of units as accessed through the
 .Nm
diff -r fc5ab6c9b54f -r c7b57076332d share/man/man4/mlx.4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man4/mlx.4      Sun Feb 04 17:05:11 2001 +0000
@@ -0,0 +1,100 @@
+.\"    $NetBSD: mlx.4,v 1.1 2001/02/04 17:05:15 ad Exp $
+.\"
+.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Andrew Doran.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"        This product includes software developed by the NetBSD
+.\"        Foundation, Inc. and its contributors.
+.\" 4. Neither the name of The NetBSD Foundation 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 BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd January 10, 2000
+.Dt MLX 4
+.Os
+.Sh NAME
+.Nm mlx
+.Nd
+.Tn Mylex DAC960 RAID controller driver
+.Sh SYNOPSIS
+.Cd "mlx* at pci? dev ? function ?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for the
+.Tn Mylex DAC960
+family of RAID controllers, including OEM versions from
+.Tn Compaq
+and
+.Tn DEC .
+Attached disk arrays are supported by the
+.Nm ld
+driver.
+.Pp
+The
+.Nm
+driver will warn if a controller firmware upgrade may be necessary, although
+as a matter of course, the latest available firmware should always be used.
+.Sh HARDWARE
+Supported controllers include:
+.Pp
+.Bl -tag -width -offset indent -compact
+.It Tn DEC/Compaq SWXCR
+.It Tn Mylex DAC960P
+.It Tn Mylex DAC960PD
+.It Tn Mylex DAC960PG
+.It Tn Mylex DAC960PJ
+.It Tn Mylex DAC960PL
+.It Tn Mylex DAC960PR
+.It Tn Mylex DAC960PRL
+.It Tn Mylex DAC960PT
+.It Tn Mylex DAC960PTL0
+.It Tn Mylex DAC960PTL1
+.It Tn Mylex AcceleRAID 150
+.It Tn Mylex AcceleRAID 250
+.It Tn Mylex eXtremeRAID 1100
+.El
+.Sh SEE ALSO
+.Xr intro 4 ,
+.Xr ld 4 ,
+.Xr mlxctl 8
+.Sh AUTHOR
+The
+.Nm
+driver was written by
+by Andrew Doran
+.Aq ad%netbsd.org@localhost .
+It is derived from the
+.Fx
+driver of the same name, written by Micheal Smith
+.Aq msmith%freebsd.org@localhost .
+.Sh HISTORY
+The
+.Nm mlx
+driver first appeared in
+.Nx 1.6 .
diff -r fc5ab6c9b54f -r c7b57076332d share/man/man4/pci.4
--- a/share/man/man4/pci.4      Sun Feb 04 16:59:22 2001 +0000
+++ b/share/man/man4/pci.4      Sun Feb 04 17:05:11 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pci.4,v 1.42 2001/01/22 01:28:54 augustss Exp $
+.\"    $NetBSD: pci.4,v 1.43 2001/02/04 17:05:14 ad Exp $
 .\"
 .\" Copyright (c) 1997 Jason R. Thorpe.  All rights reserved.
 .\" Copyright (c) 1997 Jonathan Stone
@@ -119,6 +119,8 @@
 .Bl -tag -width pcdisplay -offset indent
 .It cac
 Compaq array controllers.
+.It mlx
+Mylex DAC960 and DEC SWXCR RAID controllers.
 .It pciide
 IDE disk controllers.
 .It twe
@@ -305,6 +307,7 @@
 .Xr isp 4 ,
 .Xr le 4 ,
 .Xr lmc 4 ,
+.Xr mlx 4 ,



Home | Main Index | Thread Index | Old Index