MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / pci_read_irq

Function pci_read_irq

components/drivers/pci/probe.c:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static void pci_read_irq(struct rt_pci_device *pdev)
179{
180 rt_uint8_t irq = 0;
181
182 rt_pci_read_config_u8(pdev, PCIR_INTPIN, &irq);
183 pdev->pin = irq;
184
185 if (irq)
186 {
187 rt_pci_read_config_u8(pdev, PCIR_INTLINE, &irq);
188 }
189 pdev->irq = irq;
190}
191
192static void pcie_set_port_type(struct rt_pci_device *pdev)
193{

Callers 1

rt_pci_setup_deviceFunction · 0.85

Calls 1

rt_pci_read_config_u8Function · 0.85

Tested by

no test coverage detected