rem: dprintf("device at %d:%d:%d => %s\n", pcii->bus, pcii->device,
add: uint16 status = read_pci_config(pcii->bus, pcii->device, pcii->function, PCI_status, 2);  dprintf("device @ %d:%d:%d > %s [%04x:%04x]\n", pcii->bus, pcii->device,
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");}