|
26 | 26 | * @max_regions: maximum number of regions supported by hardware |
27 | 27 | * @ob_region_map: bitmask of mapped outbound regions |
28 | 28 | * @ob_addr: base addresses in the AXI bus where the outbound regions start |
29 | | - * @irq_phys_addr: base address on the AXI bus where the MSI/legacy IRQ |
| 29 | + * @irq_phys_addr: base address on the AXI bus where the MSI/INTX IRQ |
30 | 30 | * dedicated outbound regions is mapped. |
31 | 31 | * @irq_cpu_addr: base address in the CPU space where a write access triggers |
32 | | - * the sending of a memory write (MSI) / normal message (legacy |
| 32 | + * the sending of a memory write (MSI) / normal message (INTX |
33 | 33 | * IRQ) TLP through the PCIe bus. |
34 | | - * @irq_pci_addr: used to save the current mapping of the MSI/legacy IRQ |
| 34 | + * @irq_pci_addr: used to save the current mapping of the MSI/INTX IRQ |
35 | 35 | * dedicated outbound region. |
36 | 36 | * @irq_pci_fn: the latest PCI function that has updated the mapping of |
37 | | - * the MSI/legacy IRQ dedicated outbound region. |
38 | | - * @irq_pending: bitmask of asserted legacy IRQs. |
| 37 | + * the MSI/INTX IRQ dedicated outbound region. |
| 38 | + * @irq_pending: bitmask of asserted INTX IRQs. |
39 | 39 | */ |
40 | 40 | struct rockchip_pcie_ep { |
41 | 41 | struct rockchip_pcie rockchip; |
@@ -325,8 +325,8 @@ static void rockchip_pcie_ep_assert_intx(struct rockchip_pcie_ep *ep, u8 fn, |
325 | 325 | } |
326 | 326 | } |
327 | 327 |
|
328 | | -static int rockchip_pcie_ep_send_legacy_irq(struct rockchip_pcie_ep *ep, u8 fn, |
329 | | - u8 intx) |
| 328 | +static int rockchip_pcie_ep_send_intx_irq(struct rockchip_pcie_ep *ep, u8 fn, |
| 329 | + u8 intx) |
330 | 330 | { |
331 | 331 | u16 cmd; |
332 | 332 |
|
@@ -413,7 +413,7 @@ static int rockchip_pcie_ep_raise_irq(struct pci_epc *epc, u8 fn, u8 vfn, |
413 | 413 |
|
414 | 414 | switch (type) { |
415 | 415 | case PCI_IRQ_INTX: |
416 | | - return rockchip_pcie_ep_send_legacy_irq(ep, fn, 0); |
| 416 | + return rockchip_pcie_ep_send_intx_irq(ep, fn, 0); |
417 | 417 | case PCI_IRQ_MSI: |
418 | 418 | return rockchip_pcie_ep_send_msi_irq(ep, fn, interrupt_num); |
419 | 419 | default: |
|
0 commit comments