From owner-freebsd-current Thu Feb 4 00:12:16 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA05613 for freebsd-current-outgoing; Thu, 4 Feb 1999 00:12:16 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA05415 for ; Thu, 4 Feb 1999 00:12:12 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id TAA30783; Thu, 4 Feb 1999 19:12:09 +1100 Date: Thu, 4 Feb 1999 19:12:09 +1100 From: Bruce Evans Message-Id: <199902040812.TAA30783@godzilla.zeta.org.au> To: current@FreeBSD.ORG, mark@grondar.za Subject: Re: config(8) putting (null) into config files Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I am trying to get my laptop's config file as clean as possible >and one of the lines I experimented with is: > >controller fdc0 at isa? disable port ? bio > >(notice the lack of an "irq" and the wildcarding of "at isa"). > >This results in a line in ioconf.c of: > >{ 10, &fdcdriver, (null), 0, -1, C 0x00000, 0, 0, 0, 0x0000, 0, 0, 0, 0, 0, 0, 0 }, > >Notice the "(null)". I want the line in my config file to be like that >as I do not use the floppy drive very often, and I am quite content for >it to be kicked into action by pccardd when I plug it in. So my config >line above is just a device placeholder. The "(null)" causes a compile >failure, which is fixed by the kluge below. Is there a better way of >doing this, or is this OK to commit? There is a better way. Copy the correct code for printing d_port and d_portn from isa_devtab() to isa_biotab(), and while your're there, check for other lossage in isa_biotab(). The current code also screws up cases where the token following "port" is a number. Only the case where it is a macro name works. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message