PCI_CAP_ID_MASK
id = ((reg >> PCI_CAP_ID_SHIFT) & PCI_CAP_ID_MASK);
pci_lcap_locate(h, (uint8_t)((id) & PCI_CAP_ID_MASK), base_p))