LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2007, 05:54 PM   #1
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
Examening /dev/port content doesn't give all ports


Output of cat /proc/ioports is:

[HTML]-bash-2.05b# cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0022-0022 : PM2_CNT_BLK
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
0376-0376 : ide1
03c0-03df : vga+
03f8-03ff : serial
0400-0403 : PM1a_EVT_BLK
0404-0405 : PM1a_CNT_BLK
0408-040b : PM_TMR
0410-0415 : ACPI CPU throttle
0420-0423 : GPE0_BLK
0450-0453 : GPE1_BLK
0500-050f : pnp 00:01
c000-cfff : PCI Bus #03
cc00-ccff : 0000:03:06.0
cc00-ccff : via-rhine
d000-dfff : PCI Bus #02
e000-efff : PCI Bus #01
ec00-ec7f : vt1211-isa
f000-f01f : 0000:00:10.2
f400-f41f : 0000:00:10.1
f800-f81f : 0000:00:10.0
fc00-fc0f : 0000:00:0f.0
[/HTML]

I expect that I could examine content of I/O port memory by doing:
dd if=/dev/port | hexdump -C | less

But I can't see all port addresses listed by previous command. In particular ec00-cc7f region.
[HTML]
0000cc60 00 00 00 00 00 00 00 00 00 00 00 00 01 04 06 00 |................|
0000cc70 80 41 6d 78 80 00 00 29 10 10 00 b0 00 00 00 00 |.Amx...)........|
0000cc80 00 00 1f 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000cc90 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 |................|
0000cca0 00 00 04 00 00 00 04 00 00 00 00 00 00 00 00 00 |................|
0000ccb0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
0000ccc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
0000cd00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
0000f000 00 00 20 00 00 00 00 00 00 00 00 00 40 00 00 00 |.. .........@...|
0000f010 8a 04 8a 04 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000f020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
0000f400 00 00 20 00 00 00 00 00 00 00 00 00 40 00 00 00 |.. .........@...|
0000f410 8a 04 8a 04 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000f420 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
0000f800 00 00 20 00 00 00 00 00 00 00 00 00 40 00 00 00 |.. .........@...|
0000f810 8a 04 8a 04 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000f820 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
0000fc00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 |................|
0000fc10 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00[/HTML]

Is there any way to examine content of IO Port space from command prompt?
 
Old 01-25-2007, 09:55 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The * on some lines indicates that all missing lines (other than the address) are the same as the one above. In your case, the missing address space is all 1bits (ff bytes).
 
  


Reply

Tags
dd



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Udev] Can I delete the content of /dev? lokee Linux - Software 6 02-04-2005 08:30 PM
can any one give a hand on CSS problem(Content Scramble System) ypx Linux - Software 0 12-04-2004 04:10 AM
can any one give a hand on CSS problem(Content Scramble System) ypx Linux - Software 0 12-03-2004 08:02 PM
How to see the content of Serial Port in Linux MaMatO Linux - Hardware 3 07-23-2004 02:48 PM
--destination-ports port[,port[,port...]] KevinGuy Linux - Networking 1 03-16-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:20 AM.

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