LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 12-14-2009, 01:10 AM   #1
shilpa rangappa
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
memory mapped i/o and i/o mapped i/o


Hi All,

Can anyone explain me..
what is memory mapped i/o and i/o mapped i/o?
And also difference between the two...

Thanks,
Shilpa
 
Old 12-14-2009, 10:27 PM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,358

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
Many CPUs are better at addressing "memory" than they are at addressing "I/O Ports." There are just more and more-flexible instructions available for memory access.

So, hardware designers build their cards to recognize "read" and "write" requests to certain memory-addresses as being directed to certain hardware-latches on their cards. That is, when you "read address $XYZ," you get the contents of a particular hardware circuit. Likewise, a "write" sets the values of a bank of certain switches.

The operating system arranges for those memory addresses to be protected such that only the kernel can read and/or write to them.

The practice is so widespread and so useful that some microprocessor designs don't even have I/O-port instructions. The designers judged that they simply didn't need them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network device Memory mapped or Port mapped ?? Bignon Linux - Hardware 0 10-20-2009 08:36 AM
How to access Physical memory not mapped in kernel sbc Programming 0 02-09-2009 09:13 AM
Kernel crashes while accessing the IO mapped memory rohshall Linux - Embedded & Single-board computer 0 12-10-2008 09:52 AM
Memory mapped device access in Linux tsik Linux - Software 1 10-31-2006 09:26 PM
Memory Mapped file IO problems legogt Programming 0 08-01-2003 01:52 PM


All times are GMT -5. The time now is 09:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration