Subject: Re: PCI attach sequence
To: visi0n <visi0n@aux-tech.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 09/25/2000 14:44:09
On Fri, Sep 22, 2000 at 11:06:44AM -0300, visi0n wrote:
> 
> 	I would like to know what's the correct sequence to do a pci
> attach function, some codes begins with pci_mapreg_map and others with
> pci_conf_read but Im lost on it. There's a page or book about it ? 

Not really.
pci_conf_read() is used to read registers in PCI configuration space.
pci_mapreg_map() is used to map the device's I/O or memory space, according
to one of the BAR of the PCI config space (offset 0x14 to 0x20)

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--