* where should readb based/platform specific memcpy_fromio() be?
@ 2005-09-30 20:02 Yasushi SHOJI
0 siblings, 0 replies; only message in thread
From: Yasushi SHOJI @ 2005-09-30 20:02 UTC (permalink / raw)
To: linuxppc-dev
Hello,
I'd like to add a variant of memcpy_fromio() for 16bit bus. In-tree
implementations seem to me that most, if not all, arch have either
readb() or memcpy() based mempy_fromio.
powerpc doesn't currently have readb() based. I assume that means all
ppc boards are 32bit clean.
if I'd like merge this readb() based or optimized for 16bit bus
version, where should I put it? obviously I have to add ifdef in
include/asm-ppc/io.h, but should I do either:
- add extern in io.h and body under platform/..../xxxx.c
- add extern in io.h and body under arch/ppc/lib/io.c
- add static inline version in io.h
- add static inline version in platform/..../xxxxx.h which is
included from asm-ppc/io.h
regards,
--
yashi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-30 20:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30 20:02 where should readb based/platform specific memcpy_fromio() be? Yasushi SHOJI
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).