Re: check_region question

From: Jesper Juhl
Date: Sun Aug 01 2004 - 08:23:25 EST


On Sun, 1 Aug 2004, shai lifshitz wrote:

> 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 <juhl-lkml@xxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/