Messages in this thread | | | Date | Thu, 27 Jul 2000 13:47:37 +0200 | From | Abramo Bagnara <> | Subject | Re: A simple question about readw, readw and the like |
| |
"David S. Miller" wrote: > > From: Francois Wautier <fw@fwconsult.com> > Date: Thu, 27 Jul 2000 14:57:48 +0700 > > So what are the advantages/problems associated with using readw, > writel and the like? Is this a way to get compatibility across > various platforms? > > Derefencing the return pointer from ioremap() and not using the readw > etc. interfaces is almost guarenteed to not work on any platform > other than x86. On Sparc64 for example the return from ioremap() > happens to be a physical address and will OOPS on you on any direct > derefence of that pointer, readw() and friends do the access in the > correct manner.
Does this means that there is no way to mmap the PCI IO space on any platform other than ia32?
-- Abramo Bagnara mailto:abramo@alsa-project.org
Opera Unica Via Emilia Interna, 140 Phone: +39.0546.656023 48014 Castel Bolognese (RA) - Italy Fax: +39.0546.656023
ALSA project is http://www.alsa-project.org sponsored by SuSE Linux http://www.suse.com
It sounds good!
- 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/
| |