How to write an I/O register controller

The basics

Todo

document IORegister controller howto