/linux/arch/powerpc/platforms/embedded6xx/ |
H A D | flipper-pic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * arch/powerpc/platforms/embedded6xx/flipper-pic.c 6 * Copyright (C) 2004-2009 The GameCube Linux Team 9 #define DRV_MODULE_NAME "flipper-pic" 20 #include "flipper-pic.h" 34 #define FLIPPER_ICR_RSS (1<<16) /* reset switch state */ 84 .name = "flipper-pic", 101 irq_set_chip_data(virq, h->host_data); in flipper_pic_map() 133 pr_err("no parent found\n"); in flipper_pic_init() 136 if (!of_device_is_compatible(pi, "nintendo,flipper-pi")) { in flipper_pic_init() [all …]
|
H A D | wii.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Nintendo Wii board-specific support 6 * Copyright (C) 2008-2009 The GameCube Linux Team 24 #include "flipper-pic.h" 25 #include "hlwd-pic.h" 29 #define HW_CTRL_COMPATIBLE "nintendo,hollywood-control" 35 #define HW_GPIO_COMPATIBLE "nintendo,hollywood-gpio" 62 int error = -ENODEV; in wii_ioremap_hw_regs() 66 pr_err("no compatible node found for %s\n", compatible); in wii_ioremap_hw_regs() 71 pr_err("no valid reg found for %pOFn\n", np); in wii_ioremap_hw_regs() [all …]
|
H A D | holly.c | 1 // SPDX-License-Identifier: GPL-2.0-only 34 #include <asm/pci-bridge.h> 61 /* Re-init the PCI bridge and LUT registers to have mappings that don't in holly_remap_bridge() 94 /* Init the PCI LUTs to do no remapping */ in holly_remap_bridge() 107 /* Set 64-bit PCI bus address for system memory */ in holly_remap_bridge() 146 * TSI108:PB_INT[0] -> CPU0:INT# 147 * TSI108:PB_INT[1] -> CPU0:MCP# 148 * TSI108:PB_INT[2] -> N/C 149 * TSI108:PB_INT[3] -> N/C 167 mpic_assign_isu(mpic, 0, mpic->paddr + 0x100); in holly_init_IRQ() [all …]
|
/linux/arch/powerpc/boot/dts/fsl/ |
H A D | p1020rdb-pc_camp_core0.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * P1020 RDB-PC Core0 Device Tree Source in CAMP mode. 8 * eth1, eth2, sdhc, crypto, global-util, message, pci0, pci1, msi. 10 * Please note to add "-b 0" for core0's dts compiling. 15 /include/ "p1020rdb-pc_32b.dts" 18 model = "fsl,P1020RDB-PC"; 19 compatible = "fsl,P1020RDB-PC"; 52 mpic: pic@40000 { 53 protected-sources = < 54 42 29 30 34 /* serial1, enet0-queue-group0 */ [all …]
|
H A D | p1020rdb-pc_camp_core1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * P1020 RDB-PC Core1 Device Tree Source in CAMP mode. 9 * Please note to add "-b 1" for core1's dts compiling. 14 /include/ "p1020rdb-pc_32b.dts" 17 model = "fsl,P1020RDB-PC"; 18 compatible = "fsl,P1020RDB-PC"; 40 ecm-law@0 { 48 memory-controller@2000 { 68 gpio: gpio-controller@f000 { 100 mpic: pic@40000 { [all …]
|
/linux/arch/powerpc/platforms/pasemi/ |
H A D | setup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2006-2007 PA Semi, Inc 40 /* SDC reset register, must be pre-mapped at reset time */ 43 /* Various error status registers, must be pre-mapped at MCE time */ 90 platform_device_register_simple("rtc_cmos", -1, rtc_resource, 2); in nemo_init_rtc() 150 /* Remap SDC register for doing reset */ in pas_setup_arch() 214 chip->irq_eoi(&desc->irq_data); in sb600_8259_cascade() 231 irq_set_default_domain(mpic->irqhost); in nemo_init_IRQ() 254 for_each_node_by_type(np, "interrupt-controller") in pas_init_IRQ() 255 if (of_device_is_compatible(np, "open-pic")) { in pas_init_IRQ() [all …]
|
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_vp9_if.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Kai-Sean Yang <kai-sean.yang@mediatek.com> 30 * struct vp9_dram_buf - contains buffer info for vpu 44 * struct vp9_fb_info - contains frame buffer info 54 * struct vp9_ref_cnt_buf - contains reference buffer information 65 * struct vp9_ref_buf - contains current frame's reference buffer information 77 * struct vp9_sf_ref_fb - contains frame buffer info 89 * struct vdec_vp9_vsi - shared buffer between host and VPU firmware 90 * AP-W/R : AP is writer/reader on this item 91 * VPU-W/R: VPU is write/reader on this item [all …]
|
H A D | vdec_vp8_if.c | 1 // SPDX-License-Identifier: GPL-2.0 52 * struct vdec_vp8_dec_info - decode misc information 59 * @resolution_changed: resolution change flag 1 - changed, 0 - not changed 76 * struct vdec_vp8_vsi - VPU shared information 78 * @pic : picture information 85 struct vdec_pic_info pic; member 92 * struct vdec_vp8_hw_reg_base - HW register base 110 * struct vdec_vp8_vpu_inst - VPU instance for VP8 decode 112 * @signaled : 1 - Host has received ack message from VPU, 0 - not received 113 * @failure : VPU execution result status 0 - success, others - fail [all …]
|
/linux/arch/xtensa/ |
H A D | Makefile | 6 # Copyright (C) 2001 - 2005 Tensilica Inc. 10 # architecture-specific flags and dependencies. 15 variant-y := $(CONFIG_XTENSA_VARIANT_NAME) 17 VARIANT = $(variant-y) 22 CROSS_COMPILE = xtensa_$(VARIANT)- 29 platform-$(CONFIG_XTENSA_PLATFORM_XT2000) := xt2000 30 platform-$(CONFIG_XTENSA_PLATFORM_ISS) := iss 31 platform-$(CONFIG_XTENSA_PLATFORM_XTFPGA) := xtfpga 34 KBUILD_CFLAGS += -ffreestanding -D__linux__ 35 KBUILD_CFLAGS += -pipe -mlongcalls -mtext-section-literals [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | setup.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * 64-bit pSeries and RS/6000 setup code. 50 #include <asm/pci-bridge.h> 60 #include <asm/papr-sysparm.h> 61 #include <asm/ppc-pci.h> 70 #include <asm/isa-bridge.h> 72 #include <asm/asm-const.h> 96 early_param("no-steal-acc", parse_no_stealacc); 99 int CMO_PrPSP = -1; 100 int CMO_SecPSP = -1; [all …]
|
/linux/arch/powerpc/platforms/44x/ |
H A D | ppc476.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * Copyright 2002-2005 MontaVista Software Inc. 13 * Copyright (c) 2003-2005 Zultys Technologies 58 * which is used to power off/reset the system. */ 70 /* Request the AVR to reset the system */ in avr_halt_system() 74 /* Wait for system to be reset */ in avr_halt_system() 98 { "akebono-avr" }, 104 .name = "akebono-avr", 125 for_each_node_with_property(np, "interrupt-controller") { in ppc47x_init_irq() 133 if (of_device_is_compatible(np, "chrp,open-pic")) { in ppc47x_init_irq() [all …]
|
/linux/arch/powerpc/sysdev/ |
H A D | mpic.c | 9 * Copyright 2010-2012 Freescale Semiconductor, Inc. 112 [1] = { /* Tsi108/109 PIC */ 153 #define MPIC_INFO(name) mpic->hw_set[MPIC_IDX_##name] 165 if (!(mpic->flags & MPIC_SECONDARY)) in mpic_processor_id() 183 return dcr_read(rb->dhost, reg); in _mpic_read() 186 return in_be32(rb->base + (reg >> 2)); in _mpic_read() 189 return in_le32(rb->base + (reg >> 2)); in _mpic_read() 200 dcr_write(rb->dhost, reg, value); in _mpic_write() 204 out_be32(rb->base + (reg >> 2), value); in _mpic_write() 208 out_le32(rb->base + (reg >> 2), value); in _mpic_write() [all …]
|
/linux/arch/x86/kernel/acpi/ |
H A D | boot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * boot.c - Architecture-Specific Low-Level ACPI Boot Support 22 #include <linux/efi-bgrt.h> 76 * ->device_hotplug_lock 77 * ->acpi_ioapic_lock 78 * ->ioapic_lock 80 * ->acpi_ioapic_lock 81 * ->ioapic_mutex 82 * ->ioapic_lock 87 /* -------------------------------------------------------------------------- [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-388-clearfog.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 #include "armada-388.dtsi" 9 #include "armada-38x-solidrun-microsom.dtsi" 13 /* So that mvebu u-boot can update the MAC addresses */ 20 stdout-path = "serial0:115200n8"; 23 reg_3p3v: regulator-3p3v { 24 compatible = "regulator-fixed"; 25 regulator-name = "3P3V"; 26 regulator-min-microvolt = <3300000>; 27 regulator-max-microvolt = <3300000>; [all …]
|
/linux/arch/x86/kernel/apic/ |
H A D | apic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * Mikael Pettersson : Power Management for UP-APIC. 44 #include <asm/pc-conf-reg.h> 66 #include <asm/intel-family.h> 104 * that reach the BSP come from the master PIC or from the 107 * PIC Mode by changing the IMCR. 125 * +1=force-enable 215 * so apic->write/read doesn't do anything 243 * lapic_get_maxlvt - get the maximum number of local vector table entries 248 * - we always have APIC integrated on 64bit mode in lapic_get_maxlvt() [all …]
|
/linux/drivers/watchdog/ |
H A D | alim7101_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 * Aug 23, 2004 - Added use_gpio module parameter for use on revision a1d PMUs 20 * -- Mike Waychison <michael.waychison@sun.com> 51 * If we reset the watchdog every ~250ms we should be safe. */ 69 static int use_gpio; /* Use the pic (for a1d revision alim7101) */ 116 /* Re-set the timer interval */ in wdt_timer_ping() 200 return -EFAULT; in fop_write() 215 return -EBUSY; in fop_open() 247 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; in fop_ioctl() 253 int new_options, retval = -EINVAL; in fop_ioctl() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/include/ |
H A D | chipcommon.h | 1 // SPDX-License-Identifier: ISC 49 /* gpio - cleared only by power-on-reset */ 234 #define CC_CAP_MIPSEB 0x00000004 /* MIPS is in big-endian mode */ 240 #define CC_CAP_EXTBUS_NONE 0x00000000 /* No ExtBus present */ 251 #define CC_CAP_BKPLN64 0x08000000 /* 64-bit backplane */ 274 #define CC_SR_CTL0_ALLOW_PIC_SHIFT 20 /* Allow pic to separate power
|
/linux/arch/powerpc/include/asm/ |
H A D | mpic.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 71 * Per-Processor registers 92 * Per-source registers 149 * Per-Processor registers 162 * Per-source registers 355 /* Set this for a big-endian MPIC */ 363 /* No passthrough disable */ 367 /* MPIC has 11-bit vector fields (or larger) */ 377 /* Do not reset the MPIC during initialization */ 393 #define MPIC_REGSET_TSI108 MPIC_REGSET(1) /* Tsi108/109 PIC */ [all …]
|
/linux/arch/alpha/kernel/ |
H A D | sys_miata.c | 1 // SPDX-License-Identifier: GPL-2.0 39 irq = (vector - 0x800) >> 4; in miata_srm_device_interrupt() 47 * for reporting any interrupts (the PCI-ISA bridge, bit 7, isn't in miata_srm_device_interrupt() 48 * used for this purpose, as PIC interrupts are delivered as the in miata_srm_device_interrupt() 49 * vectors 0x800-0x8f0). in miata_srm_device_interrupt() 53 * So, here's this grotty hack... :-( in miata_srm_device_interrupt() 83 if (request_irq(16 + 2, no_action, 0, "halt-switch", NULL)) in miata_init_irq() 84 pr_err("Failed to register halt-switch interrupt\n"); in miata_init_irq() 85 if (request_irq(16 + 6, no_action, 0, "timer-cascade", NULL)) in miata_init_irq() 86 pr_err("Failed to register timer-cascade interrupt\n"); in miata_init_irq() [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx7d-zii-rpu2.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 * RPU - Remote Peripheral Unit 10 /dts-v1/; 11 #include <dt-bindings/thermal/thermal.h> 16 compatible = "zii,imx7d-rpu2", "fsl,imx7d"; 19 stdout-path = &uart2; 23 compatible = "fixed-clock"; 24 #clock-cells = <0>; 25 clock-frequency = <24576000>; 28 cs2000_in_dummy: dummy-oscillator { [all …]
|
/linux/drivers/net/can/ |
H A D | can327.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * can327.c Author : Max Staudt <max-linux@enpas.org> 37 #include <linux/can/rx-offload.h> 53 /* Bits in elm->cmds_todo */ 76 /* Per-channel lock */ 125 lockdep_assert_held(&elm->lock); in can327_send() 127 if (elm->uart_side_failure) in can327_send() 130 memcpy(elm->txbuf, buf, len); in can327_send() 134 * the transfer may be completed inside the ops->write() in can327_send() 140 set_bit(TTY_DO_WRITE_WAKEUP, &elm->tty->flags); in can327_send() [all …]
|
/linux/drivers/media/pci/bt8xx/ |
H A D | bttv-cards.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 bttv-cards.c 6 this file has configuration information - card-specific stuff 9 Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) 10 & Marcus Metzler (mocm@thp.uni-koeln.de) 11 (c) 1999-2001 Gerd Knorr <kraxel@goldbach.in-berlin.de> 31 #include <media/v4l2-common.h> 33 #include "bttv-audio-hook.h" 85 static unsigned int card[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; 86 static unsigned int pll[BTTV_MAX] = { [ 0 ... (BTTV_MAX-1) ] = UNSET }; [all …]
|
/linux/tools/testing/selftests/kvm/s390/ |
H A D | ucontrol_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 43 TEST_REQUIRE((data->effective & CAP_TO_MASK(CAP_SYS_ADMIN)) > 0); in require_ucontrol_admin() 131 self->kvm_fd = open_kvm_dev_path_or_exit(); in FIXTURE_SETUP() 132 self->vm_fd = ioctl(self->kvm_fd, KVM_CREATE_VM, KVM_VM_S390_UCONTROL); in FIXTURE_SETUP() 133 ASSERT_GE(self->vm_fd, 0); in FIXTURE_SETUP() 135 kvm_device_attr_get(self->vm_fd, KVM_S390_VM_CPU_MODEL, in FIXTURE_SETUP() 139 self->vcpu_fd = ioctl(self->vm_fd, KVM_CREATE_VCPU, 0); in FIXTURE_SETUP() 140 ASSERT_GE(self->vcpu_fd, 0); in FIXTURE_SETUP() 142 self->kvm_run_size = ioctl(self->kvm_fd, KVM_GET_VCPU_MMAP_SIZE, NULL); in FIXTURE_SETUP() 143 ASSERT_GE(self->kvm_run_size, sizeof(struct kvm_run)) in FIXTURE_SETUP() [all …]
|
/linux/drivers/acpi/ |
H A D | tables.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * acpi_tables.c - ACPI Boot-Time Table Parsing 51 switch (header->type) { in acpi_table_print_madt_entry() 58 p->processor_id, p->id, in acpi_table_print_madt_entry() 59 str_enabled_disabled(p->lapic_flags & ACPI_MADT_ENABLED)); in acpi_table_print_madt_entry() 68 p->local_apic_id, p->uid, in acpi_table_print_madt_entry() 69 str_enabled_disabled(p->lapic_flags & ACPI_MADT_ENABLED)); in acpi_table_print_madt_entry() 78 p->id, p->address, p->global_irq_base); in acpi_table_print_madt_entry() 87 p->bus, p->source_irq, p->global_irq, in acpi_table_print_madt_entry() 88 mps_inti_flags_polarity[p->inti_flags & ACPI_MADT_POLARITY_MASK], in acpi_table_print_madt_entry() [all …]
|
/linux/drivers/ata/ |
H A D | sata_highbank.c | 1 // SPDX-License-Identifier: GPL-2.0-only 53 /* Each of the 6 phys can have up to 4 sata ports attached to i. Map 0-based 73 /* number of extra clocks that the SGPIO PIC controller expects */ 91 return 1 << (3 * pdata->port_to_sgpio[port] + shift); in sgpio_bit_shift() 97 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 100 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 103 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 106 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 109 pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() 112 pdata->sgpio_pattern &= ~sgpio_bit_shift(pdata, port, in ecx_parse_sgpio() [all …]
|