Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Nov 2000 00:48:37 +0900
From:      Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp>
To:        Rink Springer <rink@springer.cx>
Cc:        hackers@freebsd.org
Subject:   Re: KLD's on ISA bus: how?
Message-ID:  <200011041548.AAA39517@shidahara1.planet.sci.kobe-u.ac.jp>
In-Reply-To: Your message of "Sat, 04 Nov 2000 17:34:17 GMT." <3A044899.9020508@springer.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <3A044899.9020508@springer.cx>, Rink Springer さんいわく:
>I got the stuff to compile et al, but I cannot get the darned thing to 
>run as a KLD. FreeBSD doesn't appear to try to probe for the interface 
>:(. When I tell FreeBSD it's a PCI thing (instead of ISA), it probes for 
>it...
>
>How can I fix this? I want my driver to auto-try all parallel port 
>addresses, but without having to mark it as a PCI device... anyone?

There is two way.

1.Write device_identify method and put auto-probe scheme to this.and ,if found,
use BUS_ADD_CHILD to add your driver as ISA driver and 
use BUS_SET_RESOURCE to set resource you found.

2.Give up autoprobing and add your device configuration to 
/boot/device.hints and boot (Kernel reconfiguration is not needed) .Then
load your driver with kldload.

If you don't register device_detach method, your driver cannot be unloaded.

Takanori Watanabe
<a href="http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html">;
Public Key</a>
Key fingerprint =  2C 51 E2 78 2C E1 C5 2D  0F F1 20 A3 11 3A 62 2A 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011041548.AAA39517>