From owner-freebsd-hackers Tue Jun 5 16:17:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from kawoserv.kawo2.rwth-aachen.de (kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by hub.freebsd.org (Postfix) with ESMTP id 0557237B401; Tue, 5 Jun 2001 16:17:41 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from zerogravity.kawo2.rwth-aachen.de (zerogravity.kawo2.rwth-aachen.de [134.130.181.28]) by kawoserv.kawo2.rwth-aachen.de (8.9.3/8.9.3) with ESMTP id BAA04372; Wed, 6 Jun 2001 01:04:26 +0200 Received: by zerogravity.kawo2.rwth-aachen.de (Postfix, from userid 1001) id 25B0414CEC; Wed, 6 Jun 2001 01:04:27 +0200 (CEST) Date: Wed, 6 Jun 2001 01:04:26 +0200 From: Alexander Langer To: j mckitrick Cc: Mike Smith , freebsd-hackers@FreeBSD.ORG Subject: Re: newbussifying drivers Message-ID: <20010606010426.C28586@zerogravity.kawo2.rwth-aachen.d> References: <20010605182151.A90883@dogma.freebsd-uk.eu.org> <200106052032.f55KWTj01513@mass.dis.org> <20010605230032.B96188@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010605230032.B96188@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Tue, Jun 05, 2001 at 11:00:32PM +0100 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake j mckitrick (jcm@FreeBSD-uk.eu.org): > | It's pretty rare to need to bit-bang to find a device these days anyway; > | you should probably be looking for PnP data or similar. This is what > | hints are (basically) - manually-supplied PnP data. > How would you recommending fixing this, taken from the ex driver? > for (ioport = 0x200; ioport < 0x3a0; ioport += 0x10) { This is exactly what Mike meant: You manually set the correct I/O port in the hints file and then you don't have to check for each port between 0x200 and 0x3a0. Just bus_alloc_resource once and test for the card. Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message