simplify osapi usage, introduce enumerate function
jp12serial_compat: add port enumeration
remove assert in jp2_write_block()

This assert makes no sense.