ioremap() question
Oliver Korpilla
okorpil at fh-landshut.de
Thu May 27 17:17:11 EST 2004
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/
More information about the Linuxppc-embedded
mailing list