18#include <FreeNOS/System.h>
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
BroadcomMailbox()
Constructor.
static const uint ChannelMask
Channel Mask when reading or writing (lowest 4-bits).
Result write(Channel channel, u32 message)
Write 28-bit message.
Result read(Channel channel, u32 *message) const
Read 28-bit message.
Result initialize()
Initialize the Mailbox.
static const Address Base
Register base offset for the Mailbox.
Unidirectional point-to-point messaging channel.
Result map(Address phys, Size size=4096, Memory::Access access=Memory::Readable|Memory::Writable|Memory::User)
Map I/O address space.
#define PAGESIZE
ARM uses 4K pages.
unsigned int u32
Unsigned 32-bit number.