PCI_CAP_PTR_MASK
cap &= PCI_CAP_PTR_MASK;
uint8_t cap_addr = cap_off & PCI_CAP_PTR_MASK;
capsp &= PCI_CAP_PTR_MASK;
cap_ptr &= PCI_CAP_PTR_MASK;