pcie-altera.c (669cbc708122fc7a02282058a09f096200cee090) | pcie-altera.c (b64aa11eb2ddb0600361178286d7b7ed5a069fd8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright Altera Corporation (C) 2013-2015. All rights reserved 4 * 5 * Author: Ley Foon Tan <lftan@altera.com> 6 * Description: Altera PCIe host controller driver 7 */ 8 --- 795 unchanged lines hidden (view full) --- 804 cra_writel(pcie, P2A_INT_STS_ALL, P2A_INT_STATUS); 805 /* enable all interrupts */ 806 cra_writel(pcie, P2A_INT_ENA_ALL, P2A_INT_ENABLE); 807 altera_pcie_host_init(pcie); 808 809 bridge->sysdata = pcie; 810 bridge->busnr = pcie->root_bus_nr; 811 bridge->ops = &altera_pcie_ops; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright Altera Corporation (C) 2013-2015. All rights reserved 4 * 5 * Author: Ley Foon Tan <lftan@altera.com> 6 * Description: Altera PCIe host controller driver 7 */ 8 --- 795 unchanged lines hidden (view full) --- 804 cra_writel(pcie, P2A_INT_STS_ALL, P2A_INT_STATUS); 805 /* enable all interrupts */ 806 cra_writel(pcie, P2A_INT_ENA_ALL, P2A_INT_ENABLE); 807 altera_pcie_host_init(pcie); 808 809 bridge->sysdata = pcie; 810 bridge->busnr = pcie->root_bus_nr; 811 bridge->ops = &altera_pcie_ops; |
812 bridge->map_irq = of_irq_parse_and_map_pci; 813 bridge->swizzle_irq = pci_common_swizzle; | |
814 815 return pci_host_probe(bridge); 816} 817 818static int altera_pcie_remove(struct platform_device *pdev) 819{ 820 struct altera_pcie *pcie = platform_get_drvdata(pdev); 821 struct pci_host_bridge *bridge = pci_host_bridge_from_priv(pcie); --- 20 unchanged lines hidden --- | 812 813 return pci_host_probe(bridge); 814} 815 816static int altera_pcie_remove(struct platform_device *pdev) 817{ 818 struct altera_pcie *pcie = platform_get_drvdata(pdev); 819 struct pci_host_bridge *bridge = pci_host_bridge_from_priv(pcie); --- 20 unchanged lines hidden --- |