linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* What is the reel purpose of in_beXX() and out_beXX() fonctions ?
@ 2014-10-27 12:52 leroy christophe
  2014-10-27 15:05 ` David Laight
  2014-10-27 16:45 ` Scott Wood
  0 siblings, 2 replies; 4+ messages in thread
From: leroy christophe @ 2014-10-27 12:52 UTC (permalink / raw)
  To: LinuxPPC-dev, Scott Wood, Benjamin Herrenschmidt

Many drivers use in_be16(), in_be32(), out_be16(), out_be32(), etc .... 
to access to registrers in IO mapped memory.

What is the real purpose of those functions, and are they really needed ?

ioremap() maps the related areas as GUARDED, which means that accesses 
can't be speculative. So what is the benefit of using in_beXX() and 
out_beXX() over simple memory accesses in the area ?

Christophe

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-27 21:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 12:52 What is the reel purpose of in_beXX() and out_beXX() fonctions ? leroy christophe
2014-10-27 15:05 ` David Laight
2014-10-27 21:11   ` Benjamin Herrenschmidt
2014-10-27 16:45 ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).