Fixed bug in MMIO functions, also changed function arguments.

Roled in numerous hardware libcxl changes as well.