split out ioport related stuffs from vl.c into ioport.c.