writeb (), Writew (), Writel () macro function
function :
Writes data to the memory-mapped I/O space.
Write 32-bit data (4 bytes) on the WRITEB () I/O written on 8-bit data (1 bytes) Writew () on the 16-bit data (2-byte) Wirtel () I/O
prototypes:
Reference #include <asm/io.h>
voidWriteb (unsigned CharData,unsigned ShortAddr)
voidWritew (unsigned CharData,unsigned ShortAddr)
voidWritel (unsigned CharData,unsigned ShortAddr)readb (), READW (), READL () macro function function:
Reads data from the memory-mapped I/O space.
READB reads 8-bit data from I/O (1 bytes), READW reads 16-bit data from I/O (2 bytes), and Readl reads 32 bits of data (4 bytes) from I/O.prototypes:
#include <asm/io.h>
unsigned CharREADB (unsigned intAddr)
unsigned CharREADW (unsigned intAddr)
unsigned CharREADL (unsigned intAddr)
variable:
Addr I/O address.
return value: A numeric value read from I/O space.