Subject: Re: Multiple values for locators
To: Gordon W. Ross <>
From: Rafal Boni <>
List: tech-kern
Date: 03/25/1997 18:20:26
Masks might work for DRQ's and IRQ's, which are small integers anyway, but if 
something needs multiple memory spaces then you're in trouble.  I don't know 
that anything would actually want to do this (and if it did, it sounds pretty 
icky 8-), but mycroft's suggestion would let you do this, whereas the masks 
would make it difficult


---------- Original Text ----------

From: (Gordon W. Ross), on 3/25/97 5:34 PM:

> From: (Charles M. Hannum)
> Date: 25 Mar 1997 17:26:36 -0500

> I have a severe need to express multiple values for a locator for
> indirect devices.  e.g.  I need to be able to do:
> > sb0 at isa? port 0x220 irq 1 drq 1,5
> gus0 at isa? port 0x300 irq 1 drq 5,7
> > Right now, where this is done at all, it's typically done via some
> hack involving the `flags' field.

Would it be easier to use a "mask" instead?  i.e.:

sb0  at isa? port 0x220 irq 1 drqs 0x22	# 1,5
gus0 at isa? port 0x300 irq 1 drqs 0xA0 # 5,7

> So, does anyone have a reasonable objection to the above?

Note, I'm not objecting; just offering another idea.
Use it or not as you like.