From mboxrd@z Thu Jan 1 00:00:00 1970 From: pshah.mumbai@gmail.com (Prashant Shah) Date: Wed, 1 Jun 2011 23:08:37 +0530 Subject: Clarification on memory mapping In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, On Wed, Jun 1, 2011 at 12:04 PM, sandeep kumar 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.