where the hell is pci_read_config_xyz defined
I encountered exactly this problem recently. I finally figured out that the trick is that the pci_read_config_* and pci_write_config_* functions are defined by a macro in drivers/pci/pci.c. Search for "PCI_OP" in that file and you'll see what I mean.