pci: fix uio mapping differences between linux and bsd