rem: decode_class(pcii->class_base, pcii->class_sub)); dprintf("Capabilities: "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_agp, NULL)) dprintf("AGP "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_pm, NULL)) dprintf("Pwr Mgmt "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_vpd, NULL)) dprintf("VPD "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_slotid, NULL)) dprintf("slotID "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_msi, NULL)) dprintf("MSI "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_hotplug, NULL)) dprintf("hotplug "); dprintf("\n");
add: decode_class(pcii->class_base, pcii->class_sub), pcii->vendor_id, pcii->device_id);  if ((status & PCI_status_capabilities)) { dprintf("Capabilities: "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_agp, NULL)) dprintf("AGP "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_pm, NULL)) dprintf("Pwr Mgmt "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_vpd, NULL)) dprintf("VPD "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_slotid, NULL)) dprintf("slotID "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_msi, NULL)) dprintf("MSI "); if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_hotplug, NULL)) dprintf("hotplug "); dprintf("\n"); } else dprintf("\t(No capabilities exist for this device)\n");
context: static void debug_show_device(pci_info *pcii){	dprintf("device at %d:%d:%d => %s\n", pcii->bus, pcii->device, 	        pcii->function, 	        decode_class(pcii->class_base, pcii->class_sub));	dprintf("Capabilities: ");	if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_agp, NULL))		dprintf("AGP ");	if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_pm, NULL))		dprintf("Pwr Mgmt ");	if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_vpd, NULL))		dprintf("VPD ");	if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_slotid, NULL))		dprintf("slotID ");	if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_msi, NULL))		dprintf("MSI ");	if (pci_get_capability(pcii->bus, pcii->device, pcii->function, PCI_cap_id_hotplug, NULL))		dprintf("hotplug ");	dprintf("\n");}