From owner-cvs-all@FreeBSD.ORG Wed Jan 19 07:46:39 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26ECD16A4CE; Wed, 19 Jan 2005 07:46:39 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 103C143D5E; Wed, 19 Jan 2005 07:46:39 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0J7kcHr028717; Wed, 19 Jan 2005 07:46:38 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0J7kcFL028716; Wed, 19 Jan 2005 07:46:38 GMT (envelope-from imp) Message-Id: <200501190746.j0J7kcFL028716@repoman.freebsd.org> From: Warner Losh Date: Wed, 19 Jan 2005 07:46:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/fdc fdc.c fdc_isa.c fdc_pccard.c fdcvar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 07:46:39 -0000 imp 2005-01-19 07:46:38 UTC FreeBSD src repository Modified files: sys/dev/fdc fdc.c fdc_isa.c fdc_pccard.c fdcvar.h Log: MFp4: overhaul of resource allocation Rather than have a twisty maze of special case allocations, move instead to a data driven allocation. This should be the most robust way to cope with the resource problems that the multiplicity of ways of encoding 5 registers that have the misfortune of not being a power of 2 nor contiguous. Also, make it less impossible that pccard will work. I've not been able to get my libretto floppy working, but it now fails later than before. phk and I had similar ideas on this during the 5.3 release cycle, but it wasn't until recently that I could test more than one allocation scenario. MFC After: 1 month (5.4 if possible, 5.5 if not) Revision Changes Path 1.305 +54 -35 src/sys/dev/fdc/fdc.c 1.18 +53 -96 src/sys/dev/fdc/fdc_isa.c 1.12 +16 -14 src/sys/dev/fdc/fdc_pccard.c 1.9 +11 -13 src/sys/dev/fdc/fdcvar.h