Home
last modified time | relevance | path

Searched full:fw_cfg (Results 1 – 12 of 12) sorted by relevance

/linux/Documentation/ABI/testing/
H A Dsysfs-firmware-qemu_fw_cfg7 (fw_cfg) device, originally intended as a way for the host to
9 with QEMU v2.4, arbitrary fw_cfg file entries may be specified
10 by the user on the command line, which makes fw_cfg additionally
15 to the fw_cfg device can be found in "docs/specs/fw_cfg.rst"
17 https://qemu-project.gitlab.io/qemu/specs/fw_cfg.html
19 **SysFS fw_cfg Interface**
21 The fw_cfg sysfs interface described in this document is only
27 All fw_cfg information is shown under:
31 The only legacy blob displayed is the fw_cfg device revision:
35 **Discoverable fw_cfg blobs by selector key**
[all …]
/linux/drivers/firmware/
H A Dqemu_fw_cfg.c6 * Expose entries from QEMU's firmware configuration (fw_cfg) device in
9 * The fw_cfg device may be instantiated via either an ACPI node (on x86
43 MODULE_DESCRIPTION("QEMU fw_cfg sysfs support");
46 /* fw_cfg revision attribute, in /sys/firmware/qemu_fw_cfg top-level dir. */
49 /* fw_cfg device i/o register addresses */
58 /* atomic access to fw_cfg device (potentially slow i/o, so using mutex) */
76 /* qemu fw_cfg device is sync today, but spec says it may become async */
103 /* fw_cfg device does not need IOMMU protection, so use physical addresses */ in fw_cfg_dma_transfer()
130 /* read chunk of given fw_cfg blob (caller responsible for sanity-check) */
160 /* write chunk of given fw_cfg blob (caller responsible for sanity-check) */
[all …]
H A DKconfig123 tristate "QEMU fw_cfg device support in sysfs"
129 configuration (fw_cfg) file entries via sysfs. Entries are
130 found under /sys/firmware/fw_cfg when this option is enabled
134 bool "QEMU fw_cfg device parameter parsing"
/linux/include/uapi/linux/
H A Dqemu_fw_cfg.h9 /* selector key values for "well-known" fw_cfg entries */
46 /* width in bytes of fw_cfg control register */
49 /* fw_cfg "file name" is up to 56 characters (including terminating nul) */
52 /* size in bytes of fw_cfg signature */
59 /* fw_cfg file directory entry type */
/linux/drivers/usb/typec/ucsi/
H A Ducsi_ccg.c1040 struct fw_config_table *fw_cfg) in ccg_check_vendor_version() argument
1051 if (le16_to_cpu(fw_cfg->app.build) != uc->fw_build) { in ccg_check_vendor_version()
1063 struct fw_config_table fw_cfg; in ccg_check_fw_version() local
1076 if (fw->size < sizeof(fw_cfg) + FW_CFG_TABLE_SIG_SIZE) in ccg_check_fw_version()
1079 memcpy((uint8_t *)&fw_cfg, fw->data + fw->size - in ccg_check_fw_version()
1080 sizeof(fw_cfg) - FW_CFG_TABLE_SIG_SIZE, sizeof(fw_cfg)); in ccg_check_fw_version()
1082 if (fw_cfg.identity != ('F' | 'W' << 8 | 'C' << 16 | 'T' << 24)) { in ccg_check_fw_version()
1091 new_version = le16_to_cpu(fw_cfg.app.build) | in ccg_check_fw_version()
1092 CCG_VERSION_PATCH(fw_cfg.app.patch) | in ccg_check_fw_version()
1093 CCG_VERSION(fw_cfg.app.ver); in ccg_check_fw_version()
[all …]
/linux/Documentation/devicetree/bindings/firmware/
H A Dqemu,fw-cfg-mmio.yaml23 The authoritative guest-side hardware interface documentation to the fw_cfg
24 device can be found in "docs/specs/fw_cfg.txt" in the QEMU source tree.
/linux/sound/soc/intel/avs/
H A Dloader.c495 for (id = 0; id < adev->fw_cfg.max_libs_count; id++) in avs_dsp_load_libraries()
498 if (id + num_libs >= adev->fw_cfg.max_libs_count) in avs_dsp_load_libraries()
622 for (i = 1; i < adev->fw_cfg.max_libs_count; i++) in avs_load_firmware()
694 ret = avs_ipc_get_fw_config(adev, &adev->fw_cfg); in avs_dsp_alloc_resources()
708 adev->lib_names = devm_kcalloc(adev->dev, adev->fw_cfg.max_libs_count, in avs_dsp_alloc_resources()
713 for (i = 0; i < adev->fw_cfg.max_libs_count; i++) { in avs_dsp_alloc_resources()
H A Ddsp.c302 struct avs_fw_cfg *fw_cfg = &adev->fw_cfg; in avs_dsp_create_pipeline() local
305 id = ida_alloc_max(&adev->ppl_ida, fw_cfg->max_ppl_count - 1, GFP_KERNEL); in avs_dsp_create_pipeline()
H A Dsysfs.c15 struct avs_fw_version *fw_version = &adev->fw_cfg.fw_version; in fw_version_show()
H A Davs.h124 * @fw_cfg: Firmware configuration, obtained through FW_CONFIG message
140 struct avs_fw_cfg fw_cfg;
141 struct avs_fw_cfg fw_cfg; global() member
H A Dicl.c23 u32 size, num_libs = adev->fw_cfg.max_libs_count; in avs_icl_enable_logs()
/linux/arch/parisc/kernel/
H A Dinventory.c654 res[0].name = "fw_cfg"; in do_device_inventory()
668 pr_info("Found qemu fw_cfg interface at %#08x\n", base); in do_device_inventory()
669 platform_device_register_simple("fw_cfg", in do_device_inventory()