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 Adaptec FSA RAID controllers, as often foun...



details:   https://anonhg.NetBSD.org/src/rev/36665a68ac6f
branches:  trunk
changeset: 526129:36665a68ac6f
user:      ad <ad%NetBSD.org@localhost>
date:      Fri Apr 26 02:05:07 2002 +0000

description:
Add a driver for Adaptec FSA RAID controllers, as often found in Dell
servers. Based on the FreeBSD/OpenBSD versions.

diffstat:

 distrib/sets/lists/man/mi        |     4 +-
 share/man/man4/Makefile          |     4 +-
 share/man/man4/aac.4             |   104 ++
 share/man/man4/ld.4              |     4 +-
 share/man/man4/pci.4             |     5 +-
 sys/arch/i386/conf/GENERIC       |     8 +-
 sys/arch/i386/conf/INSTALL       |     6 +-
 sys/arch/i386/conf/INSTALL_SMALL |     6 +-
 sys/arch/i386/conf/INSTALL_TINY  |     6 +-
 sys/conf/files                   |    10 +-
 sys/dev/DEVNAMES                 |     3 +-
 sys/dev/ic/aac.c                 |  1342 ++++++++++++++++++++++++++++++++++++++
 sys/dev/ic/aac_tables.h          |   120 +++
 sys/dev/ic/aacreg.h              |   742 +++++++++++++++++++++
 sys/dev/ic/aacvar.h              |   316 ++++++++
 sys/dev/ic/ld_aac.c              |   291 ++++++++
 sys/dev/pci/aac_pci.c            |   561 +++++++++++++++
 sys/dev/pci/files.pci            |     6 +-
 18 files changed, 3521 insertions(+), 17 deletions(-)

diffs (truncated from 3771 to 300 lines):

diff -r 74b2df277bcc -r 36665a68ac6f distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Fri Apr 26 01:26:49 2002 +0000
+++ b/distrib/sets/lists/man/mi Fri Apr 26 02:05:07 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.472 2002/04/23 19:41:31 bouyer Exp $
+# $NetBSD: mi,v 1.473 2002/04/26 02:05:08 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
@@ -434,6 +434,7 @@
 ./usr/share/man/cat1/zgrep.0                   man-util-catman
 ./usr/share/man/cat1/zmore.0                   man-util-catman
 ./usr/share/man/cat1/znew.0                    man-util-catman
+./usr/share/man/cat4/aac.0                     man-sys-catman
 ./usr/share/man/cat4/acorn26/arckbd.0          man-sys-catman
 ./usr/share/man/cat4/acorn26/arcwskbd.0                man-sys-catman
 ./usr/share/man/cat4/acorn26/arcwsmouse.0              man-sys-catman
@@ -2134,6 +2135,7 @@
 ./usr/share/man/man1/zgrep.1                   man-util-man
 ./usr/share/man/man1/zmore.1                   man-util-man
 ./usr/share/man/man1/znew.1                    man-util-man
+./usr/share/man/man4/aac.4                     man-sys-man
 ./usr/share/man/man4/acorn26/arckbd.4          man-sys-man
 ./usr/share/man/man4/acorn26/arcwskbd.4                man-sys-man
 ./usr/share/man/man4/acorn26/arcwsmouse.4              man-sys-man
diff -r 74b2df277bcc -r 36665a68ac6f share/man/man4/Makefile
--- a/share/man/man4/Makefile   Fri Apr 26 01:26:49 2002 +0000
+++ b/share/man/man4/Makefile   Fri Apr 26 02:05:07 2002 +0000
@@ -1,7 +1,7 @@
-#      $NetBSD: Makefile,v 1.257 2002/04/23 19:38:57 bouyer Exp $
+#      $NetBSD: Makefile,v 1.258 2002/04/26 02:05:07 ad Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/18/93
 
-MAN=   acphy.4 adv.4 adw.4 agp.4 ahb.4 ahc.4 amhphy.4 an.4 aria.4 \
+MAN=   aac.4 acphy.4 adv.4 adw.4 agp.4 ahb.4 ahc.4 amhphy.4 an.4 aria.4 \
        atalk.4 audio.4 audiocs.4 auich.4 autri.4 \
        auvia.4 awi.4 bba.4 bha.4 bktr.4 bpf.4 bmtphy.4 brgphy.4 \
        bridge.4 cac.4 cardbus.4 ccd.4 cd.4 cfb.4 ch.4 clcs.4 clct.4 \
diff -r 74b2df277bcc -r 36665a68ac6f share/man/man4/aac.4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man4/aac.4      Fri Apr 26 02:05:07 2002 +0000
@@ -0,0 +1,104 @@
+.\"    $NetBSD: aac.4,v 1.1 2002/04/26 02:05:07 ad Exp $
+.\"
+.\" Copyright (c) 2000 Scott Long
+.\" All rights reserved.
+.\"
+.\" 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.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
+.\"
+.\" from FreeBSD: aac.4,v 1.18 2001/09/27 21:52:42 scottl Exp
+.Dd April 26, 2002
+.Dt AAC 4
+.Os
+.Sh NAME
+.Nm aac
+.Nd Adaptec AdvancedRAID Controller driver
+.Sh SYNOPSIS
+.Cd "aac* at pci? dev ? function ?"
+.Cd "ld* at aac? unit ?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for the Adaptec AAC family of SCSI RAID controllers.
+These controllers support RAID 0, 1, 5, 10, and volume sets.
+They have four channels in the add-in version
+or 1-2 channels in the motherboard integrated version,
+and are most often found relabeled by Dell or Hewlett-Packard.
+Supported controllers include:
+.Pp
+.Bl -bullet -compact
+.It
+Adaptec AAC-364
+.It
+Adaptec SCSI RAID 2120S
+.It
+Adaptec SCSI RAID 2200S
+.It
+Adaptec SCSI RAID 5400S
+.It
+Dell PERC 2/Si
+.It
+Dell PERC 2/QC
+.It
+Dell PERC 3/Di
+.It
+Dell PERC 3/Si
+.It
+HP NetRAID 4M
+.Pp
+.El
+Access to RAID containers is available via the
+.Nm ld
+device driver.
+Individual drives cannot be accessed unless they are part of a container
+or volume set, and non-fixed disks cannot be accessed.
+Containers can be configured by using either the on-board BIOS utility of
+the card.
+.Sh DIAGNOSTICS
+The adapter can send status and alert messages asynchronously to the driver.
+These messages are printed on the system console.
+.Sh SEE ALSO
+.Xr intro 4 ,
+.Xr ld 4
+.Sh HISTORY
+The
+.Nm
+driver first appeared in
+.Nx 1.6 .
+.Sh BUGS
+This driver is not compatible with controllers that have version 1.x firmware.
+The firmware version is the same as the kernel version printed in the BIOS
+POST and driver attach messages.
+.Sh AUTHORS
+Mike Smith
+.Aq msmith%freebsd.org@localhost
+and
+Scott Long
+.Aq scottl%freebsd.org@localhost
+wrote the
+.Nm
+driver for
+.Fx ,
+and
+Andrew Doran
+.Aq ad%netbsd.org@localhost
+ported it to
+.Nx .
diff -r 74b2df277bcc -r 36665a68ac6f share/man/man4/ld.4
--- a/share/man/man4/ld.4       Fri Apr 26 01:26:49 2002 +0000
+++ b/share/man/man4/ld.4       Fri Apr 26 02:05:07 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ld.4,v 1.7 2002/04/22 21:05:20 ad Exp $
+.\"    $NetBSD: ld.4,v 1.8 2002/04/26 02:05:07 ad Exp $
 .\"
 .\" Copyright (c) 2000 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -41,6 +41,7 @@
 .Nm ld
 .Nd logical disk driver
 .Sh SYNOPSIS
+.Cd ld* at aac? unit ?
 .Cd ld* at cac? unit ?
 .Cd ld* at icp? unit ?
 .Cd ld* at iop? tid ?
@@ -67,6 +68,7 @@
 .El
 .Sh SEE ALSO
 .Xr cac 4 ,
+.Xr aac 4 ,
 .Xr icp 4 ,
 .Xr intro 4 ,
 .Xr iop 4 ,
diff -r 74b2df277bcc -r 36665a68ac6f share/man/man4/pci.4
--- a/share/man/man4/pci.4      Fri Apr 26 01:26:49 2002 +0000
+++ b/share/man/man4/pci.4      Fri Apr 26 02:05:07 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pci.4,v 1.66 2002/04/22 21:05:19 ad Exp $
+.\"    $NetBSD: pci.4,v 1.67 2002/04/26 02:05:07 ad Exp $
 .\"
 .\" Copyright (c) 1997 Jason R. Thorpe.  All rights reserved.
 .\" Copyright (c) 1997 Jonathan Stone
@@ -120,6 +120,8 @@
 .El
 .Ss Disk and tape controllers
 .Bl -tag -width pcdisplay -offset indent
+.It aac
+The Adaptec AAC family of RAID controllers.
 .It cac
 Compaq array controllers.
 .It icp
@@ -322,6 +324,7 @@
 VGA graphics boards.
 .El
 .Sh SEE ALSO
+.Xr aac 4 ,
 .Xr adv 4 ,
 .Xr adw 4 ,
 .Xr agp 4 ,
diff -r 74b2df277bcc -r 36665a68ac6f sys/arch/i386/conf/GENERIC
--- a/sys/arch/i386/conf/GENERIC        Fri Apr 26 01:26:49 2002 +0000
+++ b/sys/arch/i386/conf/GENERIC        Fri Apr 26 02:05:07 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.490 2002/04/25 15:22:44 wiz Exp $
+# $NetBSD: GENERIC,v 1.491 2002/04/26 02:05:10 ad Exp $
 #
 # GENERIC machine description file
 # 
@@ -22,7 +22,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.490 $"
+#ident                 "GENERIC-$Revision: 1.491 $"
 
 maxusers       32              # estimated number of users
 
@@ -513,6 +513,7 @@
 
 
 # RAID controllers and devices
+aac*   at pci? dev ? function ?        # Adaptec AAC family
 cac*   at eisa? slot ?                 # Compaq EISA array controllers
 cac*   at pci? dev ? function ?        # Compaq PCI array controllers
 icp*   at pci? dev ? function ?        # ICP-Vortex GDT & Intel RAID
@@ -520,7 +521,8 @@
 mlx*   at eisa? slot ?                 # Mylex DAC960 & DEC SWXCR family
 twe*   at pci? dev ? function ?        # 3ware Escalade RAID controllers
 
-ld*    at cac? unit ?                  # logical disk devices
+ld*    at aac? unit ?                  # logical disk devices
+ld*    at cac? unit ?
 ld*    at icp? unit ?
 ld*    at twe? unit ?
 ld*    at mlx? unit ?
diff -r 74b2df277bcc -r 36665a68ac6f sys/arch/i386/conf/INSTALL
--- a/sys/arch/i386/conf/INSTALL        Fri Apr 26 01:26:49 2002 +0000
+++ b/sys/arch/i386/conf/INSTALL        Fri Apr 26 02:05:07 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: INSTALL,v 1.195 2002/04/25 15:06:29 atatat Exp $
+#      $NetBSD: INSTALL,v 1.196 2002/04/26 02:05:10 ad Exp $
 #
 #      INSTALL - Installation kernel.
 #
@@ -370,6 +370,7 @@
 
 
 # RAID controllers and devices
+aac*   at pci? dev ? function ?        # Adaptec AAC family
 cac*   at eisa? slot ?                 # Compaq EISA array controllers
 cac*   at pci? dev ? function ?        # Compaq PCI array controllers
 icp*   at pci? dev ? function ?        # ICP-Vortex GDT & Intel RAID
@@ -377,7 +378,8 @@
 mlx*   at eisa? slot ?                 # Mylex DAC960 & DEC SWXCR family
 twe*   at pci? dev ? function ?        # 3ware Escalade RAID controllers
 
-ld*    at cac? unit ?                  # logical disk devices
+ld*    at aac? unit ?                  # logical disk devices
+ld*    at cac? unit ?
 ld*    at icp? unit ?
 ld*    at twe? unit ?
 ld*    at mlx? unit ?
diff -r 74b2df277bcc -r 36665a68ac6f sys/arch/i386/conf/INSTALL_SMALL
--- a/sys/arch/i386/conf/INSTALL_SMALL  Fri Apr 26 01:26:49 2002 +0000
+++ b/sys/arch/i386/conf/INSTALL_SMALL  Fri Apr 26 02:05:07 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: INSTALL_SMALL,v 1.84 2002/04/25 15:06:29 atatat Exp $
+#      $NetBSD: INSTALL_SMALL,v 1.85 2002/04/26 02:05:11 ad Exp $
 #
 #      INSTALL_SMALL - Small Installation kernel.
 #
@@ -326,6 +326,7 @@
 #uk*   at scsibus? target ? lun ?      # SCSI unknown
 
 # RAID controllers and devices
+#aac*  at pci? dev ? function ?        # Adaptec AAC family
 #cac*  at eisa? slot ?                 # Compaq EISA array controllers
 #cac*  at pci? dev ? function ?        # Compaq PCI array controllers
 #icp*  at pci? dev ? function ?        # ICP-Vortex GDT & Intel RAID
@@ -333,7 +334,8 @@
 #mlx*  at eisa? slot ?                 # Mylex DAC960 & DEC SWXCR family
 #twe*  at pci? dev ? function ?        # 3ware Escalade RAID controllers
 
-#ld*   at cac? unit ?                  # logical disk devices
+#ld*   at aac? unit ?                  # logical disk devices
+#ld*   at cac? unit ?
 #ld*   at icp? unit ?
 #ld*   at twe? unit ?
 #ld*   at mlx? unit ?
diff -r 74b2df277bcc -r 36665a68ac6f sys/arch/i386/conf/INSTALL_TINY
--- a/sys/arch/i386/conf/INSTALL_TINY   Fri Apr 26 01:26:49 2002 +0000
+++ b/sys/arch/i386/conf/INSTALL_TINY   Fri Apr 26 02:05:07 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: INSTALL_TINY,v 1.52 2002/04/25 15:06:29 atatat Exp $
+#      $NetBSD: INSTALL_TINY,v 1.53 2002/04/26 02:05:11 ad Exp $
 #
 #      INSTALL_TINY - Tiny Installation kernel, suitable for 4M machines.
 #
@@ -327,6 +327,7 @@
 
 
 # RAID controllers and devices



Home | Main Index | Thread Index | Old Index