| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/interrupt-controller/ |
| H A D | loongson,pch-msi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: "http://devicetree.org/schemas/interrupt-controller/loongson,pch-msi.yaml#" 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 title: Loongson PCH MSI Controller 10 - Jiaxun Yang <jiaxun.yang@flygoat.com> 13 This interrupt controller is found in the Loongson LS7A family of PCH for 14 transforming interrupts from PCIe MSI into HyperTransport vectorized 19 const: loongson,pch-msi-1.0 22 maxItems: 1 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/irqchip/ |
| H A D | irq-loongson-pch-msi.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Loongson PCH MSI support 7 #define pr_fmt(fmt) "pch-msi: " fmt 10 #include <linux/msi.h> 39 .name = "PCH PCI MSI", 50 mutex_lock(&priv->msi_map_lock); in pch_msi_allocate_hwirq() 52 first = bitmap_find_free_region(priv->msi_map, priv->num_irqs, in pch_msi_allocate_hwirq() 55 mutex_unlock(&priv->msi_map_lock); in pch_msi_allocate_hwirq() 56 return -ENOSPC; in pch_msi_allocate_hwirq() 59 mutex_unlock(&priv->msi_map_lock); in pch_msi_allocate_hwirq() [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 23 default 1 216 bool "J-Core integrated AIC" if COMPILE_TEST 220 Support for the J-Core integrated AIC. 231 interrupt pins, as found on SH/R-Mobile and R-Car Gen1 SoCs. 234 bool "Renesas R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} IRQC support" if COMPILE_TEST 239 devices, as found on R-Mobile APE6, R-Car Gen{2,3} and RZ/G{1,2} SoCs. 274 tristate "TS-4800 IRQ controller" 279 Support for the TS-4800 FPGA IRQ controller 446 bool "C-SKY Multi Processor Interrupt Controller" [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/boot/dts/loongson/ |
| H A D | loongson64c_4core_ls7a.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "loongson64c-package.dtsi" 6 #include "ls7a-pch.dtsi" 9 compatible = "loongson,loongson64c-4core-ls7a"; 13 htvec: interrupt-controller@efdfb000080 { 14 compatible = "loongson,htvec-1.0"; 16 interrupt-controller; 17 #interrupt-cells = <1>; 19 interrupt-parent = <&liointc>; [all …]
|
| H A D | loongson64g_4core_ls7a.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "loongson64g-package.dtsi" 6 #include "ls7a-pch.dtsi" 9 compatible = "loongson,loongson64g-4core-ls7a"; 13 htvec: interrupt-controller@efdfb000080 { 14 compatible = "loongson,htvec-1.0"; 16 interrupt-controller; 17 #interrupt-cells = <1>; 19 interrupt-parent = <&liointc>; [all …]
|
| H A D | ls7a-pch.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 pch: bus@10000000 { label 5 compatible = "simple-bus"; 6 #address-cells = <2>; 7 #size-cells = <2>; 13 pic: interrupt-controller@10000000 { 14 compatible = "loongson,pch-pic-1.0"; 16 interrupt-controller; 17 interrupt-parent = <&htvec>; 18 loongson,pic-base-vec = <0>; [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/PCI/ |
| H A D | boot-interrupts.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 :Author: - Sean V Kelley <sean.v.kelley@linux.intel.com> 12 On PCI Express, interrupts are represented with either MSI or inbound 13 interrupt messages (Assert_INTx/Deassert_INTx). The integrated IO-APIC in a 15 MSI interrupts. If the IO-APIC is disabled (via the mask bits in the 16 IO-APIC table entries), the messages are routed to the legacy PCH. This 17 in-band interrupt mechanism was traditionally necessary for systems that 18 did not support the IO-APIC and for boot. Intel in the past has used the 20 protocol describes this in-band legacy wire-interrupt INTx mechanism for 21 I/O devices to signal PCI-style level interrupts. The subsequent paragraphs [all …]
|
| /OK3568_Linux_fs/kernel/drivers/ata/ |
| H A D | ahci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ahci.c - AHCI SATA support 6 * Please ALWAYS copy linux-ide@vger.kernel.org 9 * Copyright 2004-2005 Red Hat, Inc. 12 * as Documentation/driver-api/libata.rst 25 #include <linux/dma-mapping.h> 29 #include <linux/msi.h> 33 #include <linux/ahci-remap.h> 34 #include <linux/io-64-nonatomic-lo-hi.h> 249 { PCI_VDEVICE(INTEL, 0x06d6), board_ahci }, /* Comet Lake PCH-H RAID */ [all …]
|
| H A D | ata_piix.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ata_piix.c - Intel PATA/SATA controllers 6 * Please ALWAYS copy linux-ide@vger.kernel.org 9 * Copyright 2003-2005 Red Hat Inc 10 * Copyright 2003-2005 Jeff Garzik 14 * Copyright (C) 1998-1999 Andrzej Krzysztofowicz, Author and Maintainer 15 * Copyright (C) 1998-2000 Andre Hedrick <andre@linux-ide.org> 19 * as Documentation/driver-api/libata.rst 40 * PIIX4 errata #9 - Only on ultra obscure hw 41 * ICH3 errata #13 - Not observed to affect real hw [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pci/ |
| H A D | quirks.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file contains work-arounds for many known PCI hardware bugs. 5 * should be handled in arch-specific code. 63 if ((f->class == (u32) (dev->class >> f->class_shift) || in pci_do_fixups() 64 f->class == (u32) PCI_ANY_ID) && in pci_do_fixups() 65 (f->vendor == dev->vendor || in pci_do_fixups() 66 f->vendor == (u16) PCI_ANY_ID) && in pci_do_fixups() 67 (f->device == dev->device || in pci_do_fixups() 68 f->device == (u16) PCI_ANY_ID)) { in pci_do_fixups() 71 hook = offset_to_ptr(&f->hook_offset); in pci_do_fixups() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | dhd_pcie_linux.c | 21 * <<Broadcom-WL-IPTag/Open:>> 70 #include <linux/exynos-pci-ctrl.h> 88 #include <asm/dma-iommu.h> 104 #define HOST_WAKE 4 /* GPIO_0 (HOST_WAKE) - Output from WLAN */ 105 #define DEVICE_WAKE 5 /* GPIO_1 (DEVICE_WAKE) - Input to WLAN */ 141 void *os_cxt; /* Pointer to per-OS private data */ 299 char *wlan_smmu_node = "wlan-smmu-iova-address"; in dhdpcie_smmu_init() 300 int atomic_ctx = 1; in dhdpcie_smmu_init() 301 int s1_bypass = 1; in dhdpcie_smmu_init() 308 WARN(1, "failed to get device node of BRCM WLAN\n"); in dhdpcie_smmu_init() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_pcie_linux.c | 21 * <<Broadcom-WL-IPTag/Open:>> 72 #include <linux/exynos-pci-ctrl.h> 90 #include <asm/dma-iommu.h> 106 #define HOST_WAKE 4 /* GPIO_0 (HOST_WAKE) - Output from WLAN */ 107 #define DEVICE_WAKE 5 /* GPIO_1 (DEVICE_WAKE) - Input to WLAN */ 143 void *os_cxt; /* Pointer to per-OS private data */ 301 char *wlan_smmu_node = "wlan-smmu-iova-address"; in dhdpcie_smmu_init() 302 int atomic_ctx = 1; in dhdpcie_smmu_init() 303 int s1_bypass = 1; in dhdpcie_smmu_init() 310 WARN(1, "failed to get device node of BRCM WLAN\n"); in dhdpcie_smmu_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | dhd_pcie_linux.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 1999-2017, Broadcom Corporation 26 * <<Broadcom-WL-IPTag/Open:>> 28 * $Id: dhd_pcie_linux.c 707536 2017-06-28 04:23:48Z $ 67 #include <asm/dma-iommu.h> 81 *(uint32 *)(&s->cb[0]) = 0; *(uint32 *)(&s->cb[4]) = 0; \ 82 *(uint32 *)(&s->cb[8]) = 0; *(uint32 *)(&s->cb[12]) = 0; \ 83 *(uint32 *)(&s->cb[16]) = 0; *(uint32 *)(&s->cb[20]) = 0; \ 84 *(uint32 *)(&s->cb[24]) = 0; *(uint32 *)(&s->cb[28]) = 0; \ 88 #define HOST_WAKE 4 /* GPIO_0 (HOST_WAKE) - Output from WLAN */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | dhd_pcie_linux.c | 6 * Copyright (C) 1999-2017, Broadcom Corporation 27 * <<Broadcom-WL-IPTag/Open:>> 29 * $Id: dhd_pcie_linux.c 701741 2017-05-26 08:18:08Z $ 77 #include <asm/dma-iommu.h> 119 void *os_cxt; /* Pointer to per-OS private data */ 280 char *wlan_smmu_node = "wlan-smmu-iova-address"; in dhdpcie_smmu_init() 281 int atomic_ctx = 1; in dhdpcie_smmu_init() 282 int s1_bypass = 1; in dhdpcie_smmu_init() 289 WARN(1, "failed to get device node of BRCM WLAN\n"); in dhdpcie_smmu_init() 290 return -ENODEV; in dhdpcie_smmu_init() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | dhd_pcie_linux.c | 6 * Copyright (C) 1999-2017, Broadcom Corporation 27 * <<Broadcom-WL-IPTag/Open:>> 29 * $Id: dhd_pcie_linux.c 701741 2017-05-26 08:18:08Z $ 77 #include <asm/dma-iommu.h> 110 void *os_cxt; /* Pointer to per-OS private data */ 271 char *wlan_smmu_node = "wlan-smmu-iova-address"; in dhdpcie_smmu_init() 272 int atomic_ctx = 1; in dhdpcie_smmu_init() 273 int s1_bypass = 1; in dhdpcie_smmu_init() 280 WARN(1, "failed to get device node of BRCM WLAN\n"); in dhdpcie_smmu_init() 281 return -ENODEV; in dhdpcie_smmu_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | dhd_pcie_linux.c | 6 * Copyright (C) 1999-2017, Broadcom Corporation 27 * <<Broadcom-WL-IPTag/Open:>> 29 * $Id: dhd_pcie_linux.c 701741 2017-05-26 08:18:08Z $ 77 #include <asm/dma-iommu.h> 119 void *os_cxt; /* Pointer to per-OS private data */ 280 char *wlan_smmu_node = "wlan-smmu-iova-address"; in dhdpcie_smmu_init() 281 int atomic_ctx = 1; in dhdpcie_smmu_init() 282 int s1_bypass = 1; in dhdpcie_smmu_init() 289 WARN(1, "failed to get device node of BRCM WLAN\n"); in dhdpcie_smmu_init() 290 return -ENODEV; in dhdpcie_smmu_init() [all …]
|
| /OK3568_Linux_fs/kernel/sound/pci/hda/ |
| H A D | hda_intel.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * hda_intel.c - Implementation of primary alsa driver code base 27 #include <linux/dma-mapping.h> 50 #include <sound/intel-dsp-config.h> 114 static int position_fix[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; 115 static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; 116 static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1}; 119 static int single_cmd = -1; 120 static int enable_msi = -1; 125 static bool beep_mode[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = [all …]
|
| /OK3568_Linux_fs/u-boot/arch/x86/cpu/ivybridge/ |
| H A D | sdram.c | 7 * Copyright (C) 2007-2010 coresystems GmbH 10 * SPDX-License-Identifier: GPL-2.0 34 #include <asm/arch/pch.h> 65 return -ENODEV; in read_seed_from_cmos() 74 ret = rtc_read32(dev, CMOS_OFFSET_MRC_SEED, &pei_data->scrambler_seed); in read_seed_from_cmos() 77 &pei_data->scrambler_seed_s3); in read_seed_from_cmos() 80 debug("Failed to read from RTC %s\n", dev->name); in read_seed_from_cmos() 85 pei_data->scrambler_seed, CMOS_OFFSET_MRC_SEED); in read_seed_from_cmos() 87 pei_data->scrambler_seed_s3, CMOS_OFFSET_MRC_SEED_S3); in read_seed_from_cmos() 90 c1 = compute_ip_checksum((u8 *)&pei_data->scrambler_seed, in read_seed_from_cmos() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/can/ |
| H A D | pch_can.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1999 - 2010 Intel Corporation. 23 #define PCH_CTRL_IE BIT(1) /* The IE bit of CAN control register */ 24 #define PCH_CTRL_IE_SIE_EIE (BIT(3) | BIT(2) | BIT(1)) 48 #define PCH_IF_MCONT_DLC (BIT(0) | BIT(1) | BIT(2) | BIT(3)) 82 * PCH CAN communications are done via Message RAM. 87 #define PCH_RX_OBJ_START 1 89 #define PCH_TX_OBJ_START (PCH_RX_OBJ_END + 1) 95 #define PCH_TREQ2_TX_MASK (((1 << PCH_TX_OBJ_NUM) - 1) <<\ 96 (PCH_RX_OBJ_END - 16)) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/platform/x86/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 x86 platforms, including vendor-specific laptop extension drivers. 23 This driver adds support for the ACPI-WMI (Windows Management 26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the 27 ACPI firmware to userspace - this is done through various vendor 38 any ACPI-WMI devices. 45 Say Y here if you want to be able to read a firmware-embedded 50 be called wmi-bmof. 62 USB MCU such as the X51 and X51-R2. 76 control, fn-lock, mic-mute LED, and other extra features. [all …]
|
| H A D | intel_ips.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2009-2010 Intel Corporation 10 * Some Intel Ibex Peak based platforms support so-called "intelligent 34 * - dual MCP configs 37 * - handle CPU hotplug 38 * - provide turbo enable/disable api 41 * - CDI 403777, 403778 - Auburndale EDS vol 1 & 2 42 * - CDI 401376 - Ibex Peak EDS 43 * - ref 26037, 26641 - IPS BIOS spec 44 * - ref 26489 - Nehalem BIOS writer's guide [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/ |
| H A D | intel_lvds.c | 2 * Copyright © 2006-2007 Intel Corporation 101 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_lvds_get_hw_state() 102 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_hw_state() 107 encoder->power_domain); in intel_lvds_get_hw_state() 111 ret = intel_lvds_port_enabled(dev_priv, lvds_encoder->reg, pipe); in intel_lvds_get_hw_state() 113 intel_display_power_put(dev_priv, encoder->power_domain, wakeref); in intel_lvds_get_hw_state() 121 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); in intel_lvds_get_config() 122 struct intel_lvds_encoder *lvds_encoder = to_lvds_encoder(&encoder->base); in intel_lvds_get_config() 125 pipe_config->output_types |= BIT(INTEL_OUTPUT_LVDS); in intel_lvds_get_config() 127 tmp = intel_de_read(dev_priv, lvds_encoder->reg); in intel_lvds_get_config() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/ |
| H A D | i915_drv.c | 1 /* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*- 22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 93 int domain = pci_domain_nr(dev_priv->drm.pdev->bus); in i915_get_bridge_dev() 95 dev_priv->bridge_dev = in i915_get_bridge_dev() 97 if (!dev_priv->bridge_dev) { in i915_get_bridge_dev() 98 drm_err(&dev_priv->drm, "bridge device not found\n"); in i915_get_bridge_dev() 99 return -1; in i915_get_bridge_dev() 114 pci_read_config_dword(dev_priv->bridge_dev, reg + 4, &temp_hi); in intel_alloc_mchbar_resource() 115 pci_read_config_dword(dev_priv->bridge_dev, reg, &temp_lo); in intel_alloc_mchbar_resource() 126 dev_priv->mch_res.name = "i915 MCHBAR"; in intel_alloc_mchbar_resource() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | xhci.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/dma-mapping.h> 22 #include "xhci-trace.h" 23 #include "xhci-debugfs.h" 24 #include "xhci-dbgcap.h" 42 struct xhci_segment *seg = ring->first_seg; in td_on_ring() 44 if (!td || !td->start_seg) in td_on_ring() 47 if (seg == td->start_seg) in td_on_ring() 49 seg = seg->next; in td_on_ring() 50 } while (seg && seg != ring->first_seg); in td_on_ring() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/e1000e/ |
| H A D | netdev.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 34 static int debug = -1; 108 * __ew32_prepare - prepare to write to MAC CSR register on certain parts 123 while ((er32(FWSM) & E1000_ICH_FWSM_PCIM2PCI) && --i) in __ew32_prepare() 129 if (hw->adapter->flags2 & FLAG2_PCIM2PCI_ARBITER_WA) in __ew32() 132 writel(val, hw->hw_addr + reg); in __ew32() 136 * e1000_regdump - register printout routine 146 switch (reginfo->ofs) { in e1000_regdump() 160 pr_info("%-15s %08x\n", in e1000_regdump() [all …]
|