[Ilugc] doubts in kernel porting & device drivers

  • From: cyborg4k@xxxxxxxxx (Shakthi Kannan)
  • Date: Tue Jan 18 19:49:45 2005

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.

Regards,

K Shakthi

=====
--------------------------------------------------------------------------
K Shakthi
Specsoft (Hexaware Technologies), ASIC Design Center
http://www.geocities.com/shakthimaan
--------------------------------------------------------------------------


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

Other related posts: