Lines Matching refs:entry

71 print_irq_routing_entry(const irq_routing_entry& entry)
73 dprintf("address 0x%04" B_PRIx64 "; pin %u;", entry.device_address,
74 entry.pin);
76 if (entry.source_index != 0)
77 dprintf(" GSI %" B_PRIu32 ";", entry.source_index);
79 dprintf(" source %p %" B_PRIu32 ";", entry.source, entry.source_index);
82 " config 0x%02x\n", entry.pci_bus, entry.pci_device, entry.pin + 1,
83 entry.pci_function_mask, entry.bios_irq, entry.irq,
84 entry.polarity | entry.trigger_mode);
98 update_pci_info_for_entry(pci_module_info* pci, const irq_routing_entry& entry)
102 if ((entry.pci_function_mask & (1 << function)) == 0)
105 if (pci->update_interrupt_line(entry.pci_bus, entry.pci_device,
106 function, entry.irq) == B_OK) {
116 fill_pci_info_for_entry(pci_module_info* pci, irq_routing_entry& entry)
119 uint8 headerType = pci->read_pci_config(entry.pci_bus, entry.pci_device, 0,
122 TRACE("PCI %" B_PRIu8 ":%" B_PRIu8 " entry not found\n",
123 entry.pci_bus, entry.pci_device);
135 uint16 vendorId = pci->read_pci_config(entry.pci_bus, entry.pci_device,
139 entry.pci_bus, entry.pci_device, function);
143 uint8 interruptPin = pci->read_pci_config(entry.pci_bus,
144 entry.pci_device, function, PCI_interrupt_pin, 1);
146 // Finally match the pin with the entry, note that PCI pins are 1 based
148 if (interruptPin != entry.pin + 1) {
150 " != %" B_PRIu8 "\n", entry.pci_bus, entry.pci_device, function,
151 interruptPin, entry.pin + 1);
155 if (entry.bios_irq == 0) {
162 entry.bios_irq = pci->read_pci_config(entry.pci_bus,
163 entry.pci_device, function, PCI_interrupt_line, 1);
166 entry.pci_function_mask |= 1 << function;
169 return entry.pci_function_mask != 0 ? B_OK : B_ENTRY_NOT_FOUND;
406 dprintf("no matching PCI device for irq entry: ");
411 dprintf("found matching PCI device for irq entry: ");
514 // we already have a matching entry for that device/pin, make
526 // This function has no matching routing table entry yet. Try to
538 "no matchedTable entry.\n", bus, device, function);
548 "no unmatchedTable entry, looking at parent pin %"
578 dprintf("calculated irq routing entry: ");
820 // table entry. For the devices without a match, we calculate their pins