Added mmio utility functions

For interacting with the UART for example.