From owner-freebsd-current Mon Jan 6 20:46:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA27844 for current-outgoing; Mon, 6 Jan 1997 20:46:07 -0800 (PST) Received: from mira.net.au (eplet.mira.net.au [203.9.190.17]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id UAA27822 for ; Mon, 6 Jan 1997 20:45:59 -0800 (PST) Received: (qmail 7170 invoked from network); 7 Jan 1997 04:45:54 -0000 Received: from melb.werple.net.au (203.9.190.18) by eplet.mira.net.au with SMTP; 7 Jan 1997 04:45:54 -0000 Received: (from uucp@localhost) by melb.werple.net.au (8.7.6/8.7.3/2) with UUCP id PAA24592; Tue, 7 Jan 1997 15:39:25 +1100 (EST) Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.7.5/8.7.3) id PAA04928; Tue, 7 Jan 1997 15:31:59 +1100 (EST) From: John Birrell Message-Id: <199701070431.PAA04928@freebsd1.cimlogic.com.au> Subject: Re: MOD_DECL in lkm.h To: terry@lambert.org (Terry Lambert) Date: Tue, 7 Jan 1997 15:31:57 +1100 (EST) Cc: jb@cimlogic.com.au, bde@zeta.org.au, current@freebsd.org In-Reply-To: <199701070212.TAA13473@phaeton.artisoft.com> from Terry Lambert at "Jan 6, 97 07:12:28 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Terry Lambert wrote: > > where the config_file might contain something similar to that given to > > the kernel config. Then I'd like the number of units to come from the > > config_file rather than from the NXXX in the XXX.h header file. > > Make your probe code figure the information out so you con't need > a config line. Config lines are evil. 8-(. Maybe, but there are some devices that are sooooo dumb that you can't identify them. I have one that has 4 addressable bytes. Four!! And one of those is write only. The other three are either TTL inputs or outputs depending on what you write to the fourth byte. If you were to write probe code for that, how would you identify it? Another board arrived today. This one has 4 bytes too - one output read/write, one input read only, and the other 2 aren't used! The outputs are electromechanical relays. The inputs are optically isolated, polarity insensitive to 500V (AC or DC). Both there boards are from a large range of ISA I/O boards. You can't identify _any_ of them. You have to be careful probing these boards because if you write to an output byte it turns something external on! Makes config lines look really attractive to me. 8-) [ useful stuff deleted ] > > Terry Lambert -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au; jb@netbsd.org 119 Cecil Street Ph +61 3 9690 6900 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137