From owner-freebsd-hackers Sat Nov 4 7:51:50 2000 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 EEF1037B4CF for ; Sat, 4 Nov 2000 07:51:48 -0800 (PST) Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55B686E2854 for ; Sat, 4 Nov 2000 07:51:48 -0800 (PST) Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1]) by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id AAA39517; Sun, 5 Nov 2000 00:48:37 +0900 (JST) (envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp) Message-Id: <200011041548.AAA39517@shidahara1.planet.sci.kobe-u.ac.jp> To: Rink Springer Cc: hackers@freebsd.org Subject: Re: KLD's on ISA bus: how? In-reply-to: Your message of "Sat, 04 Nov 2000 17:34:17 GMT." <3A044899.9020508@springer.cx> Date: Sun, 05 Nov 2000 00:48:37 +0900 From: Takanori Watanabe Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Public Key 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