[PCI binding] Use match instead of if-else sequense
Created by: imp
This commit completes simple conversion to match
away from if-else
(#419 (closed)). More serious work will be based on this. Eventually I want it to be a table/map/dictionary driven. I am not sure how to do it yet.