27 ERROR(
"failed to map I/O memory");
37 DEBUG(
"phyAddr = " << (
void *)phyAddr);
void write(u32 reg, u32 data)
write to memory mapped I/O register
u32 read(u32 reg) const
read from memory mapped I/O register
void setBase(const Address base)
Set memory I/O base offset.
Result map(Address phys, Size size=4096, Memory::Access access=Memory::Readable|Memory::Writable|Memory::User)
Map I/O address space.
Address getBase() const
Get memory I/O base offset.
Result setupEmac(const uint phyAddr)
Setup EMAC mode.
Arch::IO m_io
Memory I/O object.
Result initialize()
Perform initialization.
static const Address IOBase
Physical base memory address of the SYSCON module.
#define PAGESIZE
ARM uses 4K pages.
unsigned int u32
Unsigned 32-bit number.
#define ERROR(msg)
Output an error message.
unsigned int uint
Unsigned integer number.
#define DEBUG(msg)
Output a debug message to standard output.