From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 22 19:29:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1B2A16A4CE for ; Tue, 22 Jun 2004 19:29:40 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93BAA43D5E for ; Tue, 22 Jun 2004 19:29:40 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 25292 invoked from network); 22 Jun 2004 19:29:39 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 22 Jun 2004 19:29:39 -0000 Received: from 10.50.41.233 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i5MJTaGa019114; Tue, 22 Jun 2004 15:29:36 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Tue, 22 Jun 2004 15:30:37 -0400 User-Agent: KMail/1.6 References: <20040618223051.60c40991.infamous42md@hotpop.com> In-Reply-To: <20040618223051.60c40991.infamous42md@hotpop.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406221530.37170.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: infamous42md@hotpop.com Subject: Re: lkm i/o port allocation problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2004 19:29:40 -0000 On Friday 18 June 2004 10:30 pm, infamous42md@hotpop.com wrote: > sorry, i used the wrong email addy to send that email, i've resent it using > the correct one. I believe your problem may be that you are probing PnP BIOS or other PnP ISA devices. You should reject any device that has a PnP HID. For example, in rc(4) I did: static int rc_probe(device_t dev) { u_int port; int i, found; /* * We don't know of any PnP ID's for these cards. */ if (isa_get_logicalid(dev) != 0) return (ENXIO); ... } Also, you shouldn't have to use 'device_set_driver()' in your identify routine. To be honest, you also don't really need an identify routine so long as you have hints (on 5.x) for the ser0 device (like: hint.ser.0.at="isa" hint.ser.0.port="0x2f8" Or a line in the kernel config (on 4.x) like so: device ser0 at isa? port 0x2f8 -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org