PCI_CAP_FLAGS
pci_read_config_word(dev, pos + PCI_CAP_FLAGS, &flags);
ret = pci_read_config_byte(pdev, pos + PCI_CAP_FLAGS, &byte);
min(PCI_CAP_FLAGS, count));