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