| /linux/Documentation/devicetree/bindings/firmware/ |
| H A D | qemu,fw-cfg-mmio.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/firmware/qemu,fw-cfg-mmio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 16 - A write-only, 16-bit wide selector (or control) register, 17 - a read-write, 64-bit wide data register. 23 The authoritative guest-side hardware interface documentation to the fw_cfg 29 const: qemu,fw-cfg-mmio 39 dma-coherent: true [all …]
|
| /linux/arch/powerpc/kvm/ |
| H A D | powerpc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 52 return !!(v->arch.pending_exceptions) || kvm_request_pending(v); in kvm_arch_vcpu_runnable() 96 vcpu->run->exit_reason = KVM_EXIT_INTR; in kvmppc_prepare_to_enter() 97 r = -EINTR; in kvmppc_prepare_to_enter() 101 vcpu->mode = IN_GUEST_MODE; in kvmppc_prepare_to_enter() 104 * Reading vcpu->requests must happen after setting vcpu->mode, in kvmppc_prepare_to_enter() 144 struct kvm_vcpu_arch_shared *shared = vcpu->arch.shared; in kvmppc_swab_shared() 147 shared->sprg0 = swab64(shared->sprg0); in kvmppc_swab_shared() 148 shared->sprg1 = swab64(shared->sprg1); in kvmppc_swab_shared() 149 shared->sprg2 = swab64(shared->sprg2); in kvmppc_swab_shared() [all …]
|
| /linux/sound/soc/sof/mediatek/mt8195/ |
| H A D | mt8195.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 23 #include "../../sof-of-dev.h" 25 #include "../mtk-adsp-common.h" 27 #include "mt8195-clk.h" 46 struct resource *mmio; in platform_parse_resource() local 48 struct device *dev = &pdev->dev; in platform_parse_resource() 58 ret = of_reserved_mem_region_to_resource(dev->of_node, 1, &res); in platform_parse_resource() 64 adsp->pa_dram = (phys_addr_t)res.start; in platform_parse_resource() 65 adsp->dramsize = resource_size(&res); in platform_parse_resource() 66 if (adsp->pa_dram & DRAM_REMAP_MASK) { in platform_parse_resource() [all …]
|
| /linux/sound/soc/sof/mediatek/mt8186/ |
| H A D | mt8186.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 5 // Author: Allen-KH Cheng <allen-kh.cheng@mediatek.com> 23 #include "../../sof-of-dev.h" 25 #include "../mtk-adsp-common.h" 27 #include "mt8186-clk.h" 46 struct resource *mmio; in platform_parse_resource() local 48 struct device *dev = &pdev->dev; in platform_parse_resource() 58 ret = of_reserved_mem_region_to_resource(dev->of_node, 1, &res); in platform_parse_resource() 64 adsp->pa_dram = (phys_addr_t)res.start; in platform_parse_resource() 65 if (adsp->pa_dram & DRAM_REMAP_MASK) { in platform_parse_resource() [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am65-main.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 5 * Copyright (C) 2016-2024 Texas Instruments Incorporated - https://www.ti.com/ 7 #include <dt-bindings/phy/phy-am654-serdes.h> 11 compatible = "mmio-sram"; 13 #address-cells = <1>; 14 #size-cells = <1>; 17 atf-sram@0 { 21 sysfw-sram@f0000 { 25 l3cache-sram@100000 { 30 gic500: interrupt-controller@1800000 { [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | qcom_wcnss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. 155 static int wcnss_load(struct rproc *rproc, const struct firmware *fw) in wcnss_load() argument 157 struct qcom_wcnss *wcnss = rproc->priv; in wcnss_load() 160 ret = qcom_mdt_load(wcnss->dev, fw, rproc->firmware, WCNSS_PAS_ID, in wcnss_load() 161 wcnss->mem_region, wcnss->mem_phys, in wcnss_load() 162 wcnss->mem_size, &wcnss->mem_reloc); in wcnss_load() 166 qcom_pil_info_store("wcnss", wcnss->mem_phys, wcnss->mem_size); in wcnss_load() 176 val = readl(wcnss->spare_out); in wcnss_indicate_nv_download() 178 writel(val, wcnss->spare_out); in wcnss_indicate_nv_download() [all …]
|
| /linux/drivers/accel/ivpu/ |
| H A D | vpu_boot_api.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Copyright (c) 2020-2024, Intel Corporation. 11 * fw_bin_header->api_version[VPU_BOOT_API_VER_ID] = (VPU_BOOT_API_VER_MAJOR << 16) | 68 * Size of primary preemption buffer, assuming a 2-job submission queue. 74 * Size of secondary preemption buffer, assuming a 2-job submission queue. 80 * Maximum preemption buffer size that the FW can use: no need for the host 86 /* Space reserved for future preemption-related fields. */ 88 /* FW image read only section start address, 4KB aligned */ 90 /* FW image read only section size, 4KB aligned */ 132 * a specific VPU FW binary may support only a subset of such output [all …]
|
| /linux/drivers/net/wireless/ath/wcn36xx/ |
| H A D | main.c | 190 return NL80211_IFTYPE_STATION == vif->type ? in get_sta_index() 191 sta_priv->bss_sta_index : in get_sta_index() 192 sta_priv->sta_index; in get_sta_index() 200 if (wcn36xx_firmware_get_feat_caps(wcn->fw_feat_caps, i)) { in wcn36xx_feat_caps_info() 201 wcn36xx_dbg(WCN36XX_DBG_MAC, "FW Cap %s\n", in wcn36xx_feat_caps_info() 209 struct wcn36xx *wcn = hw->priv; in wcn36xx_start() 263 INIT_LIST_HEAD(&wcn->vif_list); in wcn36xx_start() 264 spin_lock_init(&wcn->dxe_lock); in wcn36xx_start() 265 spin_lock_init(&wcn->survey_lock); in wcn36xx_start() 283 struct wcn36xx *wcn = hw->priv; in wcn36xx_stop() [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am4372.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 8 #include <dt-bindings/bus/ti-sysc.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/clock/am4.h> 15 interrupt-parent = <&wakeupgen>; 16 #address-cells = <1>; 17 #size-cells = <1>; 41 #address-cells = <1>; [all …]
|
| /linux/drivers/firmware/ |
| H A D | qemu_fw_cfg.c | 7 * sysfs (read-only, under "/sys/firmware/qemu_fw_cfg/..."). 15 * [qemu_fw_cfg.]mmio=<size>@<base>[:<ctrl_off>:<data_off>[:<dma_off>]] 18 * <size> := size of ioport or mmio range 19 * <base> := physical base address of ioport or mmio range 27 * qemu_fw_cfg.mmio=16@0x9020000:8:0:16 (the default on arm) 46 /* fw_cfg revision attribute, in /sys/firmware/qemu_fw_cfg top-level dir. */ 80 u32 ctrl = be32_to_cpu(READ_ONCE(d->control)); in fw_cfg_wait_for_control() 82 /* do not reorder the read to d->control */ in fw_cfg_wait_for_control() 99 ret = -ENOMEM; in fw_cfg_dma_transfer() 113 /* force memory to sync before notifying device via MMIO */ in fw_cfg_dma_transfer() [all …]
|
| /linux/drivers/ata/ |
| 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 …]
|
| /linux/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. 22 #include <linux/isa-dma.h> /* isa_dma_bridge_buggy */ 41 if (test_bit(PCI_LINK_LBMS_SEEN, &dev->priv_flags)) in pcie_lbms_seen() 102 int ret = -ENOTTY; in pcie_failed_link_retrain() 105 !pcie_cap_has_lnkctl2(dev) || !dev->link_active_reporting) in pcie_failed_link_retrain() 112 pci_info(dev, "broken device, retraining non-functional downstream link at 2.5GT/s\n"); in pcie_failed_link_retrain() 173 if ((f->class == (u32) (dev->class >> f->class_shift) || in pci_do_fixups() 174 f->class == (u32) PCI_ANY_ID) && in pci_do_fixups() [all …]
|
| /linux/drivers/iommu/arm/arm-smmu-v3/ |
| H A D | arm-smmu-v3.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/io-pgtable.h> 27 #include <linux/pci-ats.h> 33 #include "arm-smmu-v3.h" 34 #include "../../dma-iommu.h" 39 "Disable MSI-based polling for CMD_SYNC completion."); 82 { ARM_SMMU_OPT_SKIP_PREFETCH, "hisilicon,broken-prefetch-cmd" }, 83 { ARM_SMMU_OPT_PAGE0_REGS_ONLY, "cavium,cn9900-broken-page1-regspace"}, 116 if (of_property_read_bool(smmu->dev->of_node, in parse_driver_options() 118 smmu->options |= arm_smmu_options[i].opt; in parse_driver_options() [all …]
|
| /linux/drivers/staging/media/ipu3/ |
| H A D | ipu3-abi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 #include "include/uapi/intel-ipu3.h" 106 #define IMGU_REG_L1_PHYS (IMGU_REG_BASE + 0x304) /* 27-bit pfn */ 121 /* For each definition there is signal pair : valid [bit 0]- accept [bit 1] */ 151 #define IMGU_GP_STRMON_STAT_MOD_PORT_S2V(n) (1 << (((n) - 1) * 2 + 20)) 154 #define IMGU_GP_STRMON_STAT_ACCS_PORT_ACC(n) (1 << (((n) - 1) * 2)) 157 #define IMGU_GP_STRMON_STAT_ACCS2SP1_MON_PORT_ACC(n) (1 << (((n) - 1) * 2)) 160 #define IMGU_GP_STRMON_STAT_ACCS2SP2_MON_PORT_ACC(n) (1 << (((n) - 1) * 2)) 212 #define IMGU_GDC_LUT_MASK ((1 << 12) - 1) /* Range -1024..+1024 */ 332 /* Performance warning encountered by FW */ [all …]
|
| /linux/arch/x86/kernel/apic/ |
| H A D | io_apic.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Intel IO-APIC support for multi-Pentium hosts. 10 * (c) 1999, Multiple IO-APIC support, developed by 11 * Ken-ichi Yaku <yaku@css1.kbnes.nec.co.jp> and 25 * - SiS APIC rmw bug: 28 * required to rewrite the index register for a read-modify-write 74 for ((idx) = nr_ioapics - 1; (idx) >= 0; (idx)--) 110 /* Saved state during suspend/resume, or while enabling intr-remap. */ 142 return gsi_cfg->gsi_end - gsi_cfg->gsi_base + 1; in mp_ioapic_pin_count() 147 return mp_ioapic_gsi_routing(ioapic)->gsi_base + pin; in mp_pin_to_gsi() [all …]
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | hal.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved. 6 #include <linux/dma-mapping.h> 254 return HAL_REO1_RING_ID(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath12k_hal_reo1_ring_id_offset() 259 return HAL_REO1_RING_MSI1_BASE_LSB(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath12k_hal_reo1_ring_msi1_base_lsb_offset() 264 return HAL_REO1_RING_MSI1_BASE_MSB(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath12k_hal_reo1_ring_msi1_base_msb_offset() 269 return HAL_REO1_RING_MSI1_DATA(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath12k_hal_reo1_ring_msi1_data_offset() 274 return HAL_REO1_RING_BASE_MSB(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath12k_hal_reo1_ring_base_msb_offset() 279 return HAL_REO1_RING_PRODUCER_INT_SETUP(ab) - HAL_REO1_RING_BASE_LSB(ab); in ath12k_hal_reo1_ring_producer_int_setup_offset() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_def.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (c) 2003-2014 QLogic Corporation 15 #include <linux/dma-mapping.h> 234 /* 83XX: Macros defining 8200 AEN Error-levels */ 248 /* 83XX: Macros for defining IDC-Control bits */ 257 /* 83XX: Macros for defining class in DEV-Partition Info register */ 263 /* 83XX: Macros for IDC Lock-Recovery stages */ 265 * lock-recovery 267 #define IDC_LOCK_RECOVERY_STAGE2 0x2 /* Stage2: Perform lock-recovery */ 270 #define IDC_AUDIT_TIMESTAMP 0x0 /* IDC-AUDIT: Record timestamp of [all …]
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | tg3.c | 7 * Copyright (C) 2005-2016 Broadcom Corporation. 8 * Copyright (C) 2016-2017 Broadcom Limited. 14 * Copyright (C) 2000-2016 Broadcom Corporation. 15 * Copyright (C) 2016-2017 Broadcom Ltd. 52 #include <linux/dma-mapping.h> 56 #include <linux/hwmon-sysfs.h> 94 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 96 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 98 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 124 * and dev->tx_timeout() should be called to fix the problem [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt.c | 1 /* Broadcom NetXtreme-C/E network driver. 3 * Copyright (c) 2014-2016 Broadcom Corporation 4 * Copyright (c) 2016-2019 Broadcom Limited 25 #include <linux/dma-mapping.h> 60 #include <linux/pci-tph.h> 95 [BCM57301] = { "Broadcom BCM57301 NetXtreme-C 10Gb Ethernet" }, 96 [BCM57302] = { "Broadcom BCM57302 NetXtreme-C 10Gb/25Gb Ethernet" }, 97 [BCM57304] = { "Broadcom BCM57304 NetXtreme-C 10Gb/25Gb/40Gb/50Gb Ethernet" }, 98 [BCM57417_NPAR] = { "Broadcom BCM57417 NetXtreme-E Ethernet Partition" }, 100 [BCM57311] = { "Broadcom BCM57311 NetXtreme-C 10Gb Ethernet" }, [all …]
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | atombios.h | 2 * Copyright 2006-2007 Advanced Micro Devices, Inc. 214 UCHAR uaFirmWareSignature[4]; /*Signature to distinguish between Atombios and non-atombios, 397 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 403 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 410 …ULONG ulClock; //When returen, it's the re-calculated clock based on given Fb_div Post_Di… 504 …UCHAR ucInputFlag; //Input Flags. ucInputFlag[0] - Strobe(1)/Performance(0)… 536 #define ATOM_PLL_INPUT_FLAG_PLL_STROBE_MODE_EN 1 // 1-StrobeMode, 0-PerformanceMode 544 …bDiv; //Output:UPPER_WORD=FB_DIV_INTEGER, LOWER_WORD=FB_DIV_FRAC shl (16-FB_FRACTION_BITS) 549 … //Input : ATOM_PLL_INPUT_FLAG_PLL_STROBE_MODE_EN: 1-StrobeMode, 0-PerformanceMode 815 // Following function ENABLE sub-function will be used by driver when TMDS/HDMI/LVDS is used, disab… [all …]
|
| /linux/drivers/gpu/drm/amd/include/ |
| H A D | atombios.h | 2 * Copyright 2006-2007 Advanced Micro Devices, Inc. 107 #define ATOM_SCALER_DISABLE 0 //For Fudo, it's bypass and auto-cengter & no replication 108 #define ATOM_SCALER_CENTER 1 //For Fudo, it's bypass and auto-center & auto replication 110 #define ATOM_SCALER_MULTI_EX 3 //For Fudo only, it's multi-tap mode only used to drive TV or CV,… 222 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios, 245 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios, 427 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 433 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 440 …ULONG ulClock; //When returen, it's the re-calculated clock based on given Fb_div Post_Di… 538 …UCHAR ucInputFlag; //Input Flags. ucInputFlag[0] - Strobe(1)/Performance(0)… [all …]
|