lkml.org 
[lkml]   [1999]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectWhen to use ioremap?
Hi guys,

Fresh from reading linux/Documentation/IO-mapping.txt (written by
Linus), I have a couple dumb questions that hopefully someone will
answer:

IO-mapping.txt describes reading from I/O space like
unsigned value = readl(0xc0000);
but it describes writing with ioremap().

Why does reading not require ioremap, while writing does?

And the file seems to imply that read/write[bwl] should be the sole way
to address I/O memory.

Why, then, does drivers/video/matroxfb.c have code for the case where
READx_WORKS is not true? Is this simply a performance optimization, or
a real requirement?

Thanks,

Jeff






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

\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog