From owner-freebsd-hackers Fri Aug 14 01:02:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA16287 for freebsd-hackers-outgoing; Fri, 14 Aug 1998 01:02:32 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA16275 for ; Fri, 14 Aug 1998 01:02:30 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from casparc.ppp.net (casparc2.ppp.net [194.64.12.42]) by mail.ppp.net (8.8.8/8.8.8) with SMTP id KAA23629; Fri, 14 Aug 1998 10:02:02 +0200 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0z7EoD-002ZjZC; Fri, 14 Aug 98 10:02 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Fri, 14 Aug 1998 08:48:33 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-hackers@FreeBSD.ORG; Fri, 14 Aug 1998 08:41:55 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #1 built 1998-Jun-6) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: developing device drivers In-Reply-To: <199808132017.NAA14261@usr09.primenet.com> from Terry Lambert at "Aug 13, 98 08:17:13 pm" To: tlambert@primenet.com (Terry Lambert) Date: Fri, 14 Aug 1998 08:41:55 +0200 (CEST) Cc: freebsd-hackers@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Terry Lambert wrote: > > I'd really like to write drivers (for ISA cards) as LKM modules, but so > > far i don't know how to assign 1) the IRQ, 2) the iobase and 3) the membase > > ( and perhaps flags and spl) to the LKM at module load time. > > > > Did i miss something ? > > You probe and attach at load time, normally. This means you detect the > IRQ/DRQ/IOBase/MemBase/Etc., not assign it. I don't quite understand, sorry. Given an ISA card, supporting IRQ's 3..15, i/o 0x100...0x300 and mem 0xa0000 ...0dffff. What i was looking for in the first place was something like modload -I -O -M .... to specify the same parameters i'd have to specify in the kernel config file. When i probe at load time, i try to detect the card in question, but where shall i start to search without knowing _where_ to search (iobase/membase) (other than searching through the whole supported iobase/membase) ? Given i found the card to be the one i looked for, which of the IRQ/iobase/mem supports shall i use in the attach ? How is the user to be able to specify the parameters he prefers ? hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe A duck is like a bicycle because they both have two wheels except the duck (terry@cs.weber.edu) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message