From owner-freebsd-hackers Thu Oct 9 22:50:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA25497 for hackers-outgoing; Thu, 9 Oct 1997 22:50:59 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id WAA25480 for ; Thu, 9 Oct 1997 22:50:56 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id HAA09583; Fri, 10 Oct 1997 07:50:55 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id HAA22624; Fri, 10 Oct 1997 07:33:26 +0200 (MET DST) Message-ID: <19971010073326.WG52815@uriah.heep.sax.de> Date: Fri, 10 Oct 1997 07:33:26 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Cc: mdean@best.com (mdean) Subject: Re: config questions References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from mdean on Oct 9, 1997 15:07:36 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As mdean wrote: > in the kernel config file, what does the modifier after the port number do? > i.e. port 0x250 bio or port 0x250 tty RTFM spl(9) for this. > could > you have it on the same line as the driver like > > ... port 0x250 tty irq 5 vector drivervec goodies 1 > > and get it put in driver.h? No. You can have two things: device foo port 0x250 tty irq 5 vector foovec flags 0x234 ...where the man page for foo(4) is supposed to explain the meaning of the flags values. This is pretty obscure, but on the plus side, you can change the flags on a per-device basis (as opposed to per-driver), and you can change them at boot-time with UserConfig (or /kernel.config). The other option is, well, an `option': options FOOOPT options "FOOZOOLIX=23" ...which will convert into #define FOOOPT 1 #defien FOOZOOLIX 23 but needs a kernel recompilation in order to take effect. The preferable style for options is now to mention all valid options in either /sys/conf/options, or /sys/$arch/conf/options.$arch, so there will be a file named "opt_fooopt.h" etc. in your kernel compile directory with the above #defines. (The old way translated them into -D options in the Makefile, but this loses when it comes to dependencies.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)