From owner-freebsd-hackers Wed Jan 7 15:48:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA25912 for hackers-outgoing; Wed, 7 Jan 1998 15:48:22 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from hydrogen.nike.efn.org (d182-89.uoregon.edu [128.223.182.89]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA25846 for ; Wed, 7 Jan 1998 15:47:41 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id PAA02600; Wed, 7 Jan 1998 15:46:53 -0800 (PST) Message-ID: <19980107154653.65316@hydrogen.nike.efn.org> Date: Wed, 7 Jan 1998 15:46:53 -0800 From: John-Mark Gurney To: daniel_sobral@voga.com.br Cc: hackers@FreeBSD.ORG Subject: Re: make_device_driver.sh References: <83256585.005F0D72.00@papagaio.voga.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <83256585.005F0D72.00@papagaio.voga.com.br>; from daniel_sobral@voga.com.br on Wed, Jan 07, 1998 at 02:22:04PM -0300 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk daniel_sobral@voga.com.br scribbled this message on Jan 7: > Ok, I have some partial diffs to make it create a LKM squeleton too. The > main problem is that io base address and irq number must be hardwired into > the lkm's Makefile, and that's not too desirable, is it? Is there any > (easy) way around this? well... not to discourage you from working on examples, but there isn't any way to dynamicly load an isa device driver, but you can do that with pci devices though... soon, when I've completed the bus/device code, then this will be possible, but at the same time, the current LKM system will be replaced with the kld system, so there won't be any "special" handling of dynamicly loaded modules, just special handling of brain-dead not upgraded devices that don't support unloading.. > Another thing... I don't know how to do the same to make_pseudo_driver.sh. > Apart from that, I should submit the PR later today. you don't need to... it is already handled by the PSEUDO_SET that changes definitions depending upon PSEUDO_LKM (see sys/sys/kernel.h and lkm/if_ppp/Makefile)... ttyl.. -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking P.O. Box 5693, 97405 Live in Peace, destroy Micro$oft, support free software, run FreeBSD