Date: Tue, 22 Jun 2004 15:30:37 -0400 From: John Baldwin <jhb@FreeBSD.org> To: freebsd-hackers@FreeBSD.org Cc: infamous42md@hotpop.com Subject: Re: lkm i/o port allocation problems Message-ID: <200406221530.37170.jhb@FreeBSD.org> In-Reply-To: <20040618223051.60c40991.infamous42md@hotpop.com> References: <20040618223051.60c40991.infamous42md@hotpop.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406221530.37170.jhb>