pci_get_cfgdata8(struct pci_vdev *dev, int offset)
{
	if (offset > PCI_REGMAX) {
		pr_err("%s: out of range of PCI config space!\n", __func__);
		return 0xff;
	}
	return (*(uint8_t *)(dev->cfgdata + offset));
}
pci_get_cfgdata8(struct pci_vdev *dev, int offset)
{
	if (offset > PCI_REGMAX) {
		pr_err("%s: out of range of PCI config space!\n", __func__);
		return 0xff;
	}
	return (*(uint8_t *)(dev->cfgdata + offset));
}