Re: Help with understanding PCI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 22, 2007 at 11:54:41PM +0200, Tzahi Fadida wrote:
> On Thursday 22 March 2007 19:59, Erik Mouw wrote:
> > mapped. After that call pci_iomap() to get a cookie and writel() and
> > friends to write to the device.
> 
> What are these parameters for the function, i can't find documentation on 
> this, specifically bar and maxlen. Where is the address of the PCI supposed 
> to go? 

What "address"?

> void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)

bar is the BAR of the pci device you wish to address, and maxlen is how
big it is.  You should know both of these from the documentation you
have on how your pci device is setup.

thanks,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux