pci_get_cfgdata32(struct pci_vdev *dev, int offset)
{
	if ((offset > PCI_REGMAX - 3) || (offset & 3) != 0) {
		pr_err("%s: out of range of PCI config space!\n", __func__);
		return 0xffffffff;
	}
	return (*(uint32_t *)(dev->cfgdata + offset));
}
pci_get_cfgdata32(struct pci_vdev *dev, int offset)
{
	if ((offset > PCI_REGMAX - 3) || (offset & 3) != 0) {
		pr_err("%s: out of range of PCI config space!\n", __func__);
		return 0xffffffff;
	}
	return (*(uint32_t *)(dev->cfgdata + offset));
}