Re: [PATCH] pci: introduce users of ioremap_pcibar()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Grant Grundler
Date: Tuesday, September 30, 2008 - 10:24 pm

On Mon, Sep 29, 2008 at 10:23:25AM -0700, Arjan van de Ven wrote:

pci_iomap() returns a "void __iomem *".
readl/writel take "void __iomem *" as an argument.
See build_mmio_read() in include/asm-x86/io.h

I think the assumption is the other way around: use of ioread/iowrite
assumes use of io_remap(). pci_iomap is the PCI wrapper around io_remap().
You just want a simpler wrapper (and I agree, it really could without
the extra arg).

But in any case, we can document pci_iomap() to be whatever you think
we should be exporting.  pci_iomap() is not currently documented in
Documentation/. Or at least grep isn't seeing it.



You are right about that.
Would calling the API "pci_iomap_bar()" to keep the naming consistent help
make it more acceptable?

(And adding documentation for both would be good too...I can do
that if the new API gets accepted.)

hth,
grant
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pci: introduce users of ioremap_pcibar(), Arjan van de Ven, (Fri Sep 26, 4:37 pm)
Re: [PATCH] pci: introduce an ioremap_pcibar(pdev, barnr) ..., Arjan van de Ven, (Sat Sep 27, 8:35 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Grant Grundler, (Mon Sep 29, 12:26 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Arjan van de Ven, (Mon Sep 29, 6:42 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Grant Grundler, (Mon Sep 29, 10:10 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Arjan van de Ven, (Mon Sep 29, 10:23 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Arjan van de Ven, (Tue Sep 30, 3:30 pm)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Grant Grundler, (Tue Sep 30, 10:24 pm)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Rolf Eike Beer, (Wed Oct 1, 3:33 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Kyle McMartin, (Wed Oct 1, 5:42 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Matthew Wilcox, (Wed Oct 1, 5:57 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Kyle McMartin, (Wed Oct 1, 6:07 am)
Re: [PATCH] pci: introduce users of ioremap_pcibar(), Arjan van de Ven, (Wed Oct 1, 6:53 am)