dm: pci: Move common PCI functions into their own file