From owner-freebsd-arch Fri Nov 15 22:50:38 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A4C537B401 for ; Fri, 15 Nov 2002 22:50:37 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB66743E77 for ; Fri, 15 Nov 2002 22:50:36 -0800 (PST) (envelope-from winter@jurai.net) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.6/8.12.5) with ESMTP id gAG6oZ6D053624 for ; Sat, 16 Nov 2002 01:50:35 -0500 (EST) (envelope-from winter@jurai.net) Date: Sat, 16 Nov 2002 01:50:35 -0500 (EST) From: "Matthew N. Dodd" To: freebsd-arch@freebsd.org Subject: bus_alloc_resource() abusers will be fixed. Message-ID: <20021116014238.R69283-100000@sasami.jurai.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm going to fix all the abuses of the 'count' parameter to the bus_alloc_resource() call. 'count' isn't the size of the allocation. The resource must specify a start and a length and not rely on 'count' to fake up an allocation that works. As far as I can tell, most of the abusers are ones that can use PNPBIOS or ISA hints. This will fix stuff like this: unknown: can't assign resources (port) It will require that hints specify a 'portsize' or 'msize' variable for each 'port' or 'maddr' that has a size > than 1. I'll post my patches for MAINTAINER review but this needs to get fixed before we roll out a release that uses the hints mechanism so we don't get locked into supporting the broken usage. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message