Doubt regarding IOREMAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
 
     I have  adoubt regarding IOREMAP. I would be greatful if anyone could give some info on it.
     My doubt is  "What does the second argument to IOREMAP indicate ?". As far as i understood, it is the
     length of the memory area which we would want to access on the device memory.
    When i read the documentation file "IO-Mapping.txt" it was mentioned in it as below:
 
   " - remapping and writing:
     /*
      * remap framebuffer PCI memory area at 0xFC000000,
      * size 1MB, so that we can access it: We can directly
      * access only the 640k-1MB area, so anything else
      * has to be remapped.
      */
             char * baseptr = ioremap(0xFC000000, 1024*1024);  
 "
 
    Till the time i read this file, i thought, the second argument was in terms of pages
     ie,    ioremap(0x52480000, 2) indicates that the memory of the size if two pages can be accessed from the address 0x52480000.
     Is that what i understood is right ?.
 
     Please let me know if am wrong in anyway.
 
 
   Thanks in Advance.
   Regards,
   Vijay Ram.C
 
  
            

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux