Thread (4 messages) 4 messages, 3 authors, 2011-02-17

iomem and ioports

From: Rajat Jain <hidden>
Date: 2011-02-17 08:08:27

Some places i have seen that directly IO port is typecasted to? (__iomem * ) and used as it is i.e. returned value is given to ioread and iowrite functions.Kindly explain why in some cases we dont add?offset and?in some cases we add??
Is it because in some board we need to memory map the port number and then read/write and in some boards we don't need to do that as we can directly access the port using arch specific functions??
?

RAJAT> I would think so.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help