head	1.9;
access;
symbols
	RELENG_8_4:1.9.0.2
	RELENG_9_1_0_RELEASE:1.8.16.1.4.2
	RELENG_9_1:1.8.16.1.0.4
	RELENG_9_1_BP:1.8.16.1
	RELENG_8_3_0_RELEASE:1.8.10.1.8.1
	RELENG_8_3:1.8.10.1.0.8
	RELENG_8_3_BP:1.8.10.1
	RELENG_9_0_0_RELEASE:1.8.16.1.2.1
	RELENG_9_0:1.8.16.1.0.2
	RELENG_9_0_BP:1.8.16.1
	RELENG_9:1.8.0.16
	RELENG_9_BP:1.8
	RELENG_7_4_0_RELEASE:1.8.14.1
	RELENG_8_2_0_RELEASE:1.8.10.1.6.1
	RELENG_7_4:1.8.0.14
	RELENG_7_4_BP:1.8
	RELENG_8_2:1.8.10.1.0.6
	RELENG_8_2_BP:1.8.10.1
	RELENG_8_1_0_RELEASE:1.8.10.1.4.1
	RELENG_8_1:1.8.10.1.0.4
	RELENG_8_1_BP:1.8.10.1
	RELENG_7_3_0_RELEASE:1.8.12.1
	RELENG_7_3:1.8.0.12
	RELENG_7_3_BP:1.8
	RELENG_8_0_0_RELEASE:1.8.10.1.2.1
	RELENG_8_0:1.8.10.1.0.2
	RELENG_8_0_BP:1.8.10.1
	RELENG_8:1.8.0.10
	RELENG_8_BP:1.8
	RELENG_7_2_0_RELEASE:1.8.8.1
	RELENG_7_2:1.8.0.8
	RELENG_7_2_BP:1.8
	RELENG_7_1_0_RELEASE:1.8.6.1
	RELENG_6_4_0_RELEASE:1.4.2.2.4.1
	RELENG_7_1:1.8.0.6
	RELENG_7_1_BP:1.8
	RELENG_6_4:1.4.2.2.0.4
	RELENG_6_4_BP:1.4.2.2
	RELENG_7_0_0_RELEASE:1.8
	RELENG_6_3_0_RELEASE:1.4.2.2
	RELENG_7_0:1.8.0.4
	RELENG_7_0_BP:1.8
	RELENG_6_3:1.4.2.2.0.2
	RELENG_6_3_BP:1.4.2.2
	RELENG_7:1.8.0.2
	RELENG_7_BP:1.8
	RELENG_6_2_0_RELEASE:1.4.2.1
	RELENG_6_2:1.4.2.1.0.4
	RELENG_6_2_BP:1.4.2.1
	RELENG_5_5_0_RELEASE:1.3.2.2
	RELENG_5_5:1.3.2.2.0.2
	RELENG_5_5_BP:1.3.2.2
	RELENG_6_1_0_RELEASE:1.4.2.1
	RELENG_6_1:1.4.2.1.0.2
	RELENG_6_1_BP:1.4.2.1
	RELENG_6_0_0_RELEASE:1.4
	RELENG_6_0:1.4.0.4
	RELENG_6_0_BP:1.4
	RELENG_6:1.4.0.2
	RELENG_6_BP:1.4
	RELENG_5_4_0_RELEASE:1.3
	RELENG_5_4:1.3.0.6
	RELENG_5_4_BP:1.3
	RELENG_4_11_0_RELEASE:1.1.2.3
	RELENG_4_11:1.1.2.3.0.4
	RELENG_4_11_BP:1.1.2.3
	RELENG_5_3_0_RELEASE:1.3
	RELENG_5_3:1.3.0.4
	RELENG_5_3_BP:1.3
	RELENG_5:1.3.0.2
	RELENG_5_BP:1.3
	RELENG_4_10_0_RELEASE:1.1.2.3
	RELENG_4_10:1.1.2.3.0.2
	RELENG_4_10_BP:1.1.2.3
	RELENG_4:1.1.0.2;
locks; strict;
comment	@# @;


1.9
date	2012.11.17.01.53.01;	author svnexp;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2007.05.09.04.16.31;	author scottl;	state Exp;
branches
	1.8.2.1
	1.8.6.1
	1.8.8.1
	1.8.10.1
	1.8.12.1
	1.8.14.1
	1.8.16.1;
next	1.7;

1.7
date	2006.02.18.23.49.28;	author yar;	state Exp;
branches;
next	1.6;

1.6
date	2005.11.08.22.51.43;	author vkashyap;	state Exp;
branches;
next	1.5;

1.5
date	2005.08.10.04.01.21;	author obrien;	state Exp;
branches;
next	1.4;

1.4
date	2005.04.12.22.07.11;	author vkashyap;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2004.04.10.02.41.22;	author vkashyap;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2004.04.10.02.00.47;	author scottl;	state Exp;
branches;
next	1.1;

1.1
date	2004.03.30.03.46.00;	author vkashyap;	state Exp;
branches
	1.1.2.1;
next	;

1.9.2.1
date	2012.11.17.01.53.01;	author svnexp;	state dead;
branches;
next	1.9.2.2;

1.9.2.2
date	2013.03.28.13.05.24;	author svnexp;	state Exp;
branches;
next	;

1.8.2.1
date	2012.11.17.08.06.58;	author svnexp;	state Exp;
branches;
next	;

1.8.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.8.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.8.10.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.8.10.1.2.1
	1.8.10.1.4.1
	1.8.10.1.6.1
	1.8.10.1.8.1;
next	1.8.10.2;

1.8.10.2
date	2012.11.17.10.36.58;	author svnexp;	state Exp;
branches;
next	;

1.8.10.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.8.10.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.8.10.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.8.10.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.8.10.1.8.2;

1.8.10.1.8.2
date	2012.11.17.08.25.34;	author svnexp;	state Exp;
branches;
next	;

1.8.12.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.8.14.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.8.14.2;

1.8.14.2
date	2012.11.17.08.17.28;	author svnexp;	state Exp;
branches;
next	;

1.8.16.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.8.16.1.2.1
	1.8.16.1.4.1;
next	1.8.16.2;

1.8.16.2
date	2012.11.17.11.37.18;	author svnexp;	state Exp;
branches;
next	;

1.8.16.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.8.16.1.2.2;

1.8.16.1.2.2
date	2012.11.17.08.37.15;	author svnexp;	state Exp;
branches;
next	;

1.8.16.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.8.16.1.4.2;

1.8.16.1.4.2
date	2012.11.17.08.48.06;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	2005.12.07.18.18.06;	author vkashyap;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2007.05.19.17.08.27;	author scottl;	state Exp;
branches
	1.4.2.2.4.1;
next	1.4.2.3;

1.4.2.3
date	2012.11.17.07.44.27;	author svnexp;	state Exp;
branches;
next	;

1.4.2.2.4.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.3.2.1
date	2005.05.04.19.26.30;	author vkashyap;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2005.12.07.18.20.38;	author vkashyap;	state Exp;
branches;
next	;

1.1.2.1
date	2004.04.07.20.20.07;	author vkashyap;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2004.04.10.02.02.27;	author scottl;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2004.04.10.02.46.27;	author vkashyap;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2012.11.17.07.26.36;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
#
# Copyright (c) 2004-06 Applied Micro Circuits Corporation.
# 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.
#

#
# 3ware driver for 9000 series storage controllers.
#
# Author: Vinod Kashyap
# Modifications by: Adam Radford
#

KMOD = twa
.PATH: ${.CURDIR}/../../dev/${KMOD}
SRCS=  tw_osl_freebsd.c tw_osl_cam.c \
      tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \
      bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h

# Uncomment the following line to turn on Enclosure Services support.
#CFLAGS+= -DTWA_ENCLOSURE_SUPPORT

#CFLAGS+= -DTWA_DEBUG=0
CFLAGS+= -I${.CURDIR}/../../dev/${KMOD}

.include <bsd.kmod.mk>
@


1.9.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:05:24 +0000
@
text
@d1 47
@


1.9.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 47
# $FreeBSD: releng/8.4/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
#
# Copyright (c) 2004-06 Applied Micro Circuits Corporation.
# 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.
#

#
# 3ware driver for 9000 series storage controllers.
#
# Author: Vinod Kashyap
# Modifications by: Adam Radford
#

KMOD = twa
.PATH: ${.CURDIR}/../../dev/${KMOD}
SRCS=  tw_osl_freebsd.c tw_osl_cam.c \
      tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \
      bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h

# Uncomment the following line to turn on Enclosure Services support.
#CFLAGS+= -DTWA_ENCLOSURE_SUPPORT

#CFLAGS+= -DTWA_DEBUG=0
CFLAGS+= -I${.CURDIR}/../../dev/${KMOD}

.include <bsd.kmod.mk>
@


1.8
log
@Import version 3.60.03.006 of the TWA driver:

This patch does the following:

- Remove un-necessary code that is not even compiling into the driver
 under TW_OSL_NON_DMA_MEM_ALLOC_PER_REQUEST defines.
- Remove bundled firmware image and associated "files" entry for tw_cl_fwimg.c
- Remove bundled firmware flashing routines. We now have tw_update userspace
 FreeBSD controller flash utility.
- Fix driver crash on load due to shared interrupt.
- Fix 2 lock leaks for Giant lock.
- Fix CCB leak.
- Add support for 9650SE controllers.

Many thanks to 3Ware/AMCC for continuing to support FreeBSD.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.8.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
@


1.8.16.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.8.16.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
@


1.8.16.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.8.16.1.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
@


1.8.16.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.8.16.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
@


1.8.14.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.8.14.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
@


1.8.12.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.8.10.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.8.10.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
@


1.8.10.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.8.10.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/modules/twa/Makefile 169400 2007-05-09 04:16:32Z scottl $
@


1.8.10.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.8.10.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.8.10.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.8.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.8.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.7
log
@Style: Remove blank lines before EOF.

Tested by:	cvs diff -B
@
text
@d3 1
a3 1
# Copyright (c) 2004 Applied Micro Circuits Corporation.
d32 1
a34 23


#
# In the line following this comment, a value of 0 on the right hand
# side will not cause firmware to be bundled.  Change this value to 1
# to bundle the firmware with the driver, which may be flashed onto
# the controller, if the firmware on the controller is older than the
# one bundled, and needs to be upgraded.  The size of the driver will
# increase significantly (to over 500kB) if this option is selected.
# Typically, the firmware image bundled (in tw_cl_fwimg.c) corresponds
# to the latest controller architecture as of the date of the release.
# If the firmware for an earlier controller architecture needs to be
# flashed, the (older) driver with the appropriate firmware image
# bundled can be downloaded from the 3ware website, used to flash the
# firmware, and then the newer driver can be switched to.  Alternatively,
# the appropriate firmware image (tw_cl_fwimg.c) from the older driver can
# be used to re-build the newer driver.  In this case, the branch
# (TWA_CURRENT_FW_BRANCH_*) and build (TWA_CURRENT_FW_BUILD_*) numbers for
# the bundled firmware need to be appropriately updated in tw_cl_fwif.h
# before building the driver.
#
TWA_FLASH_FIRMWARE?=0

a46 5
.if $(TWA_FLASH_FIRMWARE) != 0
CFLAGS+= -DTWA_FLASH_FIRMWARE
SRCS+= tw_cl_fwimg.c
.endif

@


1.6
log
@twa corresponding to the 9.3.0.1 release on the 3ware website.  This driver has
support for the 9xxxSX controllers, along with the earlier 9xxxS series
controllers.
@
text
@a74 1

@


1.5
log
@Style cleanup.
@
text
@d26 1
d28 1
d30 1
d32 2
d35 2
d43 11
d59 6
a64 3
SRCS=	tw_osl_freebsd.c tw_osl_cam.c \
	tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \
	bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h
d71 1
a71 1
SRCS+=	tw_cl_fwimg.c
d75 1
@


1.4
log
@The latest release of the FreeBSD driver (twa) for
3ware's 9xxx series controllers.  This corresponds to
the 9.2 release (for FreeBSD 5.2.1) on the 3ware website.

Highlights of this release are:

1. The driver has been re-architected to use a "Common Layer"
    (all tw_cl* files), which is a consolidation of all OS-independent
    parts of the driver.  The FreeBSD OS specific portions of the
    driver go into an "OS Layer" (all tw_osl* files).
    This re-architecture is to achieve better maintainability, consistency
    of behavior across OS's, and better portability to new OS's (drivers
    for new OS's can be written by just adding an OS Layer that's specific
    to the OS, by complying to a "Common Layer Programming Interface" API.

2. The driver takes advantage of multiple processors.

3. The driver has a new firmware image bundled, the new features of which
   include Online Capacity Expansion and multi-lun support, among others.
   More details about 3ware's 9.2 release can be found here:
   http://www.3ware.com/download/Escalade9000Series/9.2/9.2_Release_Notes_Web.pdf

Since the Common Layer is used across OS's, the FreeBSD specific include
path for header files (/sys/dev/twa) is not part of the #include pre-processor
directive in any of the source files.  For being able to integrate twa into
the kernel despite this, Makefile.<arch> has been changed to add the include
path to CFLAGS.

Reviewed by: scottl
@
text
@d1 1
a25 3
#
#	$FreeBSD$
#
a26 1
#
a27 1
#
a28 1
#
a29 3


#
d40 4
a43 4
.PATH:	${.CURDIR}/../../dev/${KMOD}
SRCS = tw_osl_freebsd.c tw_osl_cam.c \
      tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \
      bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h
d45 2
a46 1
CFLAGS += -I${.CURDIR}/../../dev/${KMOD}
d49 2
a50 2
CFLAGS += -DTWA_FLASH_FIRMWARE
SRCS += tw_cl_fwimg.c
a52 2
#CFLAGS += -DTWA_DEBUG=0

a53 1

@


1.4.2.1
log
@MFC: twa corresponding to the 9.3.0.1 release on the 3ware website.  This driver
has support for the 9xxxSX controllers, along with the earlier 9xxxS series
controllers.
@
text
@a0 1
# $FreeBSD$
d26 2
a43 11
# Typically, the firmware image bundled (in tw_cl_fwimg.c) corresponds
# to the latest controller architecture as of the date of the release.
# If the firmware for an earlier controller architecture needs to be
# flashed, the (older) driver with the appropriate firmware image
# bundled can be downloaded from the 3ware website, used to flash the
# firmware, and then the newer driver can be switched to.  Alternatively,
# the appropriate firmware image (tw_cl_fwimg.c) from the older driver can
# be used to re-build the newer driver.  In this case, the branch
# (TWA_CURRENT_FW_BRANCH_*) and build (TWA_CURRENT_FW_BUILD_*) numbers for
# the bundled firmware need to be appropriately updated in tw_cl_fwif.h
# before building the driver.
d48 2
a49 2
.PATH: ${.CURDIR}/../../dev/${KMOD}
SRCS=  tw_osl_freebsd.c tw_osl_cam.c \
d53 1
a53 5
# Uncomment the following line to turn on Enclosure Services support.
#CFLAGS+= -DTWA_ENCLOSURE_SUPPORT

#CFLAGS+= -DTWA_DEBUG=0
CFLAGS+= -I${.CURDIR}/../../dev/${KMOD}
d56 2
a57 2
CFLAGS+= -DTWA_FLASH_FIRMWARE
SRCS+= tw_cl_fwimg.c
d60 2
@


1.4.2.2
log
@MFC: Catch up to twa build changes.
@
text
@d3 1
a3 1
# Copyright (c) 2004-06 Applied Micro Circuits Corporation.
a31 1
# Modifications by: Adam Radford
d34 23
d69 5
@


1.4.2.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/modules/twa/Makefile 169772 2007-05-19 17:08:27Z scottl $
@


1.4.2.2.4.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.3
log
@Changed comments following changes to not bundle firmware by default.

Approved by: re
@
text
@d1 35
a35 1
# $FreeBSD$
d49 2
a50 1
SRCS = twa_freebsd.c twa_cam.c twa.c twa_globals.c \
d53 2
d56 2
a57 2
CFLAGS+=-DTWA_FLASH_FIRMWARE
SRCS += twa_fwimg.c
d60 1
a60 1
#CFLAGS+=-DTWA_DEBUG=0
d63 1
@


1.3.2.1
log
@MFC of recent changes corresponding to the 9.2 release of twa.

MFC after:3 weeks
@
text
@d1 1
a1 35
#
# Copyright (c) 2004 Applied Micro Circuits Corporation.
# 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.
#
#	$FreeBSD$
#

#
# 3ware driver for 9000 series storage controllers.
#
# Author: Vinod Kashyap
#


d15 1
a15 2
SRCS = tw_osl_freebsd.c tw_osl_cam.c \
      tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \
a17 2
CFLAGS += -I${.CURDIR}/../../dev/${KMOD}

d19 2
a20 2
CFLAGS += -DTWA_FLASH_FIRMWARE
SRCS += tw_cl_fwimg.c
d23 1
a23 1
#CFLAGS += -DTWA_DEBUG=0
a25 1

@


1.3.2.2
log
@MFC: twa corresponding to the 9.3.0.1 release on the 3ware website.  This driver
has support for the 9xxxSX controllers, along with the earlier 9xxxS series
controllers.

MFC after:4 weeks
@
text
@a0 1
# $FreeBSD$
d26 2
a43 11
# Typically, the firmware image bundled (in tw_cl_fwimg.c) corresponds
# to the latest controller architecture as of the date of the release.
# If the firmware for an earlier controller architecture needs to be
# flashed, the (older) driver with the appropriate firmware image
# bundled can be downloaded from the 3ware website, used to flash the
# firmware, and then the newer driver can be switched to.  Alternatively,
# the appropriate firmware image (tw_cl_fwimg.c) from the older driver can
# be used to re-build the newer driver.  In this case, the branch
# (TWA_CURRENT_FW_BRANCH_*) and build (TWA_CURRENT_FW_BUILD_*) numbers for
# the bundled firmware need to be appropriately updated in tw_cl_fwif.h
# before building the driver.
d48 2
a49 2
.PATH: ${.CURDIR}/../../dev/${KMOD}
SRCS=  tw_osl_freebsd.c tw_osl_cam.c \
d53 1
a53 5
# Uncomment the following line to turn on Enclosure Services support.
#CFLAGS+= -DTWA_ENCLOSURE_SUPPORT

#CFLAGS+= -DTWA_DEBUG=0
CFLAGS+= -I${.CURDIR}/../../dev/${KMOD}
d56 2
a57 2
CFLAGS+= -DTWA_FLASH_FIRMWARE
SRCS+= tw_cl_fwimg.c
d60 2
@


1.2
log
@Don't include the firmware image by default as it adds 500k (uncompressed) to
the module.

Reviewed by:	vinod
@
text
@d4 6
a9 5
# Uncomment the following line to bundle firmware with the driver,
# which may be flashed onto the controller, if the firmware on the
# controller is older than the one bundled, and needs to be upgraded.
# The size of the driver will increase significantly (to over 500KB)
# if this option is selected.
@


1.1
log
@Initial check-in of the device driver for 3ware's 9000 series
PATA/SATA RAID controllers.  This driver is a SIM under CAM, and
so, behaves like a driver for a SCSI controller.
@
text
@d10 1
a10 1
FLASH_FIRMWARE=1
d17 1
a17 1
.if defined(FLASH_FIRMWARE)
@


1.1.2.1
log
@Initial check-in (for 4.x) of the device driver for 3ware's 9000 series
PATA/SATA RAID controllers.  This driver is a SIM under CAM, and so, behaves
like a driver for a SCSI controller.

Reviewed by: ps
Approved by: re
@
text
@@


1.1.2.2
log
@MFC rev 1.2: Don't inlcude the firmware image by default.

Approved by:	re
@
text
@d10 1
a10 1
TWA_FLASH_FIRMWARE?=0
d17 1
a17 1
.if $(TWA_FLASH_FIRMWARE) != 0
@


1.1.2.3
log
@Changed comments following changes to not bundle firmware by default.

Approved by: re
@
text
@d4 5
a8 6
# In the line following this comment, a value of 0 on the right hand
# side will not cause firmware to be bundled.  Change this value to 1
# to bundle the firmware with the driver, which may be flashed onto
# the controller, if the firmware on the controller is older than the
# one bundled, and needs to be upgraded.  The size of the driver will
# increase significantly (to over 500kB) if this option is selected.
@


1.1.2.4
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/modules/twa/Makefile 128087 2004-04-10 02:46:27Z vkashyap $
@


