Skip to contentSkip to conversation

check_region question

DISCUSSION shai lifshitz 2 participants 2 messages Aug 1, 2004

lore
Share & tools
lore
#0 lore raw

hi group,

I try to grap the parallel port of a PC (x86), so as the first step I do: "check_region(0x378,3);" the problem is that it fails.

anybody can tell me why, where can I check who took this memory, or where to it is mapped?

HELP

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail

#1 lore raw
Quoted 4 lines · shai lifshitz

hi group,

I try to grap the parallel port of a PC (x86), so as the first step I do:
"check_region(0x378,3);"

You want to use request_region() instead, check_region() is deprecated and everything still using it is being moved to use request_region().

also, take a look at drivers/parport/parport_pc.c for examples.

You can also get useful info from
cat /proc/ioports
cat /proc/iomem
cat /proc/modules

You may also want to take a look at http://www.xml.com/ldd/chapter/book/

--
Jesper Juhl <[email protected]>