| /OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/ |
| H A D | Makefile | 7 obj-$(CONFIG_VIDEO_ATOMISP) += pci/atomisp_gmin_platform.o 16 pci/atomisp_acc.o \ 17 pci/atomisp_cmd.o \ 18 pci/atomisp_compat_css20.o \ 19 pci/atomisp_compat_ioctl32.o \ 20 pci/atomisp_csi2.o \ 21 pci/atomisp_drvfs.o \ 22 pci/atomisp_file.o \ 23 pci/atomisp_fops.o \ 24 pci/atomisp_ioctl.o \ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pci/controller/dwc/ |
| H A D | pcie-designware.c | 16 #include "../../pci.h" 21 * are for configuring host controllers, which are bridges *to* PCI devices but 22 * are not PCI devices themselves. 24 static u8 __dw_pcie_find_next_cap(struct dw_pcie *pci, u8 cap_ptr, in __dw_pcie_find_next_cap() argument 33 reg = dw_pcie_readw_dbi(pci, cap_ptr); in __dw_pcie_find_next_cap() 43 return __dw_pcie_find_next_cap(pci, next_cap_ptr, cap); in __dw_pcie_find_next_cap() 46 u8 dw_pcie_find_capability(struct dw_pcie *pci, u8 cap) in dw_pcie_find_capability() argument 51 reg = dw_pcie_readw_dbi(pci, PCI_CAPABILITY_LIST); in dw_pcie_find_capability() 54 return __dw_pcie_find_next_cap(pci, next_cap_ptr, cap); in dw_pcie_find_capability() 58 static u16 dw_pcie_find_next_ext_capability(struct dw_pcie *pci, u16 start, in dw_pcie_find_next_ext_capability() argument [all …]
|
| H A D | pcie-designware-ep.c | 12 #include <linux/pci-epc.h> 13 #include <linux/pci-epf.h> 15 #include "../../pci.h" 56 static void __dw_pcie_ep_reset_bar(struct dw_pcie *pci, u8 func_no, in __dw_pcie_ep_reset_bar() argument 61 struct dw_pcie_ep *ep = &pci->ep; in __dw_pcie_ep_reset_bar() 66 dw_pcie_dbi_ro_wr_en(pci); in __dw_pcie_ep_reset_bar() 67 dw_pcie_writel_dbi2(pci, reg, 0x0); in __dw_pcie_ep_reset_bar() 68 dw_pcie_writel_dbi(pci, reg, 0x0); in __dw_pcie_ep_reset_bar() 70 dw_pcie_writel_dbi2(pci, reg + 4, 0x0); in __dw_pcie_ep_reset_bar() 71 dw_pcie_writel_dbi(pci, reg + 4, 0x0); in __dw_pcie_ep_reset_bar() [all …]
|
| H A D | pcie-dw-rockchip.c | 31 #include <linux/pci.h> 43 #include <linux/pci-epf.h> 46 #include "../../pci.h" 155 struct dw_pcie *pci; member 250 dev_err(rk_pcie->pci->dev, "Read APB address failed\n"); in __rk_pcie_read_apb() 262 dev_err(rk_pcie->pci->dev, "Write APB address failed\n"); in __rk_pcie_write_apb() 276 static u8 rk_pcie_iatu_unroll_enabled(struct dw_pcie *pci) in rk_pcie_iatu_unroll_enabled() argument 280 val = dw_pcie_readl_dbi(pci, PCIE_ATU_VIEWPORT); in rk_pcie_iatu_unroll_enabled() 287 static void rk_pcie_writel_atu(struct dw_pcie *pci, u32 reg, u32 val) in rk_pcie_writel_atu() argument 291 if (pci->ops->write_dbi) { in rk_pcie_writel_atu() [all …]
|
| H A D | pcie-dw-ep-rockchip.c | 116 struct dw_pcie pci; member 221 rockchip->pci.dbi_base = devm_ioremap_resource(dev, dbi_base); in rockchip_pcie_resource_get() 222 if (IS_ERR(rockchip->pci.dbi_base)) in rockchip_pcie_resource_get() 223 return PTR_ERR(rockchip->pci.dbi_base); in rockchip_pcie_resource_get() 224 rockchip->pci.atu_base = rockchip->pci.dbi_base + DEFAULT_DBI_ATU_OFFSET; in rockchip_pcie_resource_get() 327 static int rockchip_pcie_link_up(struct dw_pcie *pci) in rockchip_pcie_link_up() argument 329 struct rockchip_pcie *rockchip = to_rockchip_pcie(pci); in rockchip_pcie_link_up() 338 static int rockchip_pcie_start_link(struct dw_pcie *pci) in rockchip_pcie_start_link() argument 340 struct rockchip_pcie *rockchip = to_rockchip_pcie(pci); in rockchip_pcie_start_link() 355 struct device *dev = rockchip->pci.dev; in rockchip_pcie_phy_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
| H A D | base.c | 28 #include <core/pci.h> 32 nvkm_pci_rd32(struct nvkm_pci *pci, u16 addr) in nvkm_pci_rd32() argument 34 return pci->func->rd32(pci, addr); in nvkm_pci_rd32() 38 nvkm_pci_wr08(struct nvkm_pci *pci, u16 addr, u8 data) in nvkm_pci_wr08() argument 40 pci->func->wr08(pci, addr, data); in nvkm_pci_wr08() 44 nvkm_pci_wr32(struct nvkm_pci *pci, u16 addr, u32 data) in nvkm_pci_wr32() argument 46 pci->func->wr32(pci, addr, data); in nvkm_pci_wr32() 50 nvkm_pci_mask(struct nvkm_pci *pci, u16 addr, u32 mask, u32 value) in nvkm_pci_mask() argument 52 u32 data = pci->func->rd32(pci, addr); in nvkm_pci_mask() 53 pci->func->wr32(pci, addr, (data & ~mask) | value); in nvkm_pci_mask() [all …]
|
| H A D | pcie.c | 51 nvkm_pcie_get_version(struct nvkm_pci *pci) in nvkm_pcie_get_version() argument 53 if (!pci->func->pcie.version) in nvkm_pcie_get_version() 56 return pci->func->pcie.version(pci); in nvkm_pcie_get_version() 60 nvkm_pcie_get_max_version(struct nvkm_pci *pci) in nvkm_pcie_get_max_version() argument 62 if (!pci->func->pcie.version_supported) in nvkm_pcie_get_max_version() 65 return pci->func->pcie.version_supported(pci); in nvkm_pcie_get_max_version() 69 nvkm_pcie_set_version(struct nvkm_pci *pci, int version) in nvkm_pcie_set_version() argument 71 if (!pci->func->pcie.set_version) in nvkm_pcie_set_version() 74 nvkm_trace(&pci->subdev, "set to version %i\n", version); in nvkm_pcie_set_version() 75 pci->func->pcie.set_version(pci, version); in nvkm_pcie_set_version() [all …]
|
| H A D | agp.c | 38 /* SiS 761 does not support AGP cards, use PCI mode */ 44 nvkm_agp_fini(struct nvkm_pci *pci) in nvkm_agp_fini() argument 46 if (pci->agp.acquired) { in nvkm_agp_fini() 47 agp_backend_release(pci->agp.bridge); in nvkm_agp_fini() 48 pci->agp.acquired = false; in nvkm_agp_fini() 56 nvkm_agp_preinit(struct nvkm_pci *pci) in nvkm_agp_preinit() argument 58 struct nvkm_device *device = pci->subdev.device; in nvkm_agp_preinit() 59 u32 mode = nvkm_pci_rd32(pci, 0x004c); in nvkm_agp_preinit() 66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit() 67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/edac/ |
| H A D | edac_pci.c | 2 * EDAC PCI component 34 struct edac_pci_ctl_info *pci; in edac_pci_alloc_ctl_info() local 40 pci = edac_align_ptr(&p, sizeof(*pci), 1); in edac_pci_alloc_ctl_info() 45 pci = kzalloc(size, GFP_KERNEL); in edac_pci_alloc_ctl_info() 46 if (pci == NULL) in edac_pci_alloc_ctl_info() 50 pvt = sz_pvt ? ((char *)pci) + ((unsigned long)pvt) : NULL; in edac_pci_alloc_ctl_info() 52 pci->pvt_info = pvt; in edac_pci_alloc_ctl_info() 53 pci->op_state = OP_ALLOC; in edac_pci_alloc_ctl_info() 55 snprintf(pci->name, strlen(edac_pci_name) + 1, "%s", edac_pci_name); in edac_pci_alloc_ctl_info() 57 return pci; in edac_pci_alloc_ctl_info() [all …]
|
| H A D | edac_pci_sysfs.c | 20 static int check_pci_errors; /* default NO check PCI parity */ 21 static int edac_pci_panic_on_pe; /* default NO panic on PCI Parity */ 22 static int edac_pci_log_pe = 1; /* log PCI parity errors */ 23 static int edac_pci_log_npe = 1; /* log PCI non-parity error errors */ 58 /**************************** EDAC PCI sysfs instance *******************/ 59 static ssize_t instance_pe_count_show(struct edac_pci_ctl_info *pci, char *data) in instance_pe_count_show() argument 61 return sprintf(data, "%u\n", atomic_read(&pci->counters.pe_count)); in instance_pe_count_show() 64 static ssize_t instance_npe_count_show(struct edac_pci_ctl_info *pci, in instance_npe_count_show() argument 67 return sprintf(data, "%u\n", atomic_read(&pci->counters.npe_count)); in instance_npe_count_show() 76 struct edac_pci_ctl_info *pci; in edac_pci_instance_release() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pci/ |
| H A D | Kconfig | 3 # PCI configuration 6 # select this to offer the PCI prompt 10 # select this to unconditionally force on PCI support 14 select PCI 16 menuconfig PCI config 17 bool "PCI support" 20 This option enables support for the PCI local bus, including 21 support for PCI-X and the foundations for PCI Express support. 24 if PCI 28 depends on PCI [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A D | pinctrl-rk805.c | 288 struct rk805_pctrl_info *pci = gpiochip_get_data(chip); in rk805_gpio_get() local 291 if (!pci->pin_cfg[offset].val_msk) { in rk805_gpio_get() 292 dev_dbg(pci->dev, "getting gpio%d value is not support\n", in rk805_gpio_get() 297 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); in rk805_gpio_get() 299 dev_err(pci->dev, "get gpio%d value failed\n", offset); in rk805_gpio_get() 303 return !!(val & pci->pin_cfg[offset].val_msk); in rk805_gpio_get() 310 struct rk805_pctrl_info *pci = gpiochip_get_data(chip); in rk805_gpio_set() local 313 if (!pci->pin_cfg[offset].val_msk) in rk805_gpio_set() 316 ret = regmap_update_bits(pci->rk808->regmap, in rk805_gpio_set() 317 pci->pin_cfg[offset].reg, in rk805_gpio_set() [all …]
|
| H A D | pinctrl-rk806.c | 197 struct rk806_pctrl_info *pci = gpiochip_get_data(chip); in rk806_gpio_get() local 200 if (!pci->pin_cfg[offset].val_msk) { in rk806_gpio_get() 201 dev_dbg(pci->dev, "getting gpio%d value is not support\n", in rk806_gpio_get() 206 ret = regmap_read(pci->rk806->regmap, pci->pin_cfg[offset].reg, &val); in rk806_gpio_get() 208 dev_err(pci->dev, "get gpio%d value failed\n", offset); in rk806_gpio_get() 212 return !!(val & pci->pin_cfg[offset].val_msk); in rk806_gpio_get() 219 struct rk806_pctrl_info *pci = gpiochip_get_data(chip); in rk806_gpio_set() local 222 if (!pci->pin_cfg[offset].val_msk) in rk806_gpio_set() 225 ret = regmap_update_bits(pci->rk806->regmap, in rk806_gpio_set() 226 pci->pin_cfg[offset].reg, in rk806_gpio_set() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/ |
| H A D | Kconfig | 3 if PCI 6 bool "Media PCI Adapters" 8 Enable media drivers for PCI/PCIe bus. 15 source "drivers/media/pci/meye/Kconfig" 16 source "drivers/media/pci/solo6x10/Kconfig" 17 source "drivers/media/pci/sta2x11/Kconfig" 18 source "drivers/media/pci/tw5864/Kconfig" 19 source "drivers/media/pci/tw68/Kconfig" 20 source "drivers/media/pci/tw686x/Kconfig" 25 source "drivers/media/pci/ivtv/Kconfig" [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/PCI/endpoint/ |
| H A D | pci-endpoint.rst | 5 This document is a guide to use the PCI Endpoint Framework in order to create 12 Linux has a comprehensive PCI subsystem to support PCI controllers that 13 operates in Root Complex mode. The subsystem has capability to scan PCI bus, 14 assign memory resources and IRQ resources, load PCI driver (based on 18 However the PCI controller IP integrated in some SoCs is capable of operating 19 either in Root Complex mode or Endpoint mode. PCI Endpoint Framework will 24 PCI Endpoint Core 27 The PCI Endpoint Core layer comprises 3 components: the Endpoint Controller 31 PCI Endpoint Controller(EPC) Library 38 APIs for the PCI controller Driver [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/comedi/ |
| H A D | Kconfig | 423 tristate "Intelligent Instruments PCI-20001C carrier support" 426 Enable support for Intelligent Instruments PCI-20001C carrier 427 PCI-20001, PCI-20006 and PCI-20341 563 tristate "Comedi PCI drivers" 564 depends on PCI 566 Enable support for comedi PCI drivers. 574 tristate "Generic PCI based 8255 digital i/o board support" 577 Enable support for PCI based 8255 digital i/o boards. This driver 578 provides a PCI wrapper around the generic 8255 driver. 581 ADlink - PCI-7224, PCI-7248, and PCI-7296 [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/PCI/ |
| H A D | pciebus-howto.rst | 5 The PCI Express Port Bus Driver Guide HOWTO 14 This guide describes the basics of the PCI Express Port Bus driver 16 register/unregister with the PCI Express Port Bus Driver. 19 What is the PCI Express Port Bus Driver 22 A PCI Express Port is a logical PCI-PCI Bridge structure. There 23 are two types of PCI Express Port: the Root Port and the Switch 24 Port. The Root Port originates a PCI Express link from a PCI Express 25 Root Complex and the Switch Port connects PCI Express links to 26 internal logical PCI buses. The Switch Port, which has its secondary 30 PCI Express link from the PCI Express Switch. [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/atom/sst/ |
| H A D | sst_pci.c | 3 * sst_pci.c - SST (LPE) driver init file for pci enumeration. 15 #include <linux/pci.h> 28 struct pci_dev *pci = ctx->pci; in sst_platform_get_resources() local 30 ret = pci_request_regions(pci, SST_DRV_NAME); in sst_platform_get_resources() 37 ctx->ddr_base = pci_resource_start(pci, 0); in sst_platform_get_resources() 51 ctx->ddr_end = pci_resource_end(pci, 0); in sst_platform_get_resources() 53 ctx->ddr = pcim_iomap(pci, 0, in sst_platform_get_resources() 54 pci_resource_len(pci, 0)); in sst_platform_get_resources() 64 ctx->shim_phy_add = pci_resource_start(pci, 1); in sst_platform_get_resources() 65 ctx->shim = pcim_iomap(pci, 1, pci_resource_len(pci, 1)); in sst_platform_get_resources() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-ixp4xx/ |
| H A D | Makefile | 6 obj-pci-y := 7 obj-pci-n := 10 obj-pci-$(CONFIG_MACH_IXP4XX_OF) += ixp4xx-of.o 12 obj-pci-$(CONFIG_ARCH_IXDP4XX) += ixdp425-pci.o 13 obj-pci-$(CONFIG_MACH_AVILA) += avila-pci.o 14 obj-pci-$(CONFIG_MACH_IXDPG425) += ixdpg425-pci.o 15 obj-pci-$(CONFIG_ARCH_ADI_COYOTE) += coyote-pci.o 16 obj-pci-$(CONFIG_MACH_GTWX5715) += gtwx5715-pci.o 17 obj-pci-$(CONFIG_MACH_MICCPT) += miccpt-pci.o 18 obj-pci-$(CONFIG_MACH_NSLU2) += nslu2-pci.o [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | sysfs-bus-pci | 1 What: /sys/bus/pci/drivers/.../bind 3 Contact: linux-pci@vger.kernel.org 10 found in /sys/bus/pci/devices/. For example:: 12 # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/bind 16 What: /sys/bus/pci/drivers/.../unbind 18 Contact: linux-pci@vger.kernel.org 25 found in /sys/bus/pci/devices/. For example:: 27 # echo 0000:00:19.0 > /sys/bus/pci/drivers/foo/unbind 31 What: /sys/bus/pci/drivers/.../new_id 33 Contact: linux-pci@vger.kernel.org [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-sa1100/ |
| H A D | pci-nanoengine.c | 3 * linux/arch/arm/mach-sa1100/pci-nanoengine.c 5 * PCI functions for BSE nanoEngine PCI 11 #include <linux/pci.h> 13 #include <asm/mach/pci.h> 42 DEFINE_RES_IO_NAMED(0x400, 0x400, "PCI IO"); 45 .name = "PCI non-prefetchable", 48 * but PCI reports just 128 + 8 kbytes. */ 55 * nanoEngine PCI reports 1 Megabyte of prefetchable memory, but it 62 pci 0000:00:00.0: [8086:1209] type 0 class 0x000200 63 pci 0000:00:00.0: reg 10: [mem 0x00021000-0x00021fff] [all …]
|
| /OK3568_Linux_fs/u-boot/doc/driver-model/ |
| H A D | pci-info.txt | 1 PCI with Driver Model 8 uclass_get_device_by_seq() to get the PCI bus for a particular bus number. 14 pci0 = &pci; 17 pci: pci-controller { 18 compatible = "sandbox,pci"; 26 The call to uclass_get_device() will cause the PCI bus to be probed. 29 they are bound to a generic PCI driver which does nothing. 35 touched on PCI (eg: a call to pci_find_devices()) it will not be probed. 37 PCI devices can appear in the flattened device tree. If they do this serves to 39 first. Each PCI device node must have a compatible string list as well as a [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/qla2xxx/ |
| H A D | qla_devtbl.h | 8 "QLA2340", "133MHz PCI-X to 2Gb FC, Single Channel", /* 0x100 */ 9 "QLA2342", "133MHz PCI-X to 2Gb FC, Dual Channel", /* 0x101 */ 10 "QLA2344", "133MHz PCI-X to 2Gb FC, Quad Channel", /* 0x102 */ 14 "QLA2310", "Sun 66MHz PCI-X to 2Gb FC, Single Channel", /* 0x106 */ 15 "QLA2332", "Sun 66MHz PCI-X to 2Gb FC, Single Channel", /* 0x107 */ 18 "QLA2342", "Sun 133MHz PCI-X to 2Gb FC, Dual Channel", /* 0x10a */ 20 "QLA2350", "133MHz PCI-X to 2Gb FC, Single Channel", /* 0x10c */ 21 "QLA2352", "133MHz PCI-X to 2Gb FC, Dual Channel", /* 0x10d */ 22 "QLA2352", "Sun 133MHz PCI-X to 2Gb FC, Dual Channel", /* 0x10e */ 29 "QLA2360", "133MHz PCI-X to 2Gb FC, Single Channel", /* 0x115 */ [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/pci/ |
| H A D | Makefile | 3 # Makefile for the PCI specific kernel interface routines under Linux. 6 obj-y += pci.o 7 obj-$(CONFIG_PCI_DRIVERS_LEGACY)+= pci-legacy.o 8 obj-$(CONFIG_PCI_DRIVERS_GENERIC)+= pci-generic.o 11 # PCI bus host bridge specific code 17 obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o 19 obj-$(CONFIG_BCM47XX) += pci-bcm47xx.o 20 obj-$(CONFIG_BCM63XX) += pci-bcm63xx.o fixup-bcm63xx.o \ 22 obj-$(CONFIG_MIPS_ALCHEMY) += pci-alchemy.o 23 obj-$(CONFIG_PCI_AR2315) += pci-ar2315.o [all …]
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/include/asm/ |
| H A D | fsl_pci.h | 12 #include <pci.h> 18 /* Freescale-specific PCI config registers */ 34 * Common PCI/PCIE Register structure for mpc85xx and mpc86xx 38 * PCI Translation Registers 68 /* PCI/PCI Express Registers */ 70 u32 cfg_addr; /* 0x000 - PCI Configuration Address Register */ 71 u32 cfg_data; /* 0x004 - PCI Configuration Data Register */ 72 u32 int_ack; /* 0x008 - PCI Interrupt Acknowledge Register */ 73 u32 out_comp_to; /* 0x00C - PCI Outbound Completion Timeout Register */ 74 u32 out_conf_to; /* 0x010 - PCI Configuration Timeout Register */ [all …]
|