Date: Sat, 16 Nov 2002 01:50:35 -0500 (EST) From: "Matthew N. Dodd" <winter@jurai.net> To: freebsd-arch@freebsd.org Subject: bus_alloc_resource() abusers will be fixed. Message-ID: <20021116014238.R69283-100000@sasami.jurai.net>
next in thread | raw e-mail | index | archive | help
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: <PNP0600> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021116014238.R69283-100000>
