PCI_CAPLIST_CAP
if (PCI_CAPLIST_CAP(rval) == PCI_CAP_AGP)
if (PCI_CAPLIST_CAP(reg) == capid) {
cap = PCI_CAPLIST_CAP(reg);