pci: split the function providing uio device and mappings