Re: Clarification on memory mapping

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

 



Hi,

On Wed, Jun 1, 2011 at 12:04 PM, sandeep kumar
<coolsandyforyou@xxxxxxxxx> wrote:
> Hi,
>
> ioremap() :
> 2) ioremap does mapping of a particular i/o device to kernel logical memory
> address.

Please correct me if I am wrong.

I think this function will remap the I/O registers location to a
memory location, so instead of using inb/outb you can use the memory
based functions like readb/writeb.

eg : lets say I want to read from I/O port 0x80. I will have to use
the inb() function. Now if I ioremap() it to a memory location it I
can use the readb() instead.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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