Subject: Re: Multiple values for locators
To: None <tech-kern@NetBSD.ORG>
From: Charles M. Hannum <mycroft@gnu.ai.mit.edu>
List: tech-kern
Date: 03/25/1997 20:32:58
I wrote:
>
> * Extend the attribute definition syntax to allow multiple
> initializers. e.g.:
>
> device isa {[port = -1,-1,-1,-1], [size = 0,0,0,0],
> [iomem = -1,-1,-1,-1], [iosiz = 0,0,0,0],
> [irq = -1,-1], [drq = -1,-1]}
I've had to change this slightly. The syntax is now:
device isa {[port*4 = -1,-1,-1,-1], [size*4 = 0,0,0,0],
[iomem*4 = -1,-1,-1,-1], [iosiz*4 = 0,0,0,0],
[irq*2 = -1,-1], [drq*2 = -1,-1]}
and cf_locnames gets `locator[N]' iff there's a `*N' in there.
I wasn't aware that config(8) allowed not specifying initializers (and
we don't currently use it), but I either have to explicitly specify
the maximum or remove that feature from config(8).
Anyway, this shouldn't be a problem.