/openbmc/qemu/hw/xen/ |
H A D | xen_pt_load_rom.c | 2 * This is splited from hw/i386/kvm/pci-assign.c 6 #include "qemu/error-report.h" 12 * Scan the assigned devices for the devices that have an option ROM, and then 13 * load the corresponding ROM data to RAM. If an error occurs while loading an 14 * option ROM, we just ignore that option ROM and continue with the next one. 23 uint8_t val; in pci_assign_dev_load_option_rom() local 28 /* If loading ROM from file, pci handles it */ in pci_assign_dev_load_option_rom() 29 if (dev->romfile || !dev->rom_bar) { in pci_assign_dev_load_option_rom() 34 "/sys/bus/pci/devices/%04x:%02x:%02x.%01x/rom", in pci_assign_dev_load_option_rom() 37 /* Write "1" to the ROM file to enable it */ in pci_assign_dev_load_option_rom() [all …]
|
H A D | xen_pt.c | 6 * the COPYING file in the top-level directory. 22 * - Set real Interrupt Disable bit to '1'. 23 * - Set machine_irq and assigned_device->machine_irq to '0'. 28 * - Set real Interrupt Disable bit to '1'. 29 * - Unmap INTx. 30 * - Decrement xen_pt_mapped_machine_irq[machine_irq] 31 * - Set assigned_device->machine_irq to '0'. 35 * - Set real bit to '0' if assigned_device->machine_irq isn't '0'. 38 * - Set real bit to '1'. 44 * - Unmap MSI. [all …]
|
H A D | xen_pt_graphics.c | 8 #include "xen-host-pci-device.h" 32 .rc = -1, 39 .rc = -1, 46 .rc = -1, 135 return pci_assign_dev_load_option_rom(&s->dev, size, in get_vgabios() 136 dev->domain, dev->bus, in get_vgabios() 137 dev->dev, dev->func); in get_vgabios() 170 struct rom_header *rom; in xen_pt_setup_vga() local 178 error_setg(errp, "Need to enable igd-passthrough"); in xen_pt_setup_vga() 194 rom = (struct rom_header *)bios; in xen_pt_setup_vga() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A D | lp855x-backlight.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/lp855x-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Artur Weber <aweber.kernel@gmail.com> 15 - ti,lp8550 16 - ti,lp8551 17 - ti,lp8552 18 - ti,lp8553 19 - ti,lp8555 [all …]
|
/openbmc/qemu/backends/ |
H A D | hostmem-file.c | 4 * Copyright (C) 2013-2014 Red Hat Inc 10 * See the COPYING file in the top-level directory. 15 #include "qemu/error-report.h" 22 #include "qapi/qapi-visit-common.h" 36 OnOffAuto rom; member 51 if (!backend->size) { in file_backend_memory_alloc() 55 if (!fb->mem_path) { in file_backend_memory_alloc() 56 error_setg(errp, "mem-path property not set"); in file_backend_memory_alloc() 60 switch (fb->rom) { in file_backend_memory_alloc() 62 /* Traditionally, opening the file readonly always resulted in ROM. */ in file_backend_memory_alloc() [all …]
|
/openbmc/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-msm8974pro-sony-xperia-shinano-castor.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974pro.dtsi" 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974"; 12 chassis-type = "tablet"; 20 stdout-path = "serial0:115200n8"; 23 gpio-keys { 24 compatible = "gpio-keys"; [all …]
|
H A D | qcom-apq8026-samsung-matisse-wifi.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/input/input.h> 9 #include "qcom-msm8226.dtsi" 12 /delete-node/ &adsp_region; 13 /delete-node/ &smem_region; 17 compatible = "samsung,matisse-wifi", "qcom,apq8026"; 18 chassis-type = "tablet"; 27 #address-cells = <1>; 28 #size-cells = <1>; [all …]
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_therm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 * In case the parasite power-detection is not working (seems to be the case 40 * - strong_pullup = 0 Disable strong pullup completely 41 * - strong_pullup = 1 Enable automatic strong pullup detection 42 * - strong_pullup = 2 Force strong pullup 66 #define MIN_TEMP -55 /* min temperature that can be measured */ 102 (((struct w1_therm_family_data *)(sl->family_data))->specific_functions) 105 * return the power mode of the sl slave : 1-ext, 0-parasite, <0 unknown 109 (((struct w1_therm_family_data *)(sl->family_data))->external_powered) 116 (((struct w1_therm_family_data *)(sl->family_data))->resolution) [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
H A D | pci_mcu.c | 1 // SPDX-License-Identifier: ISC 25 dev_err(dev->mt76.dev, in mt76pci_load_rom_patch() 26 "Could not get hardware semaphore for ROM PATCH\n"); in mt76pci_load_rom_patch() 27 return -ETIMEDOUT; in mt76pci_load_rom_patch() 39 dev_info(dev->mt76.dev, "ROM patch already applied\n"); in mt76pci_load_rom_patch() 43 ret = request_firmware(&fw, MT7662_ROM_PATCH, dev->mt76.dev); in mt76pci_load_rom_patch() 47 if (!fw || !fw->data || fw->size <= sizeof(*hdr)) { in mt76pci_load_rom_patch() 48 ret = -EIO; in mt76pci_load_rom_patch() 49 dev_err(dev->mt76.dev, "Failed to load firmware\n"); in mt76pci_load_rom_patch() 53 hdr = (struct mt76x02_patch_header *)fw->data; in mt76pci_load_rom_patch() [all …]
|
H A D | usb_mcu.c | 1 // SPDX-License-Identifier: ISC 23 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_load_ivb() 30 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_mcu_enable_patch() 37 memcpy(usb->data, data, sizeof(data)); in mt76x2u_mcu_enable_patch() 38 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_enable_patch() 40 0x12, 0, usb->data, sizeof(data)); in mt76x2u_mcu_enable_patch() 45 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_mcu_reset_wmt() 51 memcpy(usb->data, data, sizeof(data)); in mt76x2u_mcu_reset_wmt() 52 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_reset_wmt() 54 0x12, 0, usb->data, sizeof(data)); in mt76x2u_mcu_reset_wmt() [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | pch_phub.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #define PCH_PHUB_ROM_WRITE_ENABLE 0x01 /* Enabling for writing ROM */ 25 #define PCH_PHUB_ROM_WRITE_DISABLE 0x00 /* Disabling for writing ROM */ 30 #define PCH_PHUB_ROM_START_ADDR_EG20T 0x80 /* ROM data area start address offset 32 #define PCH_PHUB_ROM_START_ADDR_ML7213 0x400 /* ROM data area start address 35 #define PCH_PHUB_ROM_START_ADDR_ML7223 0x400 /* ROM data area start address 47 /* CM-iTC */ 58 #define PCI_DEVICE_ID_ROHM_ML7223_mPHUB 0x8012 /* for Bus-m */ 59 #define PCI_DEVICE_ID_ROHM_ML7223_nPHUB 0x8002 /* for Bus-n */ 65 #define PCH_WORD_ADDR_MASK (~((1 << 2) - 1)) [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | bmi.h | 2 * Copyright (c) 2004-2011 Atheros Communications Inc. 37 * command-specific data. 45 * BMI handles all required Target-side cache flushing. 104 * Semantics: Read a 32-bit Target SOC register. 114 * Semantics: Write a 32-bit Target SOC register. 126 * Semantics: Fetch the 4-byte Target information 141 * Semantics: Install a ROM Patch. 144 * u32 Target ROM Address 147 * u32 Activate? 1-->activate; 148 * 0-->install but do not activate [all …]
|
/openbmc/linux/drivers/video/backlight/ |
H A D | lp855x_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 40 #define DEFAULT_BL_NAME "lcd-backlight" 81 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte() 89 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit() 91 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit() 106 switch (lp->chip_id) { in lp855x_is_valid_rom_area() 165 * d) update ROM area(optional) 171 u8 val, addr; in lp855x_configure() local 173 struct lp855x_platform_data *pd = lp->pdata; in lp855x_configure() 175 if (lp->cfg->pre_init_device) { in lp855x_configure() [all …]
|
/openbmc/qemu/hw/display/ |
H A D | cg3.c | 5 * Copyright (c) 2013 Mark Cave-Ayland 29 #include "qemu/error-report.h" 35 #include "hw/qdev-properties.h" 78 MemoryRegion rom; member 91 DisplaySurface *surface = qemu_console_surface(s->con); in cg3_update_display() 103 width = s->width; in cg3_update_display() 104 height = s->height; in cg3_update_display() 106 y_start = -1; in cg3_update_display() 107 pix = memory_region_get_ram_ptr(&s->vram_mem); in cg3_update_display() 110 if (!s->full_update) { in cg3_update_display() [all …]
|
H A D | qxl.c | 29 #include "qemu/main-loop.h" 31 #include "hw/qdev-properties.h" 40 uint32_t cons = (r)->cons & SPICE_RING_INDEX_MASK(r); \ 41 if (cons >= ARRAY_SIZE((r)->items)) { \ 43 "%u >= %zu", cons, ARRAY_SIZE((r)->items)); \ 46 ret = &(r)->items[cons].el; \ 51 #define ALIGN(a, b) (((a) + ((b) - 1)) & ~((b) - 1)) 128 trace_qxl_set_guest_bug(qxl->id); in qxl_set_guest_bug() 130 qxl->guest_bug = 1; in qxl_set_guest_bug() 131 if (qxl->guestdebug) { in qxl_set_guest_bug() [all …]
|
H A D | tcx.c | 4 * Copyright (c) 2003-2005 Fabrice Bellard 31 #include "hw/qdev-properties.h" 34 #include "qemu/error-report.h" 58 #define TYPE_TCX "sun-tcx" 69 MemoryRegion rom; member 101 memory_region_set_dirty(&s->vram_mem, addr, len); in tcx_set_dirty() 103 if (s->depth == 24) { in tcx_set_dirty() 104 memory_region_set_dirty(&s->vram_mem, s->vram24_offset + addr * 4, in tcx_set_dirty() 106 memory_region_set_dirty(&s->vram_mem, s->cplane_offset + addr * 4, in tcx_set_dirty() 116 ret = memory_region_snapshot_get_dirty(&s->vram_mem, snap, addr, len); in tcx_check_dirty() [all …]
|
/openbmc/linux/drivers/mtd/maps/ |
H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - Intel IQ80310 ATU. 9 * - Intel EBSA285 (blank rom programming mode). Tested working 27/09/2001 40 map_word val; in mtd_pci_read8() local 41 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8() 42 return val; in mtd_pci_read8() 48 map_word val; in mtd_pci_read32() local 49 val.x[0] = readl(map->base + map->translate(map, ofs)); in mtd_pci_read32() 50 return val; in mtd_pci_read32() 56 memcpy_fromio(to, map->base + map->translate(map, from), len); in mtd_pci_copyfrom() [all …]
|
/openbmc/linux/arch/x86/pci/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Low-Level PCI Support for PC 5 * (c) 1999--2000 Martin Mares <mj@ucw.cz> 10 #include <linux/pci-acpi.h> 35 int pcibios_last_bus = -1; 41 int reg, int len, u32 *val) in raw_pci_read() argument 44 return raw_pci_ops->read(domain, bus, devfn, reg, len, val); in raw_pci_read() 46 return raw_pci_ext_ops->read(domain, bus, devfn, reg, len, val); in raw_pci_read() 47 return -EINVAL; in raw_pci_read() 51 int reg, int len, u32 val) in raw_pci_write() argument [all …]
|
/openbmc/linux/sound/soc/sof/intel/ |
H A D | mtl.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 15 #include "../ipc4-priv.h" 18 #include "hda-ipc.h" 19 #include "../sof-audio.h" 46 * set DONE bit - tell DSP we have received the reply msg from DSP, and processed it, in mtl_ipc_dsp_done() 63 if (sdev->dspless_mode_selected) in mtl_dsp_check_ipc_irq() 96 struct sof_intel_hda_dev *hdev = sdev->pdata->hw_pdata; in mtl_ipc_send_msg() 97 struct sof_ipc4_msg *msg_data = msg->msg_data; in mtl_ipc_send_msg() 100 hdev->delayed_ipc_tx_msg = msg; in mtl_ipc_send_msg() 104 hdev->delayed_ipc_tx_msg = NULL; in mtl_ipc_send_msg() [all …]
|
H A D | hda-loader-skl.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 6 // Copyright(c) 2018-2022 Intel Corporation. All rights reserved. 11 #include <linux/dma-mapping.h> 23 #include "../sof-priv.h" 119 phys_addr_t addr = virt_to_phys(dmab_data->area); in cl_skl_cldma_setup_bdle() 124 * all the code fits. This could be improved with scatter-gather but the firmware in cl_skl_cldma_setup_bdle() 138 unsigned char val; in cl_skl_cldma_stream_run() local 151 val = snd_sof_dsp_read(sdev, HDA_DSP_BAR, in cl_skl_cldma_stream_run() 153 val &= HDA_CL_SD_CTL_RUN(1); in cl_skl_cldma_stream_run() 154 if (enable && val) in cl_skl_cldma_stream_run() [all …]
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_rdwr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/io-64-nonatomic-lo-hi.h> 43 bool test_mem, u##size val, void __iomem *io) \ 46 down_read(&vdev->memory_lock); \ 48 up_read(&vdev->memory_lock); \ 49 return -EIO; \ 53 vfio_iowrite##size(val, io); \ 56 up_read(&vdev->memory_lock); \ 70 bool test_mem, u##size *val, void __iomem *io) \ 73 down_read(&vdev->memory_lock); \ [all …]
|
/openbmc/linux/sound/isa/ |
H A D | cmi8328.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for C-Media CMI8328-based soundcards, such as AudioExcel AV500 7 * - CMI8328 - main chip (SB Pro emulation, gameport, OPL3, MPU401, CD-ROM) 8 * - CS4231A - WSS codec 9 * - Dream SAM9233+GMS950400+RAM+ROM: Wavetable MIDI, connected to MPU401 26 MODULE_AUTHOR("Ondrej Zary <linux@rainbow-software.org>"); 27 MODULE_DESCRIPTION("C-Media CMI8328"); 38 static int index[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = -1}; 39 static char *id[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = NULL}; 40 static long port[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = SNDRV_AUTO_PORT}; [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | pci-sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * (C) Copyright 2002-2004 Greg Kroah-Hartman <greg@kroah.com> 4 * (C) Copyright 2002-2004 IBM Corp. 6 * (C) Copyright 2003 Hewlett-Packard 44 return sysfs_emit(buf, format_string, pdev->field); \ 64 * MSI-X, show the legacy INTx IRQ. in irq_show() 66 if (pdev->msi_enabled) in irq_show() 70 return sysfs_emit(buf, "%u\n", pdev->irq); in irq_show() 79 return sysfs_emit(buf, "%u\n", pdev->broken_parity_status); in broken_parity_status_show() 87 unsigned long val; in broken_parity_status_store() local [all …]
|
/openbmc/u-boot/tools/ |
H A D | atmelimage.c | 1 // SPDX-License-Identifier: GPL-2.0+ 25 * A helper struct for parsing the mkimage -n parameter 39 * Strings used for configure the PMECC header via -n mkimage switch 41 * We estimate a coma separated list of key=value pairs. The mkimage -n 128 size -= sizeof(nand_pmecc_header); in atmel_verify_header() 157 int val; in atmel_print_pmecc_header() local 163 val = (word >> 18) & 0x1ff; in atmel_print_pmecc_header() 164 printf("\t\teccOffset: %9i\n", val); in atmel_print_pmecc_header() 166 val = (((word >> 16) & 0x3) == 0) ? 512 : 1024; in atmel_print_pmecc_header() 167 printf("\t\tsectorSize: %8i\n", val); in atmel_print_pmecc_header() [all …]
|
/openbmc/qemu/docs/devel/ |
H A D | loads-stores.rst | 12 documentation of each API -- for that you should look at the 29 store: ``st{size}_{endian}_p(ptr, val)`` 32 - (empty) : for 32 or 64 bit sizes 33 - ``u`` : unsigned 34 - ``s`` : signed 37 - ``b`` : 8 bits 38 - ``w`` : 16 bits 39 - ``24`` : 24 bits 40 - ``l`` : 32 bits 41 - ``q`` : 64 bits [all …]
|