LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,691
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration