pci: add helper functions to check ranges overlap.