eal: add option register infrastructure