Hi,
Thanks for reply Shakthi...
--- Shakthi Kannan <cyborg4k@xxxxxxxxx> wrote:
Hi,
--- Madhukar mythri <madhukar_linux@xxxxxxxxxxx>
wrote:
So in /proc/pci IO-mapped address and
Memory
mapped address both are physical addres only...
as u said..... is it???
Yes.
iom_start = pci_resource_start(dev2,2);
iom_end = pci_resource_end(dev2,2);
iom_len = pci_resource_len(dev2,2);
What is the value of iom_len? You basically write
0xffffffff to base-address and read the value back.
Mask out the lower nibble and increment the
resulting
value by 1 to get the size/len of the IO-mapped
region. Do read the PCI specification.
/* ioremap MMIO region */
ioaddr = ioremap(iom_start, iom_len); //
What type is ioaddr? iom_len?
Check the short.c example in linux device drivers
code examples.