/linux-6.14.4/drivers/pci/controller/ |
D | pci-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * PCIe host controller driver for Tegra SoCs 8 * Based on NVIDIA PCIe driver 9 * Copyright (c) 2008-2009, NVIDIA Corporation. 11 * Bits taken from arch/arm/mach-dove/pcie.c 86 #define AFI_CONFIGURATION_EN_FPCI (1 << 0) 87 #define AFI_CONFIGURATION_CLKEN_OVERRIDE (1 << 31) 92 #define AFI_INTR_MASK_INT_MASK (1 << 0) 93 #define AFI_INTR_MASK_MSI_MASK (1 << 8) 97 #define AFI_INTR_INI_SLAVE_ERROR 1 [all …]
|
D | pcie-altera.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright Altera Corporation (C) 2013-2015. All rights reserved 6 * Description: Altera PCIe host controller driver 44 #define S10_RP_CFG_ADDR(pcie, reg) \ argument 45 (((pcie)->hip_base) + (reg) + (1 << 20)) 46 #define S10_RP_SECONDARY(pcie) \ argument 47 readb(S10_RP_CFG_ADDR(pcie, PCI_SECONDARY_BUS)) 49 /* TLP configuration type 0 and 1 */ 52 #define TLP_FMTTYPE_CFGRD1 0x05 /* Configuration Read Type 1 */ 53 #define TLP_FMTTYPE_CFGWR1 0x45 /* Configuration Write Type 1 */ [all …]
|
D | pcie-brcmstb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /* Copyright (C) 2009 - 2019 Broadcom */ 26 #include <linux/pci-ecam.h> 37 /* BRCM_PCIE_CAP_REGS - Offset for the mandatory capability config regs */ 40 /* Broadcom STB PCIe Register Offsets */ 160 /* PCIe parameters */ 165 #define BRCM_INT_PCI_MSI_MASK GENMASK(BRCM_INT_PCI_MSI_NR - 1, 0) 167 32 - BRCM_INT_PCI_MSI_LEGACY_NR) 182 #define MDIO_RD_DONE(x) (((x) & MDIO_DATA_DONE_MASK) ? 1 : 0) 183 #define MDIO_WT_DONE(x) (((x) & MDIO_DATA_DONE_MASK) ? 0 : 1) [all …]
|
D | pci-aardvark.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the Aardvark PCIe controller, used on Marvell Armada 20 #include <linux/pci-ecam.h> 29 #include "../pci-bridge-emul.h" 31 /* PCIe core registers */ 52 #define PIO_COMPLETION_STATUS_UR 1 72 #define SPEED_GEN_2 1 74 #define IS_RC_MSK 1 79 #define LANE_COUNT_2 (1 << LANE_CNT_SHIFT) 96 #define PCIE_CORE_REF_CLK_TX_ENABLE BIT(1) [all …]
|
D | pcie-rcar-host.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe driver for Renesas R-Car SoCs 4 * Copyright (C) 2014-2020 Renesas Electronics Europe Ltd 7 * arch/sh/drivers/pci/pcie-sh7786.c 8 * arch/sh/drivers/pci/ops-sh7786.c 9 * Copyright (C) 2009 - 2011 Paul Mundt 16 #include <linux/clk-provider.h> 34 #include "pcie-rcar.h" 45 /* Structure representing the PCIe interface */ 47 struct rcar_pcie pcie; member [all …]
|
D | pcie-rcar-ep.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe endpoint driver for Renesas R-Car SoCs 6 * Author: Lad Prabhakar <prabhakar.mahadev-[email protected]> 13 #include <linux/pci-epc.h> 17 #include "pcie-rcar.h" 19 #define RCAR_EPC_MAX_FUNCTIONS 1 21 /* Structure representing the PCIe interface */ 23 struct rcar_pcie pcie; member 33 static void rcar_pcie_ep_hw_init(struct rcar_pcie *pcie) in rcar_pcie_ep_hw_init() argument 37 rcar_pci_write_reg(pcie, 0, PCIETCTLR); in rcar_pcie_ep_hw_init() [all …]
|
D | pcie-iproc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2014 Hauke Mehrtens <hauke@hauke-m.de> 9 #include <linux/pci-ecam.h> 17 #include <linux/irqchip/arm-gic-v3.h> 24 #include "pcie-iproc.h" 28 #define EP_MODE_SURVIVE_PERST_SHIFT 1 43 #define CFG_ADDR_CFG_TYPE_1 1 56 #define CFG_RD_UR 1 73 #define OARR_SIZE_CFG_SHIFT 1 91 * struct iproc_pcie_ob_map - iProc PCIe outbound mapping controller-specific [all …]
|
D | pcie-mediatek-gen3.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MediaTek PCIe host controller driver. 11 #include <linux/clk-provider.h> 60 #define PCIE_PHY_RSTB BIT(1) 78 #define PCIE_MSI_ENABLE GENMASK(PCIE_MSI_SET_NUM + 8 - 1, 8) 82 GENMASK(PCIE_INTX_SHIFT + PCI_NUM_INTX - 1, PCIE_INTX_SHIFT) 86 #define PCIE_MSI_SET_ENABLE GENMASK(PCIE_MSI_SET_NUM - 1, 0) 108 #define PCIE_DISABLE_DVFSRC_VLT_REQ BIT(1) 120 (((((size) - 1) << 1) & GENMASK(6, 1)) | PCIE_ATR_EN) 123 #define PCIE_ATR_TYPE_IO PCIE_ATR_ID(1) [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/phy/ |
D | qcom,sc8280xp-qmp-pcie-phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-pcie-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm QMP PHY controller (PCIe, SC8280XP) 10 - Vinod Koul <[email protected]> 14 controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB. 19 - qcom,qcs615-qmp-gen3x1-pcie-phy 20 - qcom,sa8775p-qmp-gen4x2-pcie-phy 21 - qcom,sa8775p-qmp-gen4x4-pcie-phy [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/pci/ |
D | fsl,imx6q-pcie-common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/fsl,imx6q-pcie-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Freescale i.MX6 PCIe RC/EP controller 10 - Lucas Stach <[email protected]> 11 - Richard Zhu <[email protected]> 14 Generic Freescale i.MX PCIe Root Port and Endpoint controller 22 clock-names: 26 num-lanes: [all …]
|
D | qcom,pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/qcom,pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <[email protected]> 11 - Manivannan Sadhasivam <[email protected]> 14 Qualcomm PCIe root complex controller is based on the Synopsys DesignWare 15 PCIe IP. 20 - enum: 21 - qcom,pcie-apq8064 [all …]
|
D | mvebu-pci.txt | 1 * Marvell EBU PCIe interfaces 5 - compatible: one of the following values: 6 marvell,armada-370-pcie 7 marvell,armada-xp-pcie 8 marvell,dove-pcie 9 marvell,kirkwood-pcie 10 - #address-cells, set to <3> 11 - #size-cells, set to <2> 12 - #interrupt-cells, set to <1> 13 - bus-range: PCI bus numbers covered [all …]
|
D | fsl,layerscape-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/fsl,layerscape-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Freescale Layerscape PCIe Root Complex(RC) controller 10 - Frank Li <[email protected]> 13 This PCIe RC controller is based on the Synopsys DesignWare PCIe IP 16 which is used to describe the PLL settings at the time of chip-reset. 19 register available in the Freescale PCIe controller register set, 20 which can allow determining the underlying DesignWare PCIe controller version [all …]
|
D | qcom,pcie-ep.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/qcom,pcie-ep.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm PCIe Endpoint Controller 10 - Manivannan Sadhasivam <[email protected]> 15 - enum: 16 - qcom,sa8775p-pcie-ep 17 - qcom,sdx55-pcie-ep 18 - qcom,sm8450-pcie-ep [all …]
|
D | mediatek-pcie.txt | 1 MediaTek Gen2 PCIe controller 4 - compatible: Should contain one of the following strings: 5 "mediatek,mt2701-pcie" 6 "mediatek,mt2712-pcie" 7 "mediatek,mt7622-pcie" 8 "mediatek,mt7623-pcie" 9 "mediatek,mt7629-pcie" 10 "airoha,en7523-pcie" 11 - device_type: Must be "pci" 12 - reg: Base addresses and lengths of the root ports. [all …]
|
D | fsl,imx6q-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/fsl,imx6q-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Freescale i.MX6 PCIe host controller 10 - Lucas Stach <[email protected]> 11 - Richard Zhu <[email protected]> 14 This PCIe host controller is based on the Synopsys DesignWare PCIe IP 15 and thus inherits all the common properties defined in snps,dw-pcie.yaml. 19 See fsl,imx6q-pcie-ep.yaml for details on the Endpoint mode device tree [all …]
|
D | ti,j721e-pci-ep.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 4 --- 5 $id: http://devicetree.org/schemas/pci/ti,j721e-pci-ep.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TI J721E PCI EP (PCIe Wrapper) 11 - Kishon Vijay Abraham I <[email protected]> 16 - const: ti,j721e-pcie-ep 17 - const: ti,j784s4-pcie-ep 18 - description: PCIe EP controller in AM64 [all …]
|
/linux-6.14.4/drivers/pci/controller/mobiveil/ |
D | pcie-mobiveil-host.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe host controller driver for Mobiveil PCIe Host controller 6 * Copyright 2019-2020 NXP 25 #include "pcie-mobiveil.h" 37 if ((bus->primary == to_pci_host_bridge(bus->bridge)->busnr) && (PCI_SLOT(devfn) > 0)) in mobiveil_pcie_valid_device() 44 * mobiveil_pcie_map_bus - routine to get the configuration base of either 50 struct mobiveil_pcie *pcie = bus->sysdata; in mobiveil_pcie_map_bus() local 51 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_map_bus() 59 return pcie->csr_axi_slave_base + where; in mobiveil_pcie_map_bus() 67 value = bus->number << PAB_BUS_SHIFT | in mobiveil_pcie_map_bus() [all …]
|
D | pcie-mobiveil.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe host controller driver for Mobiveil PCIe Host controller 18 #include "pcie-mobiveil.h" 21 * mobiveil_pcie_sel_page - routine to access paged register 28 static void mobiveil_pcie_sel_page(struct mobiveil_pcie *pcie, u8 pg_idx) in mobiveil_pcie_sel_page() argument 32 val = readl(pcie->csr_axi_slave_base + PAB_CTRL); in mobiveil_pcie_sel_page() 36 writel(val, pcie->csr_axi_slave_base + PAB_CTRL); in mobiveil_pcie_sel_page() 39 static void __iomem *mobiveil_pcie_comp_addr(struct mobiveil_pcie *pcie, in mobiveil_pcie_comp_addr() argument 44 mobiveil_pcie_sel_page(pcie, 0); in mobiveil_pcie_comp_addr() 45 return pcie->csr_axi_slave_base + off; in mobiveil_pcie_comp_addr() [all …]
|
/linux-6.14.4/drivers/pci/controller/cadence/ |
D | pcie-cadence-ep.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Cadence PCIe endpoint controller driver. 4 // Author: Cyrille Pitchen <cyrille.pitchen@free-electrons.com> 10 #include <linux/pci-epc.h> 14 #include "pcie-cadence.h" 20 static u8 cdns_pcie_get_fn_from_vfn(struct cdns_pcie *pcie, u8 fn, u8 vfn) in cdns_pcie_get_fn_from_vfn() argument 28 first_vf_offset = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_OFFSET); in cdns_pcie_get_fn_from_vfn() 29 stride = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_STRIDE); in cdns_pcie_get_fn_from_vfn() 30 fn = fn + first_vf_offset + ((vfn - 1) * stride); in cdns_pcie_get_fn_from_vfn() 40 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_write_header() local [all …]
|
D | pci-j721e.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * pci-j721e - PCIe controller driver for TI's J721E SoCs 5 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com 10 #include <linux/clk-provider.h> 25 #include "pcie-cadence.h" 27 #define cdns_pcie_to_rc(p) container_of(p, struct cdns_pcie_rc, pcie) 32 #define LINK_DOWN BIT(1) 39 #define LINK_STATUS GENMASK(1, 0) 51 #define ACSPCIE_PAD_DISABLE_MASK GENMASK(1, 0) 52 #define GENERATION_SEL_MASK GENMASK(1, 0) [all …]
|
/linux-6.14.4/drivers/pci/controller/dwc/ |
D | pcie-intel-gw.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe host controller driver for Intel Gateway SoCs 20 #include "pcie-designware.h" 22 #define PORT_AFR_N_FTS_GEN12_DFT (SZ_128 - 1) 26 /* PCIe Application logic Registers */ 84 static inline void pcie_app_wr(struct intel_pcie *pcie, u32 ofs, u32 val) in pcie_app_wr() argument 86 writel(val, pcie->app_base + ofs); in pcie_app_wr() 89 static void pcie_app_wr_mask(struct intel_pcie *pcie, u32 ofs, in pcie_app_wr_mask() argument 92 pcie_update_bits(pcie->app_base, ofs, mask, val); in pcie_app_wr_mask() 95 static inline u32 pcie_rc_cfg_rd(struct intel_pcie *pcie, u32 ofs) in pcie_rc_cfg_rd() argument [all …]
|
D | pcie-tegra194.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * PCIe host controller driver for the following SoCs 7 * Copyright (C) 2019-2022 NVIDIA Corporation. 33 #include "pcie-designware.h" 35 #include <soc/tegra/bpmp-abi.h> 52 #define APPL_CTRL_HW_HOT_RST_MODE_MASK GENMASK(1, 0) 74 #define APPL_INTR_EN_L1_0_0_LINK_REQ_RST_NOT_INT_EN BIT(1) 79 #define APPL_INTR_STATUS_L1_0_0_LINK_REQ_RST_NOT_CHGED BIT(1) 88 #define APPL_INTR_STATUS_L1_15_CFG_BME_CHGED BIT(1) 111 #define APPL_INTR_EN_L1_18_CDM_REG_CHK_CMP_ERR BIT(1) [all …]
|
/linux-6.14.4/drivers/pci/controller/plda/ |
D | pcie-starfive.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * PCIe host controller driver for StarFive JH7110 Soc. 27 #include "pcie-plda.h" 67 * JH7110 PCIe port BAR0/1 can be configured as 64-bit prefetchable memory 68 * space. PCIe read and write requests targeting BAR0/1 are routed to so called 105 static int starfive_pcie_parse_dt(struct starfive_jh7110_pcie *pcie, in starfive_pcie_parse_dt() argument 110 pcie->num_clks = devm_clk_bulk_get_all(dev, &pcie->clks); in starfive_pcie_parse_dt() 111 if (pcie->num_clks < 0) in starfive_pcie_parse_dt() 112 return dev_err_probe(dev, pcie->num_clks, in starfive_pcie_parse_dt() 113 "failed to get pcie clocks\n"); in starfive_pcie_parse_dt() [all …]
|
/linux-6.14.4/drivers/net/can/ |
D | kvaser_pciefd.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 4 * - Kvaser linux pciefd driver (version 5.42) 5 * - PEAK linux canfd driver 22 MODULE_DESCRIPTION("CAN driver for Kvaser CAN/PCIe devices"); 54 /* Altera SerDes Enable 64-bit DMA address translation */ 96 #define KVASER_PCIEFD_SYSID_BUILD_SEQ_MASK GENMASK(15, 1) 98 /* Reset DMA buffer 0, 1 and FIFO offset */ 103 /* DMA underflow, buffer 0 and 1 */ 106 /* DMA overflow, buffer 0 and 1 */ 109 /* DMA packet done, buffer 0 and 1 */ [all …]
|