instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'drivers/acpi/event' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * event.c - exporting ACPI events via procfs * * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * */ #define pr_fmt(fmt) "ACPI: " fmt #include <linux/spinlock.h> #include <lin...
Linux kernel'inin 'drivers/acpi/processor_thermal' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * processor_thermal.c - Passive cooling submodule of the ACPI processor driver * * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * Copyright (C) 2004 Dominik Bro...
Linux kernel'inin 'drivers/acpi/platform_profile' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Platform profile sysfs interface */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/acpi.h> #include <linux/bits.h> #include <linux/cleanup.h> #include <linux/init.h> #include <linux/mutex.h> #include <linux/platform_profile.h> #include <linux/sysfs.h>...
Linux kernel'inin 'drivers/acpi/device_pm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * drivers/acpi/device_pm.c - ACPI device power management routines. * * Copyright (C) 2012, Intel Corp. * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * ~~~~~~~~~~~~~~~~~~...
Linux kernel'inin 'drivers/acpi/acpi_apd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * AMD ACPI support for ACPI2platform device. * * Copyright (c) 2014,2015 AMD Corporation. * Authors: Ken Xue <Ken.Xue@amd.com> * Wu, Jeff <Jeff.Wu@amd.com> */ #include <linux/acpi.h> #include <linux/clkdev.h> #include <linux/clk-provider.h> #include <linux/err.h> ...
Linux kernel'inin 'drivers/acpi/tiny-power-button' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/acpi.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/sched/signal.h> #include <acpi/button.h> MODULE_AUTHOR("Josh Triplett"); MODULE_DESCRIPTION("ACPI Tiny Power Button Driver"); MODULE_LICENSE("GPL"); static int power_s...
Linux kernel'inin 'drivers/acpi/processor_idle' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * processor_idle - idle state submodule to the ACPI processor driver * * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * Copyright (C) 2004, 2005 Dominik Brodowski <li...
Linux kernel'inin 'drivers/acpi/acpi_configfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI configfs support * * Copyright (c) 2016 Intel Corporation */ #define pr_fmt(fmt) "ACPI configfs: " fmt #include <linux/init.h> #include <linux/module.h> #include <linux/configfs.h> #include <linux/acpi.h> #include <linux/security.h> static struct config_gro...
Linux kernel'inin 'drivers/acpi/debugfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * debugfs.c - ACPI debugfs interface to userspace. */ #include <linux/export.h> #include <linux/init.h> #include <linux/debugfs.h> #include <linux/acpi.h> #include "internal.h" struct dentry *acpi_debugfs_dir; EXPORT_SYMBOL_GPL(acpi_debugfs_dir); void __init acpi_d...
Linux işletim sistemi çekirdeği için 'drivers/acpi/sleep' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ extern void acpi_enable_wakeup_devices(u8 sleep_state); extern void acpi_disable_wakeup_devices(u8 sleep_state); extern bool acpi_check_wakeup_handlers(void); extern struct list_head acpi_wakeup_device_list; extern struct mutex acpi_device_lock; extern void acpi_resume_pow...
Linux kernel'inin 'drivers/acpi/osl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * acpi_osl.c - OS-dependent functions ($Revision: 83 $) * * Copyright (C) 2000 Andrew Henroid * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * Copyright (c) ...
Linux kernel'inin 'drivers/acpi/acpi_platform' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI support for platform bus type. * * Copyright (C) 2012, Intel Corporation * Authors: Mika Westerberg <mika.westerberg@linux.intel.com> * Mathias Nyman <mathias.nyman@linux.intel.com> * Rafael J. Wysocki <rafael.j.wysocki@intel.com> */ #inc...
Linux kernel'inin 'drivers/acpi/acpi_pnp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI support for PNP bus type * * Copyright (C) 2014, Intel Corporation * Authors: Zhang Rui <rui.zhang@intel.com> * Rafael J. Wysocki <rafael.j.wysocki@intel.com> */ #include <linux/acpi.h> #include <linux/module.h> #include <linux/ctype.h> #include "...
Linux kernel'inin 'drivers/acpi/bus' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * acpi_bus.c - ACPI Bus Driver ($Revision: 80 $) * * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> */ #define pr_fmt(fmt) "ACPI: " fmt #include <linux/module.h> #include <linux/init.h> #include <linux/ioport.h> #include <linux/kerne...
Linux kernel'inin 'drivers/acpi/property' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI device specific properties support. * * Copyright (C) 2014 - 2023, Intel Corporation * All rights reserved. * * Authors: Mika Westerberg <mika.westerberg@linux.intel.com> * Darren Hart <dvhart@linux.intel.com> * Rafael J. Wysocki <rafael....
Linux kernel'inin 'drivers/acpi/evged' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Generic Event Device for ACPI. * * Copyright (c) 2016, The Linux Foundation. All rights reserved. * * Generic Event Device allows platforms to handle interrupts in ACPI * ASL statements. It follows very similar to _EVT method approach * from GPIO events. All in...
Linux kernel'inin 'drivers/acpi/acpi_fpdt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * FPDT support for exporting boot and suspend/resume performance data * * Copyright (C) 2021 Intel Corporation. All rights reserved. */ #define pr_fmt(fmt) "ACPI FPDT: " fmt #include <linux/acpi.h> /* * FPDT contains ACPI table header and a number of fpdt_subtab...
Linux kernel'inin 'drivers/acpi/pptt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * pptt.c - parsing of Processor Properties Topology Table (PPTT) * * Copyright (C) 2018, ARM * * This file implements parsing of the Processor Properties Topology Table * which is optionally used to describe the processor and cache topology. * Due to the relative point...
Linux kernel'inin 'drivers/acpi/acpi_pcc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Author: Sudeep Holla <sudeep.holla@arm.com> * Copyright 2021 Arm Limited * * The PCC Address Space also referred as PCC Operation Region pertains to the * region of PCC subspace that succeeds the PCC signature. The PCC Operation * Region works in conjunction with...
Linux kernel'inin 'drivers/acpi/nfit/intel' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2018 Intel Corporation. All rights reserved. */ #include <linux/libnvdimm.h> #include <linux/ndctl.h> #include <linux/acpi.h> #include <linux/memregion.h> #include <asm/smp.h> #include "intel.h" #include "nfit.h" static ssize_t firmware_activate_noidle_show(stru...
Linux işletim sistemi çekirdeği için 'drivers/acpi/nfit/nfit' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * NVDIMM Firmware Interface Table - NFIT * * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. */ #ifndef __NFIT_H__ #define __NFIT_H__ #include <linux/workqueue.h> #include <linux/libnvdimm.h> #include <linux/ndctl.h> #include <linux/types.h> #includ...
Linux kernel'inin 'drivers/acpi/nfit/core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. */ #include <linux/platform_device.h> #include <linux/list_sort.h> #include <linux/libnvdimm.h> #include <linux/module.h> #include <linux/nospec.h> #include <linux/mutex.h> #include <linux/ndctl.h> #inclu...
Linux kernel'inin 'drivers/acpi/nfit/mce' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * NFIT - Machine Check Handler * * Copyright(c) 2013-2016 Intel Corporation. All rights reserved. */ #include <linux/notifier.h> #include <linux/acpi.h> #include <linux/nd.h> #include <asm/mce.h> #include "nfit.h" static int nfit_handle_mce(struct notifier_block *nb...
Linux işletim sistemi çekirdeği için 'drivers/acpi/nfit/intel' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright(c) 2018 Intel Corporation. All rights reserved. * Intel specific definitions for NVDIMM Firmware Interface Table - NFIT */ #ifndef _NFIT_INTEL_H_ #define _NFIT_INTEL_H_ #define ND_INTEL_SMART 1 #define ND_INTEL_SMART_SHUTDOWN_COUNT_VALID (1 << 5) #define ...
Linux kernel'inin 'drivers/acpi/dptf/dptf_power' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * dptf_power: DPTF platform power driver * Copyright (c) 2016, Intel Corporation. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/acpi.h> #include <linux/platform_device.h> /* * Presentation of attributes which are defined for INT3407 and IN...
Linux kernel'inin 'drivers/acpi/dptf/dptf_pch_fivr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * dptf_pch_fivr: DPTF PCH FIVR Participant driver * Copyright (c) 2020, Intel Corporation. */ #include <linux/acpi.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/platform_device.h> struct pch_fivr_resp { u64 status; u64 result; }; static ...
Linux kernel'inin 'drivers/acpi/numa/srat' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * acpi_numa.c - ACPI NUMA support * * Copyright (C) 2002 Takayoshi Kochi <t-kochi@bq.jp.nec.com> */ #define pr_fmt(fmt) "ACPI: " fmt #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/errno.h> ...
Linux kernel'inin 'drivers/acpi/numa/hmat' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2019, Intel Corporation. * * Heterogeneous Memory Attributes Table (HMAT) representation * * This program parses and reports the platform's HMAT tables, and registers * the applicable attributes with the node's interfaces. */ #define pr_fmt(fmt) "acpi/...
Linux kernel'inin 'drivers/acpi/apei/erst' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * APEI Error Record Serialization Table support * * ERST is a way provided by APEI to save and retrieve hardware error * information to and from a persistent store. * * For more information about ERST, please refer to ACPI Specification * version 4.0, section 17.4...
Linux kernel'inin 'drivers/acpi/apei/bert' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * APEI Boot Error Record Table (BERT) support * * Copyright 2011 Intel Corp. * Author: Huang Ying <ying.huang@intel.com> * * Under normal circumstances, when a hardware error occurs, the error * handler receives control and processes the error. This gives OSPM a...
Linux kernel'inin 'drivers/acpi/apei/einj-cxl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * CXL Error INJection support. Used by CXL core to inject * protocol errors into CXL ports. * * Copyright (C) 2023 Advanced Micro Devices, Inc. * * Author: Ben Cheatham <benjamin.cheatham@amd.com> */ #include <linux/seq_file.h> #include <linux/pci.h> #include <cxl...
Linux kernel'inin 'drivers/acpi/apei/ghes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * APEI Generic Hardware Error Source support * * Generic Hardware Error Source provides a way to report platform * hardware errors (such as that from chipset). It works in so called * "Firmware First" mode, that is, hardware errors are reported to * firmware firstl...
Linux kernel'inin 'drivers/acpi/apei/hest' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * APEI Hardware Error Source Table support * * HEST describes error sources in detail; communicates operational * parameters (i.e. severity levels, masking bits, and threshold * values) to Linux as necessary. It also allows the BIOS to report * non-standard error s...
Linux işletim sistemi çekirdeği için 'drivers/acpi/apei/apei-internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * apei-internal.h - ACPI Platform Error Interface internal * definitions. */ #ifndef APEI_INTERNAL_H #define APEI_INTERNAL_H #include <linux/acpi.h> struct apei_exec_context; typedef int (*apei_exec_ins_func_t)(struct apei_exec_context *ctx, struct acpi_whea...
Linux kernel'inin 'drivers/acpi/apei/erst-dbg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * APEI Error Record Serialization Table debug support * * ERST is a way provided by APEI to save and retrieve hardware error * information to and from a persistent store. This file provide the * debugging/testing support for ERST kernel support and firmware * imple...
Linux kernel'inin 'drivers/acpi/apei/einj-core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * APEI Error INJection support * * EINJ provides a hardware error injection mechanism, this is useful * for debugging and testing of other APEI and RAS features. * * For more information about EINJ, please refer to ACPI Specification * version 4.0, section 17.5. ...
Linux kernel'inin 'drivers/acpi/apei/apei-base' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * apei-base.c - ACPI Platform Error Interface (APEI) supporting * infrastructure * * APEI allows to report errors (for example from the chipset) to * the operating system. This improves NMI handling especially. In * addition it supports error serialization and erro...
Linux kernel'inin 'drivers/acpi/apei/ghes_helpers' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only // Copyright(c) 2025 Intel Corporation. All rights reserved #include <linux/printk.h> #include <linux/aer.h> #include <cxl/event.h> int cxl_cper_sec_prot_err_valid(struct cxl_cper_sec_prot_err *prot_err) { if (!(prot_err->valid_bits & PROT_ERR_VALID_AGENT_ADDRESS)) { p...
Linux kernel'inin 'drivers/acpi/apei/ghes-nvidia' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * NVIDIA GHES vendor record handler * * Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include <linux/acpi.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/types.h> #include <linux/uuid.h> #include <acpi/...
Linux kernel'inin 'drivers/acpi/arm64/amba' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI support for platform bus type. * * Copyright (C) 2015, Linaro Ltd * Author: Graeme Gregory <graeme.gregory@linaro.org> */ #include <linux/acpi.h> #include <linux/amba/bus.h> #include <linux/clkdev.h> #include <linux/clk-provider.h> #include <linux/device.h>...
Linux kernel'inin 'drivers/acpi/arm64/agdi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * This file implements handling of * Arm Generic Diagnostic Dump and Reset Interface table (AGDI) * * Copyright (c) 2022, Ampere Computing LLC */ #define pr_fmt(fmt) "ACPI: AGDI: " fmt #include <linux/acpi.h> #include <linux/arm_sdei.h> #include <linux/io.h> #incl...
Linux kernel'inin 'drivers/acpi/arm64/apmt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ARM APMT table support. * Design document number: ARM DEN0117. * * Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. * */ #define pr_fmt(fmt) "ACPI: APMT: " fmt #include <linux/acpi.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/platform_dev...
Linux kernel'inin 'drivers/acpi/arm64/ffh' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/acpi.h> #include <linux/arm-smccc.h> #include <linux/slab.h> /* * Implements ARM64 specific callbacks to support ACPI FFH Operation Region as * specified in https://developer.arm.com/docs/den0048/latest */ struct acpi_ffh_data { struct acpi_ffh_info inf...
Linux kernel'inin 'drivers/acpi/arm64/init' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/acpi.h> #include "init.h" void __init acpi_arch_init(void) { if (IS_ENABLED(CONFIG_ACPI_AGDI)) acpi_agdi_init(); if (IS_ENABLED(CONFIG_ACPI_APMT)) acpi_apmt_init(); if (IS_ENABLED(CONFIG_ACPI_IORT)) acpi_iort_init(); if (IS_ENABLED(CONFIG_ARM_AMBA...
Linux işletim sistemi çekirdeği için 'drivers/acpi/arm64/init' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/init.h> void __init acpi_agdi_init(void); void __init acpi_apmt_init(void); void __init acpi_iort_init(void); void __init acpi_amba_init(void); ```
Linux kernel'inin 'drivers/acpi/arm64/mpam' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2025 Arm Ltd. /* Parse the MPAM ACPI table feeding the discovered nodes into the driver */ #define pr_fmt(fmt) "ACPI MPAM: " fmt #include <linux/acpi.h> #include <linux/arm_mpam.h> #include <linux/bits.h> #include <linux/cpu.h> #include <linux/cpumask.h> #inc...
Linux kernel'inin 'drivers/acpi/arm64/gtdt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ARM Specific GTDT table Support * * Copyright (C) 2016, Linaro Ltd. * Author: Daniel Lezcano <daniel.lezcano@linaro.org> * Fu Wei <fu.wei@linaro.org> * Hanjun Guo <hanjun.guo@linaro.org> */ #include <linux/acpi.h> #include <linux/init.h> #includ...
Linux kernel'inin 'drivers/acpi/arm64/iort' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2016, Semihalf * Author: Tomasz Nowicki <tn@semihalf.com> * * This file implements early detection/parsing of I/O mapping * reported to OS through firmware via I/O Remapping Table (IORT) * IORT document number: ARM DEN 0049A */ #define pr_fmt(fmt)...
Linux kernel'inin 'drivers/acpi/arm64/thermal_cpufreq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/acpi.h> #include <linux/export.h> #include "../internal.h" #define SMCCC_SOC_ID_T241 0x036b0241 int acpi_arch_thermal_cpufreq_pctg(void) { s32 soc_id = arm_smccc_get_soc_id_version(); /* * Check JEP106 code for NVIDIA Tegra241 chip (036b:0241) a...
Linux kernel'inin 'drivers/acpi/arm64/cpuidle' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ARM64 CPU idle arch support * * Copyright (C) 2014 ARM Ltd. * Author: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> */ #include <linux/acpi.h> #include <linux/cpuidle.h> #include <linux/cpu_pm.h> #include <linux/psci.h> #include <acpi/processor.h> #define ARM64_...
Linux kernel'inin 'drivers/acpi/arm64/dma' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/acpi.h> #include <linux/acpi_iort.h> #include <linux/device.h> #include <linux/dma-direct.h> void acpi_arch_dma_setup(struct device *dev) { int ret; u64 end, mask; const struct bus_dma_region *map = NULL; /* * If @dev is expected to be DMA-capable th...
Linux kernel'inin 'drivers/acpi/x86/cmos_rtc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI support for CMOS RTC Address Space access * * Copyright (C) 2013, Intel Corporation * Authors: Lan Tianyu <tianyu.lan@intel.com> */ #define pr_fmt(fmt) "ACPI: " fmt #include <linux/acpi.h> #include <linux/device.h> #include <linux/err.h> #include <linux/ker...
Linux kernel'inin 'drivers/acpi/x86/s2idle' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Architecture-specific ACPI-based support for suspend-to-idle. * * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> * Author: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> * * On platforms support...
Linux kernel'inin 'drivers/acpi/x86/lpss' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI support for Intel Lynxpoint LPSS. * * Copyright (C) 2013, Intel Corporation * Authors: Mika Westerberg <mika.westerberg@linux.intel.com> * Rafael J. Wysocki <rafael.j.wysocki@intel.com> */ #include <linux/acpi.h> #include <linux/clkdev.h> #include ...
Linux kernel'inin 'drivers/acpi/x86/blacklist' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * blacklist.c * * Check to see if the given machine has a known bad ACPI BIOS * or if the BIOS is too old. * Check given machine against acpi_rev_dmi_table[]. * * Copyright (C) 2004 Len Brown <len.brown@intel.com> * Copyright (C) 2002 Andy Grover <andre...
Linux kernel'inin 'drivers/acpi/x86/utils' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * X86 ACPI Utility Functions * * Copyright (C) 2017 Hans de Goede <hdegoede@redhat.com> * * Based on various non upstream patches to support the CHT Whiskey Cove PMIC: * Copyright (C) 2013-2015 Intel Corporation. All rights reserved. */ #define pr_fmt(fmt) "ACPI:...
Linux kernel'inin 'drivers/acpi/x86/apple' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * apple.c - Apple ACPI quirks * Copyright (C) 2017 Lukas Wunner <lukas@wunner.de> */ #include <linux/acpi.h> #include <linux/bitmap.h> #include <linux/platform_data/x86/apple.h> #include <linux/uuid.h> #include "../internal.h" /* Apple _DSM device properties GUID */...
Linux kernel'inin 'drivers/acpi/riscv/irq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2023-2024, Ventana Micro Systems Inc * Author: Sunil V L <sunilvl@ventanamicro.com> */ #include <linux/acpi.h> #include <linux/sort.h> #include <linux/irq.h> #include "init.h" #define RISCV_ACPI_INTC_FLAG_PENDING BIT(0) struct riscv_ext_intc_list {...
Linux kernel'inin 'drivers/acpi/riscv/init' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2023-2024, Ventana Micro Systems Inc * Author: Sunil V L <sunilvl@ventanamicro.com> */ #include <linux/acpi.h> #include "init.h" void __init acpi_arch_init(void) { riscv_acpi_init_gsi_mapping(); if (IS_ENABLED(CONFIG_ACPI_RIMT)) riscv_acpi_rimt_i...
Linux işletim sistemi çekirdeği için 'drivers/acpi/riscv/init' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/init.h> void __init riscv_acpi_init_gsi_mapping(void); void __init riscv_acpi_rimt_init(void); ```
Linux kernel'inin 'drivers/acpi/riscv/rhct' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2022-2023, Ventana Micro Systems Inc * Author: Sunil V L <sunilvl@ventanamicro.com> * */ #define pr_fmt(fmt) "ACPI: RHCT: " fmt #include <linux/acpi.h> #include <linux/bits.h> static struct acpi_table_rhct *acpi_get_rhct(void) { static struct ...
Linux kernel'inin 'drivers/acpi/riscv/rimt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2024-2025, Ventana Micro Systems Inc * Author: Sunil V L <sunilvl@ventanamicro.com> * */ #define pr_fmt(fmt) "ACPI: RIMT: " fmt #include <linux/acpi.h> #include <linux/acpi_rimt.h> #include <linux/iommu.h> #include <linux/list.h> #include <linux/pci...
Linux kernel'inin 'drivers/acpi/riscv/cpuidle' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2024, Ventana Micro Systems Inc * Author: Sunil V L <sunilvl@ventanamicro.com> * */ #include <linux/acpi.h> #include <acpi/processor.h> #include <linux/cpu_pm.h> #include <linux/cpuidle.h> #include <linux/suspend.h> #include <asm/cpuidle.h> #include ...
Linux kernel'inin 'drivers/acpi/riscv/cppc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Implement CPPC FFH helper routines for RISC-V. * * Copyright (C) 2024 Ventana Micro Systems Inc. */ #include <acpi/cppc_acpi.h> #include <asm/csr.h> #include <asm/sbi.h> #define SBI_EXT_CPPC 0x43505043 /* CPPC interfaces defined in SBI spec */ #define SBI_CPPC_P...
Linux kernel'inin 'drivers/acpi/pmic/intel_pmic_chtcrc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Intel Cherry Trail Crystal Cove PMIC operation region driver * * Copyright (C) 2019 Hans de Goede <hdegoede@redhat.com> */ #include <linux/acpi.h> #include <linux/init.h> #include <linux/mfd/intel_soc_pmic.h> #include <linux/platform_device.h> #include <linux/regmap.h>...
Linux kernel'inin 'drivers/acpi/pmic/tps68470_pmic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * TI TPS68470 PMIC operation region driver * * Copyright (C) 2017 Intel Corporation. All rights reserved. * * Author: Rajmohan Mani <rajmohan.mani@intel.com> * * Based on drivers/acpi/pmic/intel_pmic* drivers */ #include <linux/acpi.h> #include <linux/init.h> #includ...
Linux kernel'inin 'drivers/acpi/pmic/intel_pmic_xpower' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * XPower AXP288 PMIC operation region driver * * Copyright (C) 2014 Intel Corporation. All rights reserved. */ #include <linux/acpi.h> #include <linux/init.h> #include <linux/mfd/axp20x.h> #include <linux/regmap.h> #include <linux/platform_device.h> #include <asm/iosf_mb...
Linux kernel'inin 'drivers/acpi/pmic/intel_pmic_bxtwc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Intel BXT WhiskeyCove PMIC operation region driver * * Copyright (C) 2015 Intel Corporation. All rights reserved. */ #include <linux/init.h> #include <linux/acpi.h> #include <linux/mfd/intel_soc_pmic.h> #include <linux/regmap.h> #include <linux/platform_device.h> #incl...
Linux kernel'inin 'drivers/acpi/pmic/intel_pmic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * intel_pmic.c - Intel PMIC operation region driver * * Copyright (C) 2014 Intel Corporation. All rights reserved. */ #include <linux/export.h> #include <linux/acpi.h> #include <linux/mfd/intel_soc_pmic.h> #include <linux/regmap.h> #include <acpi/acpi_lpat.h> #inclu...
Linux işletim sistemi çekirdeği için 'drivers/acpi/pmic/intel_pmic' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __INTEL_PMIC_H #define __INTEL_PMIC_H #include <acpi/acpi_lpat.h> struct pmic_table { int address; /* operation region address */ int reg; /* corresponding thermal register */ int bit; /* control bit for power */ }; struct intel_pmic_opregion_data { int (*get_p...
Linux kernel'inin 'drivers/acpi/pmic/intel_pmic_chtwc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Intel CHT Whiskey Cove PMIC operation region driver * Copyright (C) 2017 Hans de Goede <hdegoede@redhat.com> * * Based on various non upstream patches to support the CHT Whiskey Cove PMIC: * Copyright (C) 2013-2015 Intel Corporation. All rights reserved. */ #include ...
Linux kernel'inin 'drivers/acpi/pmic/intel_pmic_chtdc_ti' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Dollar Cove TI PMIC operation region driver * Copyright (C) 2014 Intel Corporation. All rights reserved. * * Rewritten and cleaned up * Copyright (C) 2017 Takashi Iwai <tiwai@suse.de> */ #include <linux/acpi.h> #include <linux/bits.h> #include <linux/init.h> #include...
Linux kernel'inin 'drivers/acpi/pmic/intel_pmic_bytcrc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Intel Bay Trail Crystal Cove PMIC operation region driver * * Copyright (C) 2014 Intel Corporation. All rights reserved. */ #include <linux/acpi.h> #include <linux/init.h> #include <linux/mfd/intel_soc_pmic.h> #include <linux/platform_device.h> #include <linux/regmap.h...
Linux kernel'inin 'drivers/acpi/acpica/tbutils' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: tbutils - ACPI Table utilities * * Copyright (C) 2000 - 2025, Intel Corp. * *****************************************************************************/ #inc...
Linux kernel'inin 'drivers/acpi/acpica/nsarguments' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: nsarguments - Validation of args for ACPI predefined methods * * Copyright (C) 2000 - 2025, Intel Corp. * ******************************************************...
Linux kernel'inin 'drivers/acpi/acpica/dbobject' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: dbobject - ACPI object decode and display * ******************************************************************************/ #include <acpi/acpi.h> #include "acc...
Linux kernel'inin 'drivers/acpi/acpica/pstree' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: pstree - Parser op tree manipulation/traversal/search * * Copyright (C) 2000 - 2025, Intel Corp. * *************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/evmisc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: evmisc - Miscellaneous event manager support functions * * Copyright (C) 2000 - 2025, Intel Corp. * ************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/utmisc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: utmisc - common utility procedures * ******************************************************************************/ #include <acpi/acpi.h> #include "accommon.h...
Linux kernel'inin 'drivers/acpi/acpica/utcache' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: utcache - local cache allocation routines * * Copyright (C) 2000 - 2025, Intel Corp. * *************************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/utresdecode' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: utresdecode - Resource descriptor keyword strings * ******************************************************************************/ #include <acpi/acpi.h> #incl...
Linux kernel'inin 'drivers/acpi/acpica/dbfileio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: dbfileio - Debugger file I/O commands. These can't usually * be used when running the debugger in Ring 0 (Kernel mode) * **************************...
Linux kernel'inin 'drivers/acpi/acpica/utaddress' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: utaddress - op_region address range check * * Copyright (C) 2000 - 2025, Intel Corp. * *************************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/utprint' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: utprint - Formatted printing routines * * Copyright (C) 2000 - 2025, Intel Corp. * *****************************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/utownerid' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: utownerid - Support for Table/Method Owner IDs * ******************************************************************************/ #include <acpi/acpi.h> #include...
Linux kernel'inin 'drivers/acpi/acpica/psloop' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: psloop - Main AML parse loop * * Copyright (C) 2000 - 2025, Intel Corp. * *****************************************************************************/ /* * ...
Linux işletim sistemi çekirdeği için 'drivers/acpi/acpica/acnamesp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /****************************************************************************** * * Name: acnamesp.h - Namespace subcomponent prototypes and defines * * Copyright (C) 2000 - 2025, Intel Corp. * ************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/dbconvert' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: dbconvert - debugger miscellaneous conversion routines * ******************************************************************************/ #include <acpi/acpi.h> ...
Linux kernel'inin 'drivers/acpi/acpica/utpredef' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: utpredef - support functions for predefined names * * Copyright (C) 2000 - 2025, Intel Corp. * *****************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/dsinit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: dsinit - Object initialization namespace walk * * Copyright (C) 2000 - 2025, Intel Corp. * *********************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/nsdumpdv' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: nsdump - table dumping routines for debug * * Copyright (C) 2000 - 2025, Intel Corp. * *************************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/evgpeutil' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: evgpeutil - GPE utilities * * Copyright (C) 2000 - 2025, Intel Corp. * *****************************************************************************/ #include ...
Linux kernel'inin 'drivers/acpi/acpica/evgpeinit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: evgpeinit - System GPE initialization and update * * Copyright (C) 2000 - 2025, Intel Corp. * ******************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/utalloc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: utalloc - local memory allocation routines * * Copyright (C) 2000 - 2025, Intel Corp. * ************************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/dbmethod' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: dbmethod - Debug commands for control methods * ******************************************************************************/ #include <acpi/acpi.h> #include ...
Linux kernel'inin 'drivers/acpi/acpica/utmutex' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: utmutex - local mutex support * ******************************************************************************/ #include <acpi/acpi.h> #include "accommon.h" #d...
Linux kernel'inin 'drivers/acpi/acpica/psparse' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: psparse - Parser top level AML parse routines * * Copyright (C) 2000 - 2025, Intel Corp. * *********************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/rsmemory' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /******************************************************************************* * * Module Name: rsmem24 - Memory resource descriptors * ******************************************************************************/ #include <acpi/acpi.h> #include "accommo...
Linux işletim sistemi çekirdeği için 'drivers/acpi/acpica/acapps' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ /****************************************************************************** * * Module Name: acapps - common include for ACPI applications/tools * * Copyright (C) 2000 - 2025, Intel Corp. * ************************************************************...
Linux kernel'inin 'drivers/acpi/acpica/exoparg3' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 /****************************************************************************** * * Module Name: exoparg3 - AML execution - opcodes with 3 arguments * * Copyright (C) 2000 - 2025, Intel Corp. * ***************************************************************...