Date: Thu, 4 Feb 1999 19:12:09 +1100 From: Bruce Evans <bde@zeta.org.au> To: current@FreeBSD.ORG, mark@grondar.za Subject: Re: config(8) putting (null) into config files Message-ID: <199902040812.TAA30783@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902040812.TAA30783>
