viafb: move some modesetting functions to a seperate file