Subject: Re: an driver woes
To: Garrett D'Amore <>
From: Garrett D'Amore <>
List: tech-net
Date: 02/09/2006 09:59:32
Garrett D'Amore wrote:
> Perry E. Metzger wrote:
> Hmmm... maybe they actually got smart and moved some of the registers
> into memory space.  (Folks have been recommending device mfgs to avoid
> IO space for registers for years now because of the crowding in the very
> limited PC IO space.)
> Try changing line 137 of if_an_pci.c so that instead of
> PCI_MAPREG_TYPE_IO it is PCI_MAPREG_TYPE_MEM.  Maybe that will help. 
> Just a thought.
Actually, you can determine the register mapping type by
pci_mapreg_type(), and pass that instead of using a fixed constant. :-)

    -- Garrett

Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
Phone: 951 325-2134  Fax: 951 325-2191