Subject: Re: PCI_MAPREG_TYPE_ROM... or the lack of it
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Allen Briggs <briggs@netbsd.org>
List: tech-kern
Date: 02/25/2006 09:01:57
On Fri, Feb 24, 2006 at 07:43:01PM -0800, Garrett D'Amore wrote:
> Actually, it occurs to me that there is an easier way:
> 
> PCI_MAPREG_TYPE_ROM could be defined the same as PCI_MAPREG_TYPE_MEM,
> and the PCI register mapping code could look at the offset of the register.
> 
> PCI_MAPREG_ROM is *always* 0x30.  That's probably a better way to do it.

I agree.  I think it should be noted in the man page that
PCI_MAPREG_TYPE_ROM is only valid for PCI_MAPREG_ROM.

-allen

-- 
                  Use NetBSD!  http://www.NetBSD.org/