instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'drivers/platform/x86/hp/hp-bioscfg/surestart-attributes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions corresponding to sure start object type attributes under * BIOS for use with hp-bioscfg driver * * Copyright (c) 2022 HP Development Company, L.P. */ #include "bioscfg.h" #include <linux/types.h> /* Maximum number of log entries supported when log entry siz...
Linux işletim sistemi çekirdeği için 'drivers/platform/x86/hp/hp-bioscfg/bioscfg' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 * * Definitions for kernel modules using hp_bioscfg driver * * Copyright (c) 2022 HP Development Company, L.P. */ #ifndef _HP_BIOSCFG_H_ #define _HP_BIOSCFG_H_ #include <linux/wmi.h> #include <linux/types.h> #include <linux/string.h> #include <linux/device.h> #include <l...
Linux kernel'inin 'drivers/platform/x86/hp/hp-bioscfg/order-list-attributes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions corresponding to ordered list type attributes under * BIOS ORDERED LIST GUID for use with hp-bioscfg driver. * * Copyright (c) 2022 HP Development Company, L.P. */ #include "bioscfg.h" GET_INSTANCE_ID(ordered_list); static ssize_t current_value_show(struct...
Linux kernel'inin 'drivers/platform/x86/hp/hp-bioscfg/string-attributes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions corresponding to string type attributes under * HP_WMI_BIOS_STRING_GUID for use with hp-bioscfg driver. * * Copyright (c) 2022 HP Development Company, L.P. */ #include "bioscfg.h" #define WMI_STRING_TYPE "HPBIOS_BIOSString" GET_INSTANCE_ID(string); static...
Linux kernel'inin 'drivers/platform/x86/hp/hp-bioscfg/enum-attributes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions corresponding to enumeration type attributes under * BIOS Enumeration GUID for use with hp-bioscfg driver. * * Copyright (c) 2022 HP Development Company, L.P. */ #include "bioscfg.h" GET_INSTANCE_ID(enumeration); static ssize_t current_value_show(struct ko...
Linux kernel'inin 'drivers/platform/x86/hp/hp-bioscfg/biosattr-interface' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions corresponding to methods under BIOS interface GUID * for use with hp-bioscfg driver. * * Copyright (c) 2022 Hewlett-Packard Inc. */ #include <linux/wmi.h> #include "bioscfg.h" /* * struct bios_args buffer is dynamically allocated. New WMI command types ...
Linux kernel'inin 'drivers/platform/x86/amd/wbrf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Wifi Frequency Band Manage Interface * Copyright (C) 2023 Advanced Micro Devices */ #include <linux/acpi.h> #include <linux/acpi_amd_wbrf.h> /* * Functions bit vector for WBRF method * * Bit 0: WBRF supported. * Bit 1: Function 1 (Add / Remove frequency) is support...
Linux kernel'inin 'drivers/platform/x86/amd/amd_isp4' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * AMD ISP platform driver for sensor i2-client instantiation * * Copyright 2025 Advanced Micro Devices, Inc. */ #include <linux/err.h> #include <linux/i2c.h> #include <linux/module.h> #include <linux/mutex.h> #include <linux/platform_device.h> #include <linux/property.h...
Linux kernel'inin 'drivers/platform/x86/amd/x3d_vcache' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * AMD 3D V-Cache Performance Optimizer Driver * * Copyright (c) 2024, Advanced Micro Devices, Inc. * All Rights Reserved. * * Authors: Basavaraj Natikar <Basavaraj.Natikar@amd.com> * Perry Yuan <perry.yuan@amd.com> * Mario Limonciello <mario...
Linux kernel'inin 'drivers/platform/x86/amd/pmf/sps' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD Platform Management Framework (PMF) Driver * * Copyright (c) 2022, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #include "pmf.h" static struct amd_pmf_static_slider_granular_v2 config_store_v2; s...
Linux kernel'inin 'drivers/platform/x86/amd/pmf/tee-if' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD Platform Management Framework Driver - TEE Interface * * Copyright (c) 2023, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #include <linux/debugfs.h> #include <linux/tee_drv.h> #include <linux/uuid...
Linux kernel'inin 'drivers/platform/x86/amd/pmf/core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * AMD Platform Management Framework Driver * * Copyright (c) 2022, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #include <linux/array_size.h> #include <linux/cleanup.h> #include <linux/debugfs....
Linux işletim sistemi çekirdeği için 'drivers/platform/x86/amd/pmf/pmf' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * AMD Platform Management Framework Driver * * Copyright (c) 2022, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #ifndef PMF_H #define PMF_H #include <linux/acpi.h> #include <linux/amd-pmf-io.h> #inc...
Linux kernel'inin 'drivers/platform/x86/amd/pmf/acpi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD Platform Management Framework Driver * * Copyright (c) 2022, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #include <linux/acpi.h> #include <linux/array_size.h> #include <linux/cleanup.h> #include ...
Linux kernel'inin 'drivers/platform/x86/amd/pmf/cnqf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD Platform Management Framework Driver * * Copyright (c) 2022, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #include <linux/string_choices.h> #include <linux/workqueue.h> #include "pmf.h" static st...
Linux kernel'inin 'drivers/platform/x86/amd/pmf/spc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD Platform Management Framework Driver - Smart PC Capabilities * * Copyright (c) 2023, Advanced Micro Devices, Inc. * All Rights Reserved. * * Authors: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> * Patil Rajesh Reddy <Patil.Reddy@amd.com> */ #include <ac...
Linux kernel'inin 'drivers/platform/x86/amd/pmf/auto-mode' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD Platform Management Framework Driver * * Copyright (c) 2022, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #include <linux/acpi.h> #include <linux/workqueue.h> #include "pmf.h" static struct auto_...
Linux kernel'inin 'drivers/platform/x86/amd/hfi/hfi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * AMD Hardware Feedback Interface Driver * * Copyright (C) 2025 Advanced Micro Devices, Inc. All Rights Reserved. * * Authors: Perry Yuan <Perry.Yuan@amd.com> * Mario Limonciello <mario.limonciello@amd.com> */ #define pr_fmt(fmt) "amd-hfi: " fmt #i...
Linux işletim sistemi çekirdeği için 'drivers/platform/x86/amd/pmc/pmc' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * AMD SoC Power Management Controller Driver * * Copyright (c) 2023, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Mario Limonciello <mario.limonciello@amd.com> */ #ifndef PMC_H #define PMC_H #include <linux/types.h> #include <linux/mute...
Linux kernel'inin 'drivers/platform/x86/amd/pmc/pmc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * AMD SoC Power Management Controller Driver * * Copyright (c) 2020, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/acpi.h> #include <...
Linux kernel'inin 'drivers/platform/x86/amd/pmc/mp1_stb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * AMD MP1 Smart Trace Buffer (STB) Layer * * Copyright (c) 2024, Advanced Micro Devices, Inc. * All Rights Reserved. * * Authors: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> * Sanket Goswami <Sanket.Goswami@amd.com> */ #define pr_fmt(fmt) KBUILD_MOD...
Linux kernel'inin 'drivers/platform/x86/amd/pmc/pmc-quirks' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * AMD SoC Power Management Controller Driver Quirks * * Copyright (c) 2023, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Mario Limonciello <mario.limonciello@amd.com> */ #include <linux/dmi.h> #include <linux/io.h> #include <linux/ioport.h>...
Linux kernel'inin 'drivers/platform/x86/amd/pmc/mp2_stb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD MP2 STB layer * * Copyright (c) 2024, Advanced Micro Devices, Inc. * All Rights Reserved. * * Author: Basavaraj Natikar <Basavaraj.Natikar@amd.com> */ #include <linux/debugfs.h> #include <linux/device.h> #include <linux/io.h> #include <linux/io-64-nonatomic-lo-h...
Linux kernel'inin 'drivers/platform/x86/amd/hsmp/plat' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD HSMP Platform Driver * Copyright (c) 2024, AMD. * All Rights Reserved. * * This file provides platform device implementations. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <asm/amd/hsmp.h> #include <linux/acpi.h> #include <linux/build_bug.h> #include...
Linux işletim sistemi çekirdeği için 'drivers/platform/x86/amd/hsmp/hsmp' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * AMD HSMP Platform Driver * Copyright (c) 2024, AMD. * All Rights Reserved. * * Header file for HSMP driver */ #ifndef HSMP_H #define HSMP_H #include <linux/compiler_types.h> #include <linux/device.h> #include <linux/hwmon.h> #include <linux/kconfig.h> #include <l...
Linux kernel'inin 'drivers/platform/x86/amd/hsmp/hwmon' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD HSMP hwmon support * Copyright (c) 2025, AMD. * All Rights Reserved. * * This file provides hwmon implementation for HSMP interface. */ #include <asm/amd/hsmp.h> #include <linux/device.h> #include <linux/err.h> #include <linux/hwmon.h> #include <linux/types.h> #...
Linux kernel'inin 'drivers/platform/x86/amd/hsmp/hsmp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD HSMP Platform Driver * Copyright (c) 2022, AMD. * All Rights Reserved. * * This file provides a device implementation for HSMP interface */ #include <asm/amd/hsmp.h> #include <linux/acpi.h> #include <linux/delay.h> #include <linux/device.h> #include <linux/semap...
Linux kernel'inin 'drivers/platform/x86/amd/hsmp/acpi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * AMD HSMP Platform Driver * Copyright (c) 2024, AMD. * All Rights Reserved. * * This file provides an ACPI based driver implementation for HSMP interface. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <asm/amd/hsmp.h> #include <linux/acpi.h> #include <linu...
Linux kernel'inin 'drivers/platform/x86/tuxedo/nb04/wmi_ab' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * This driver implements the WMI AB device found on TUXEDO notebooks with board * vendor NB04. * * Copyright (C) 2024-2025 Werner Sembach <wse@tuxedocomputers.com> */ #include <linux/dmi.h> #include <linux/hid.h> #include <linux/minmax.h> #include <linux/module...
Linux işletim sistemi çekirdeği için 'drivers/platform/x86/tuxedo/nb04/wmi_util' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This code gives functions to avoid code duplication while interacting with * the TUXEDO NB04 wmi interfaces. * * Copyright (C) 2024-2025 Werner Sembach <wse@tuxedocomputers.com> */ #ifndef TUXEDO_NB04_WMI_UTIL_H #define TUXEDO_NB04_WMI_UTIL_H #include <li...
Linux kernel'inin 'drivers/platform/x86/tuxedo/nb04/wmi_util' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * This code gives functions to avoid code duplication while interacting with * the TUXEDO NB04 wmi interfaces. * * Copyright (C) 2024-2025 Werner Sembach <wse@tuxedocomputers.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/cleanup.h> #inclu...
Linux işletim sistemi çekirdeği için 'drivers/platform/x86/x86-android-tablets/x86-android-tablets' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later * * DMI based code to deal with broken DSDTs on X86 tablets which ship with * Android as (part of) the factory image. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/acer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Board info for Acer X86 tablets which ship with Android as the factory image * and which have broken DSDT tables. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux işletim sistemi çekirdeği için 'drivers/platform/x86/x86-android-tablets/shared-psy-info' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later * * Shared psy info for X86 tablets which ship with Android as the factory image * and which have broken DSDT tables. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/other' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * DMI based code to deal with broken DSDTs on X86 tablets which ship with * Android as (part of) the factory image. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/dmi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * DMI based code to deal with broken DSDTs on X86 tablets which ship with * Android as (part of) the factory image. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/shared-psy-info' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Shared psy info for X86 tablets which ship with Android as the factory image * and which have broken DSDT tables. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/vexia_atla10_ec' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * power_supply class (battery) driver for the I2C attached embedded controller * found on Vexia EDU ATLA 10 (9V version) tablets. * * This is based on the ACPI Battery device in the DSDT which should work * expect that it expects the I2C controller to be enumerated as an...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/asus' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Board info for Asus X86 tablets which ship with Android as the factory image * and which have broken DSDT tables. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * DMI based code to deal with broken DSDTs on X86 tablets which ship with * Android as (part of) the factory image. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright (...
Linux kernel'inin 'drivers/platform/x86/x86-android-tablets/lenovo' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Board info for Lenovo X86 tablets which ship with Android as the factory image * and which have broken DSDT tables. The factory kernels shipped on these * devices typically have a bunch of things hardcoded, rather than specified * in their DSDT. * * Copyright...
Linux kernel'inin 'drivers/platform/goldfish/goldfish_pipe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2012 Intel, Inc. * Copyright (C) 2013 Intel, Inc. * Copyright (C) 2014 Linaro Limited * Copyright (C) 2011-2016 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software F...
Linux işletim sistemi çekirdeği için 'drivers/platform/goldfish/goldfish_pipe_qemu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * IMPORTANT: The following constants must match the ones used and defined in * external/qemu/include/hw/misc/goldfish_pipe.h */ #ifndef GOLDFISH_PIPE_QEMU_H #define GOLDFISH_PIPE_QEMU_H /* List of bitflags returned in status of CMD_POLL command */ enum PipePollFlags {...
Linux kernel'inin 'drivers/platform/mips/cpu_hwmon' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/err.h> #include <linux/module.h> #include <linux/reboot.h> #include <linux/jiffies.h> #include <linux/hwmon.h> #include <linux/hwmon-sysfs.h> #include <loongson.h> #include <boot_param.h> #include <loongson_hwmon.h> #include <loongson_regs.h> static int cs...
Linux kernel'inin 'drivers/platform/mips/ls2k-reset' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2021, Qing Zhang <zhangqing@loongson.cn> * Loongson-2K1000 reset support */ #include <linux/of_address.h> #include <linux/pm.h> #include <asm/reboot.h> #define PM1_STS 0x0c /* Power Management 1 Status Register */ #define PM1_CNT 0x14 /* Power Managem...
Linux kernel'inin 'drivers/platform/mips/rs780e-acpi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/io.h> #include <linux/init.h> #include <linux/ioport.h> #include <linux/export.h> #include <linux/of.h> #include <linux/platform_device.h> static unsigned long acpi_iobase; #define ACPI_PM_EVT_BLK (acpi_iobase + 0x00) /* 4 bytes */ #define ACPI_PM_CNT_B...
Linux kernel'inin 'drivers/platform/cznic/turris-omnia-mcu-sys-off-wakeup' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * CZ.NIC's Turris Omnia MCU system off and RTC wakeup driver * * This is not a true RTC driver (in the sense that it does not provide a * real-time clock), rather the MCU implements a wakeup from powered off state * at a specified time relative to MCU boot, and we expose...
Linux kernel'inin 'drivers/platform/cznic/turris-signing-key' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Some of CZ.NIC's Turris devices support signing messages with a per-device unique asymmetric * cryptographic key that was burned into the device at manufacture. * * This helper module exposes this message signing ability via the keyctl() syscall. Upon load, it * create...
Linux kernel'inin 'drivers/platform/cznic/turris-omnia-mcu-base' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * CZ.NIC's Turris Omnia MCU driver * * 2024 by Marek Behún <kabel@kernel.org> */ #include <linux/array_size.h> #include <linux/bits.h> #include <linux/device.h> #include <linux/errno.h> #include <linux/hex.h> #include <linux/i2c.h> #include <linux/module.h> #include <lin...
Linux kernel'inin 'drivers/platform/cznic/turris-omnia-mcu-gpio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * CZ.NIC's Turris Omnia MCU GPIO and IRQ driver * * 2024 by Marek Behún <kabel@kernel.org> */ #include <linux/array_size.h> #include <linux/bitfield.h> #include <linux/bitops.h> #include <linux/bug.h> #include <linux/cleanup.h> #include <linux/device.h> #include <linux/d...
Linux kernel'inin 'drivers/platform/cznic/turris-omnia-mcu-watchdog' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * CZ.NIC's Turris Omnia MCU watchdog driver * * 2024 by Marek Behún <kabel@kernel.org> */ #include <linux/bitops.h> #include <linux/device.h> #include <linux/i2c.h> #include <linux/moduleparam.h> #include <linux/types.h> #include <linux/units.h> #include <linux/watchdog....
Linux işletim sistemi çekirdeği için 'drivers/platform/cznic/turris-omnia-mcu' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * CZ.NIC's Turris Omnia MCU driver * * 2024 by Marek Behún <kabel@kernel.org> */ #ifndef __TURRIS_OMNIA_MCU_H #define __TURRIS_OMNIA_MCU_H #include <linux/completion.h> #include <linux/gpio/driver.h> #include <linux/hw_random.h> #include <linux/if_ether.h> #include <...
Linux kernel'inin 'drivers/platform/cznic/turris-omnia-mcu-trng' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * CZ.NIC's Turris Omnia MCU TRNG driver * * 2024 by Marek Behún <kabel@kernel.org> */ #include <linux/completion.h> #include <linux/container_of.h> #include <linux/errno.h> #include <linux/hw_random.h> #include <linux/i2c.h> #include <linux/interrupt.h> #include <linux/m...
Linux kernel'inin 'drivers/platform/cznic/turris-omnia-mcu-keyctl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * CZ.NIC's Turris Omnia MCU ECDSA message signing via keyctl * * 2025 by Marek Behún <kabel@kernel.org> */ #include <crypto/sha2.h> #include <linux/cleanup.h> #include <linux/completion.h> #include <linux/device.h> #include <linux/err.h> #include <linux/i2c.h> #include <...
Linux işletim sistemi çekirdeği için 'drivers/mcb/mcb-internal' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __MCB_INTERNAL #define __MCB_INTERNAL #include <linux/types.h> #define PCI_VENDOR_ID_MEN 0x1a88 #define PCI_DEVICE_ID_MEN_CHAMELEON 0x4d45 #define CHAMELEONV2_MAGIC 0xabce #define CHAM_HEADER_SIZE 0x200 enum chameleon_descriptor_type { CHAMELEON_DTYPE_GENERAL =...
Linux kernel'inin 'drivers/mcb/mcb-pci' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * MEN Chameleon Bus. * * Copyright (C) 2014 MEN Mikroelektronik GmbH (www.men.de) * Author: Johannes Thumshirn <johannes.thumshirn@men.de> */ #include <linux/module.h> #include <linux/pci.h> #include <linux/mcb.h> #include "mcb-internal.h" struct priv { struct m...
Linux kernel'inin 'drivers/mcb/mcb-parse' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/types.h> #include <linux/ioport.h> #include <linux/slab.h> #include <linux/export.h> #include <linux/io.h> #include <linux/mcb.h> #include "mcb-internal.h" #define for_each_chameleon_cell(dtype, p) \ for ((dtype) = get_next_dtype((p)); \ (dtype) != ...
Linux kernel'inin 'drivers/mcb/mcb-lpc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * MEN Chameleon Bus. * * Copyright (C) 2014 MEN Mikroelektronik GmbH (www.men.de) * Author: Andreas Werner <andreas.werner@men.de> */ #include <linux/platform_device.h> #include <linux/module.h> #include <linux/dmi.h> #include <linux/mcb.h> #include <linux/io.h> #i...
Linux kernel'inin 'drivers/mcb/mcb-core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * MEN Chameleon Bus. * * Copyright (C) 2013 MEN Mikroelektronik GmbH (www.men.de) * Author: Johannes Thumshirn <johannes.thumshirn@men.de> */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/types.h> #include <linux/idr.h> ...
Linux kernel'inin 'drivers/virt/vmgenid' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2022 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. * * The "Virtual Machine Generation ID" is exposed via ACPI or DT and changes when a * virtual machine forks or is cloned. This driver exists for shepherding that * information to random.c. ...
Linux kernel'inin 'drivers/virt/fsl_hypervisor' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Freescale Hypervisor Management Driver * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. * Author: Timur Tabi <timur@freescale.com> * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any * kind, wheth...
Linux kernel'inin 'drivers/virt/acrn/mm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ACRN: Memory mapping management * * Copyright (C) 2020 Intel Corporation. All rights reserved. * * Authors: * Fei Li <lei1.li@intel.com> * Shuo Liu <shuo.a.liu@intel.com> */ #include <linux/io.h> #include <linux/mm.h> #include <linux/slab.h> #include <linux/vmalloc...
Linux kernel'inin 'drivers/virt/acrn/ioeventfd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ACRN HSM eventfd - use eventfd objects to signal expected I/O requests * * Copyright (C) 2020 Intel Corporation. All rights reserved. * * Authors: * Shuo Liu <shuo.a.liu@intel.com> * Yakui Zhao <yakui.zhao@intel.com> */ #include <linux/eventfd.h> #include <linux/sl...
Linux kernel'inin 'drivers/virt/acrn/vm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ACRN_HSM: Virtual Machine management * * Copyright (C) 2020 Intel Corporation. All rights reserved. * * Authors: * Jason Chen CJ <jason.cj.chen@intel.com> * Yakui Zhao <yakui.zhao@intel.com> */ #include <linux/io.h> #include <linux/mm.h> #include <linux/slab.h> #in...
Linux işletim sistemi çekirdeği için 'drivers/virt/acrn/acrn_drv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ACRN_HSM_DRV_H #define __ACRN_HSM_DRV_H #include <linux/acrn.h> #include <linux/dev_printk.h> #include <linux/miscdevice.h> #include <linux/types.h> #include "hypercall.h" extern struct miscdevice acrn_dev; #define ACRN_NAME_LEN 16 #define ACRN_MEM_MAPPING_MAX...
Linux işletim sistemi çekirdeği için 'drivers/virt/acrn/hypercall' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * ACRN HSM: hypercalls of ACRN Hypervisor */ #ifndef __ACRN_HSM_HYPERCALL_H #define __ACRN_HSM_HYPERCALL_H #include <asm/acrn.h> /* * Hypercall IDs of the ACRN Hypervisor */ #define _HC_ID(x, y) (((x) << 24) | (y)) #define HC_ID 0x80UL #define HC_ID_GEN_BASE 0x0UL...
Linux kernel'inin 'drivers/virt/acrn/hsm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ACRN Hypervisor Service Module (HSM) * * Copyright (C) 2020 Intel Corporation. All rights reserved. * * Authors: * Fengwei Yin <fengwei.yin@intel.com> * Yakui Zhao <yakui.zhao@intel.com> */ #include <linux/cpu.h> #include <linux/io.h> #include <linux/mm.h> #include...
Linux kernel'inin 'drivers/virt/acrn/ioreq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ACRN_HSM: Handle I/O requests * * Copyright (C) 2020 Intel Corporation. All rights reserved. * * Authors: * Jason Chen CJ <jason.cj.chen@intel.com> * Fengwei Yin <fengwei.yin@intel.com> */ #include <linux/interrupt.h> #include <linux/io.h> #include <linux/kthread.h...
Linux kernel'inin 'drivers/virt/acrn/irqfd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ACRN HSM irqfd: use eventfd objects to inject virtual interrupts * * Copyright (C) 2020 Intel Corporation. All rights reserved. * * Authors: * Shuo Liu <shuo.a.liu@intel.com> * Yakui Zhao <yakui.zhao@intel.com> */ #include <linux/eventfd.h> #include <linux/file.h> ...
Linux kernel'inin 'drivers/virt/nitro_enclaves/ne_misc_dev_test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <kunit/test.h> #define MAX_PHYS_REGIONS 16 #define INVALID_VALUE (~0ull) struct ne_phys_regions_test { u64 paddr; u64 size; int expect_rc; unsigned long expect_num; u64 expect_last_paddr; u64 expect_last_size; ...
Linux işletim sistemi çekirdeği için 'drivers/virt/nitro_enclaves/ne_pci_dev' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ #ifndef _NE_PCI_DEV_H_ #define _NE_PCI_DEV_H_ #include <linux/atomic.h> #include <linux/list.h> #include <linux/mutex.h> #include <linux/pci.h> #include <linux/pci_ids.h> #include <linux/...
Linux kernel'inin 'drivers/virt/nitro_enclaves/ne_misc_dev' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ /** * DOC: Enclave lifetime management driver for Nitro Enclaves (NE). * Nitro is a hypervisor that has been developed by Amazon. */ #include <linux/anon_inodes.h> #include <linux/capabil...
Linux kernel'inin 'drivers/virt/nitro_enclaves/ne_pci_dev' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ /** * DOC: Nitro Enclaves (NE) PCI device driver. */ #include <linux/delay.h> #include <linux/device.h> #include <linux/list.h> #include <linux/module.h> #include <linux/mutex.h> #include ...
Linux işletim sistemi çekirdeği için 'drivers/virt/nitro_enclaves/ne_misc_dev' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ #ifndef _NE_MISC_DEV_H_ #define _NE_MISC_DEV_H_ #include <linux/cpumask.h> #include <linux/list.h> #include <linux/miscdevice.h> #include <linux/mm.h> #include <linux/mutex.h> #include <linux/...
Linux işletim sistemi çekirdeği için 'drivers/virt/vboxguest/vboxguest_core' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */ /* Copyright (C) 2010-2016 Oracle Corporation */ #ifndef __VBOXGUEST_CORE_H__ #define __VBOXGUEST_CORE_H__ #include <linux/input.h> #include <linux/interrupt.h> #include <linux/kernel.h> #include <linux/list.h> #include <linux/miscdevice.h> #include <linux/spi...
Linux kernel'inin 'drivers/virt/vboxguest/vboxguest_linux' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * vboxguest linux pci driver, char-dev and input-device code, * * Copyright (C) 2006-2016 Oracle Corporation */ #include <linux/cred.h> #include <linux/input.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/module.h> #include <linux/pci.h> #i...
Linux kernel'inin 'drivers/virt/vboxguest/vboxguest_core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */ /* * vboxguest core guest-device handling code, VBoxGuest.cpp in upstream svn. * * Copyright (C) 2007-2016 Oracle Corporation */ #include <linux/device.h> #include <linux/io.h> #include <linux/mm.h> #include <linux/sched.h> #include <linux/sizes.h> #include...
Linux işletim sistemi çekirdeği için 'drivers/virt/vboxguest/vmmdev' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */ /* * Virtual Device for Guest <-> VMM/Host communication interface * * Copyright (C) 2006-2016 Oracle Corporation */ #ifndef __VBOX_VMMDEV_H__ #define __VBOX_VMMDEV_H__ #include <asm/bitsperlong.h> #include <linux/sizes.h> #include <linux/types.h> #include...
Linux kernel'inin 'drivers/virt/vboxguest/vboxguest_utils' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */ /* * vboxguest vmm-req and hgcm-call code, VBoxGuestR0LibHGCMInternal.cpp, * VBoxGuestR0LibGenericRequest.cpp and RTErrConvertToErrno.cpp in vbox svn. * * Copyright (C) 2006-2016 Oracle Corporation */ #include <linux/errno.h> #include <linux/io.h> #include...
Linux işletim sistemi çekirdeği için 'drivers/virt/vboxguest/vboxguest_version' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */ /* * VBox Guest additions version info, this is used by the host to determine * supported guest-addition features in some cases. So this will need to be * synced with vbox upstreams versioning scheme when we implement / port * new features from the upstream ...
Linux kernel'inin 'drivers/virt/coco/tsm-core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Copyright(c) 2024-2025 Intel Corporation. All rights reserved. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/tsm.h> #include <linux/device.h> #include <linux/module.h> #include <linux/cleanup.h> #include <linux/pci-tsm.h> static void tsm_release(struc...
Linux kernel'inin 'drivers/virt/coco/guest/report' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Copyright(c) 2023 Intel Corporation. All rights reserved. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/tsm.h> #include <linux/err.h> #include <linux/slab.h> #include <linux/rwsem.h> #include <linux/string.h> #include <linux/module.h> #include <linux/c...
Linux kernel'inin 'drivers/virt/coco/guest/tsm-mr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Copyright(c) 2024-2025 Intel Corporation. All rights reserved. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include <linux/slab.h> #include <linux/sysfs.h> #define CREATE_TRACE_POINTS #include <trace/events/tsm_mr.h> /* * struct tm_conte...
Linux kernel'inin 'drivers/virt/coco/sev-guest/sev-guest' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * AMD Secure Encrypted Virtualization (SEV) guest driver interface * * Copyright (C) 2021-2024 Advanced Micro Devices, Inc. * * Author: Brijesh Singh <brijesh.singh@amd.com> */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/types.h> #include <...
Linux kernel'inin 'drivers/virt/coco/pkvm-guest/arm-pkvm-guest' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Support for the hypercall interface exposed to protected guests by * pKVM. * * Author: Will Deacon <will@kernel.org> * Copyright (C) 2024 Google LLC */ #include <linux/arm-smccc.h> #include <linux/array_size.h> #include <linux/io.h> #include <linux/mem_encrypt.h...
Linux kernel'inin 'drivers/virt/coco/efi_secret/efi_secret' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * efi_secret module * * Copyright (C) 2022 IBM Corporation * Author: Dov Murik <dovmurik@linux.ibm.com> */ /** * DOC: efi_secret: Allow reading EFI confidential computing (coco) secret area * via securityfs interface. * * When the module is loaded (and securityfs is...
Linux kernel'inin 'drivers/virt/coco/tdx-guest/tdx-guest' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * TDX guest user interface driver * * Copyright (C) 2022 Intel Corporation */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/mod_devicetable.h> #includ...
Linux kernel'inin 'drivers/virt/coco/arm-cca-guest/arm-cca-guest' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2023 ARM Ltd. */ #include <linux/arm-smccc.h> #include <linux/cc_platform.h> #include <linux/kernel.h> #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/smp.h> #include <linux/tsm.h> #include <linux/types.h> #include <asm/rs...
Linux kernel'inin 'drivers/devfreq/governor_performance' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/devfreq/governor_performance.c * * Copyright (C) 2011 Samsung Electronics * MyungJoo Ham <myungjoo.ham@samsung.com> */ #include <linux/devfreq.h> #include <linux/devfreq-governor.h> #include <linux/module.h> static int devfreq_performance_func(st...
Linux kernel'inin 'drivers/devfreq/imx-bus' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright 2019 NXP */ #include <linux/clk.h> #include <linux/devfreq.h> #include <linux/device.h> #include <linux/module.h> #include <linux/of.h> #include <linux/pm_opp.h> #include <linux/platform_device.h> #include <linux/slab.h> struct imx_bus { struct devfreq_dev_pr...
Linux kernel'inin 'drivers/devfreq/imx8m-ddrc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright 2019 NXP */ #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/device.h> #include <linux/platform_device.h> #include <linux/devfreq.h> #include <linux/pm_opp.h> #include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/arm...
Linux kernel'inin 'drivers/devfreq/devfreq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * devfreq: Generic Dynamic Voltage and Frequency Scaling (DVFS) Framework * for Non-CPU Devices. * * Copyright (C) 2011 Samsung Electronics * MyungJoo Ham <myungjoo.ham@samsung.com> */ #include <linux/kernel.h> #include <linux/kmod.h> #include <linux/sched.h> ...
Linux kernel'inin 'drivers/devfreq/exynos-bus' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Generic Exynos Bus frequency driver with DEVFREQ Framework * * Copyright (c) 2016 Samsung Electronics Co., Ltd. * Author : Chanwoo Choi <cw00.choi@samsung.com> * * This driver support Exynos Bus frequency feature by using * DEVFREQ framework and is based on driv...
Linux kernel'inin 'drivers/devfreq/tegra30-devfreq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * A devfreq driver for NVIDIA Tegra SoCs * * Copyright (c) 2014 NVIDIA CORPORATION. All rights reserved. * Copyright (C) 2014 Google, Inc */ #include <linux/clk.h> #include <linux/cpufreq.h> #include <linux/devfreq.h> #include <linux/devfreq-governor.h> #include <l...
Linux kernel'inin 'drivers/devfreq/devfreq-event' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * devfreq-event: a framework to provide raw data and events of devfreq devices * * Copyright (C) 2015 Samsung Electronics * Author: Chanwoo Choi <cw00.choi@samsung.com> * * This driver is based on drivers/devfreq/devfreq.c. */ #include <linux/devfreq-event.h> #in...
Linux kernel'inin 'drivers/devfreq/governor_powersave' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/devfreq/governor_powersave.c * * Copyright (C) 2011 Samsung Electronics * MyungJoo Ham <myungjoo.ham@samsung.com> */ #include <linux/devfreq.h> #include <linux/devfreq-governor.h> #include <linux/module.h> static int devfreq_powersave_func(struct...
Linux kernel'inin 'drivers/devfreq/governor_simpleondemand' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/devfreq/governor_simpleondemand.c * * Copyright (C) 2011 Samsung Electronics * MyungJoo Ham <myungjoo.ham@samsung.com> */ #include <linux/errno.h> #include <linux/module.h> #include <linux/devfreq.h> #include <linux/devfreq-governor.h> #include <l...
Linux kernel'inin 'drivers/devfreq/hisi_uncore_freq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * HiSilicon uncore frequency scaling driver * * Copyright (c) 2025 HiSilicon Co., Ltd */ #include <linux/acpi.h> #include <linux/bits.h> #include <linux/cleanup.h> #include <linux/devfreq.h> #include <linux/devfreq-governor.h> #include <linux/device.h> #include <lin...
Linux kernel'inin 'drivers/devfreq/sun8i-a33-mbus' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only // // Copyright (C) 2020-2021 Samuel Holland <samuel@sholland.org> // #include <linux/clk.h> #include <linux/devfreq.h> #include <linux/err.h> #include <linux/io.h> #include <linux/iopoll.h> #include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h>...
Linux kernel'inin 'drivers/devfreq/governor_passive' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * linux/drivers/devfreq/governor_passive.c * * Copyright (C) 2016 Samsung Electronics * Author: Chanwoo Choi <cw00.choi@samsung.com> * Author: MyungJoo Ham <myungjoo.ham@samsung.com> */ #include <linux/module.h> #include <linux/cpu.h> #include <linux/cpufreq.h> #i...