Thread (4 messages) flat view 4 messages, 2 authors, 2004-05-27

Re: ioremap() question

From: Oliver Korpilla <hidden>
Date: 2004-05-27 07:17:11

Eugene Surovegin wrote:
You cannot use virt_to_bus() on ioremap returned addresses.

Eugene.

Hello!

Maybe I may go like this:

I know my PCI from the device bus, so:

unsigned long bus_address;
struct pci_bus *my_bus = universe_pci_dev->bus;
bus_address = pci_phys_to_bus(physical_address, my_bus->number);

Since pci_phys_to_bus() is an exported symbol, this should work in my
module, shouldn't it?

Thanks in advance,
Oliver Korpilla

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help