lkm i/o port allocation problems
John Baldwin
jhb at FreeBSD.org
Tue Jun 22 19:29:40 GMT 2004
On Friday 18 June 2004 10:30 pm, infamous42md at 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 at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-hackers
mailing list