From owner-cvs-all Tue Oct 24 23:59:11 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7279637B479; Tue, 24 Oct 2000 23:59:07 -0700 (PDT) Received: (from msmith@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA94447; Tue, 24 Oct 2000 23:59:07 -0700 (PDT) (envelope-from msmith@FreeBSD.org) Message-Id: <200010250659.XAA94447@freefall.freebsd.org> From: Mike Smith Date: Tue, 24 Oct 2000 23:59:07 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf files src/sys/dev/twe twe_compat.h twe_freebsd.c twe_tables.h tweio.h twe.c twereg.h twevar.h twe_disk.c src/sys/modules/twe Makefile X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG msmith 2000/10/24 23:59:06 PDT Modified files: sys/conf files sys/dev/twe twe.c twereg.h twevar.h sys/modules/twe Makefile Added files: sys/dev/twe twe_compat.h twe_freebsd.c twe_tables.h tweio.h Removed files: sys/dev/twe twe_disk.c Log: Major update to the 'twe' driver. - Layout reorganisation to enhance portability. The driver now has a relatively MI 'core' and a FreeBSD-specific layer over the top. Since the NetBSD people have already done their own port, this is largely just to help me with the BSD/OS port. - Request ID allocation changed to improve performance (I'd been considering switching to this approach after having failed to come up with a better way to dynamically allocate request IDs, and seeing Andy Doran use it in the NetBSD port of the driver convinced me that I was wasting my time doing it any other way). Now we just allocate all the requests up front. - Maximum request count bumped back to 255 after characterisation of a firmware issue (off-by-one causing it to crash with 256 outstanding commands). - Control interface implemented. This allows 3ware's '3dm' utility to talk to the controller. 3dm will be available from 3ware shortly. - Controller soft-reset feature added; if the controller signals a firmware or protocol error, the controller will be reset and all outstanding commands will be retried. Revision Changes Path 1.433 +2 -2 src/sys/conf/files 1.3 +854 -1013 src/sys/dev/twe/twe.c 1.3 +296 -67 src/sys/dev/twe/twereg.h 1.2 +166 -55 src/sys/dev/twe/twevar.h 1.5 +27 -2 src/sys/modules/twe/Makefile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message