/* * These are the "generic" interfaces for doing new-style * memory-mapped or PIO accesses. Architectures may do * their own arch-optimized versions, these just act as * wrappers around the old-style IO register access functions: * read[bwl]/write[bwl]/in[bwl]/out[bwl] * * Don't include this directly, include it from <asm/io.h>.
*/
/* * Read/write from/to an (offsettable) iomem cookie. It might be a PIO * access or a MMIO access, these functions don't care. The info is * encoded in the hardware mapping set up by the mapping functions * (or the cookie itself, depending on implementation and hw). * * The generic routines just encode the PIO/MMIO as part of the * cookie, and coldly assume that the MMIO IO mappings are not * in the low address range. Architectures for which this is not * true can't use this generic implementation.
*/ externunsignedint ioread8(constvoid __iomem *); externunsignedint ioread16(constvoid __iomem *); externunsignedint ioread16be(constvoid __iomem *); externunsignedint ioread32(constvoid __iomem *); externunsignedint ioread32be(constvoid __iomem *);
/* * "string" versions of the above. Note that they * use native byte ordering for the accesses (on * the assumption that IO and memory agree on a * byte order, and CPU byteorder is irrelevant). * * They do _not_ update the port address. If you * want MMIO that copies stuff laid out in MMIO * memory across multiple ports, use "memcpy_toio()" * and friends.
*/ externvoid ioread8_rep(constvoid __iomem *port, void *buf, unsignedlong count); externvoid ioread16_rep(constvoid __iomem *port, void *buf, unsignedlong count); externvoid ioread32_rep(constvoid __iomem *port, void *buf, unsignedlong count);
#ifdef CONFIG_HAS_IOPORT_MAP /* Create a virtual mapping cookie for an IO port range */ externvoid __iomem *ioport_map(unsignedlong port, unsignedint nr); externvoid ioport_unmap(void __iomem *); #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.