instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'drivers/parport/parport_sunbpp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* parport_sunbpp.c: Parallel-port routines for SBUS * * Author: Derrick J. Brashear <shadow@dementia.org> * * based on work by: * Phil Blundell <philb@gnu.org> * Tim Waugh <tim@cyberelk.demon.co.uk> * Jose Renau <renau@acm.org> * Dav...
Linux kernel'inin 'drivers/parport/share' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Parallel-port resource manager code. * * Authors: David Campbell <campbell@tirian.che.curtin.edu.au> * Tim Waugh <tim@cyberelk.demon.co.uk> * Jose Renau <renau@acm.org> * Philip Blundell <philb@gnu.org> * Andrea Arcangeli * * based on work by Grant Guenther <grant@torqu...
Linux kernel'inin 'drivers/parport/parport_gsc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Low-level parallel-support for PC-style hardware integrated in the * LASI-Controller (on GSC-Bus) for HP-PARISC Workstations * * (C) 1999-2001 by Helge Deller <deller@gmx.de> * * based on parport_pc.c by * Grant Guenther <grant@torque.net> * ...
Linux kernel'inin 'drivers/parport/parport_serial' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Support for common PCI multi-I/O cards (which is most of them) * * Copyright (C) 2001 Tim Waugh <twaugh@redhat.com> * * Multi-function PCI cards are supposed to present separate logical * devices on the bus. A common thing to do seems to be to just use * one logic...
Linux kernel'inin 'drivers/parport/parport_ip32' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Low-level parallel port routines for built-in port on SGI IP32 * * Author: Arnaud Giersch <arnaud.giersch@free.fr> * * Based on parport_pc.c by * Phil Blundell, Tim Waugh, Jose Renau, David Campbell, * Andrea Arcangeli, et al. * * Thanks to Ilya A. Volynets-E...
Linux kernel'inin 'drivers/parport/parport_mfc3' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Low-level parallel port routines for the Multiface 3 card * * Author: Joerg Dorchain <joerg@dorchain.net> * * (C) The elitist m68k Users(TM) * * based on the existing parport_amiga and lp_mfc * * * From the MFC3 documentation: * * Miscellaneous PIA Details *...
Linux kernel'inin 'drivers/parport/probe' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Parallel port device probing code * * Authors: Carsten Gross, carsten@sol.wohnheim.uni-ulm.de * Philip Blundell <philb@gnu.org> */ #include <linux/module.h> #include <linux/parport.h> #include <linux/string.h> #include <linux/string_helpers.h> #include ...
Linux kernel'inin 'drivers/parport/parport_atari' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Low-level parallel port routines for the Atari builtin port * * Author: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * * Based on parport_amiga.c. * * The built-in Atari parallel port provides one port at a fixed address * with 8 output data lines (D0 ...
Linux işletim sistemi çekirdeği için 'drivers/parport/multiface' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _MULTIFACE_H_ #define _MULTIFACE_H_ /* * Defines for SerialMaster, Multiface Card II and Multiface Card III * The addresses given below are offsets to the board base address * * 6.11.95 Joerg Dorchain (dorchain@mpi-sb.mpg.de) * */ #define PIA_REG_PADWIDTH 255...
Linux kernel'inin 'drivers/parport/parport_amiga' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Low-level parallel port routines for the Amiga built-in port * * Author: Joerg Dorchain <joerg@dorchain.net> * * This is a complete rewrite of the code, but based heaviy upon the old * lp_intern. code. * * The built-in Amiga parallel port provides one port at a fi...
Linux kernel'inin 'drivers/parport/parport_pc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Low-level parallel-port routines for 8255-based PC-style hardware. * * Authors: Phil Blundell <philb@gnu.org> * Tim Waugh <tim@cyberelk.demon.co.uk> * Jose Renau <renau@acm.org> * David Campbell * Andrea Arcangeli * * based on work ...
Linux kernel'inin 'drivers/of/fdt_address' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * FDT Address translation based on u-boot fdt_support.c which in turn was * based on the kernel unflattened DT address translation code. * * (C) Copyright 2007 * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com * * Copyright 2010-2011 Freescale Semiconductor, Inc. ...
Linux kernel'inin 'drivers/of/irq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Derived from arch/i386/kernel/irq.c * Copyright (C) 1992 Linus Torvalds * Adapted from arch/i386 by Gary Thomas * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * Updated and modified by Cort Dougan <cort@fsmlabs.com> * Copyright (C) 1996-2001 Cor...
Linux kernel'inin 'drivers/of/resolver' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions for dealing with DT resolution * * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> * Copyright (C) 2012 Texas Instruments Inc. */ #define pr_fmt(fmt) "OF: resolver: " fmt #include <linux/cleanup.h> #include <linux/kernel.h> #include <li...
Linux kernel'inin 'drivers/of/of_numa' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * OF NUMA Parsing support. * * Copyright (C) 2015 - 2016 Cavium Inc. */ #define pr_fmt(fmt) "OF: NUMA: " fmt #include <linux/of.h> #include <linux/of_address.h> #include <linux/nodemask.h> #include <linux/numa_memblks.h> #include <asm/numa.h> /* * Even though we conn...
Linux kernel'inin 'drivers/of/overlay_test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit tests for device tree overlays */ #include <linux/device/bus.h> #include <linux/kconfig.h> #include <linux/of.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <kunit/of.h> #include <kunit/test.h> #include "of_private.h" static const c...
Linux kernel'inin 'drivers/of/base' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Procedures for creating, accessing and interpreting the device tree. * * Paul Mackerras August 1996. * Copyright (C) 1996-2005 Paul Mackerras. * * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner. * {engebret|bergner}@us.ibm.com * * Adapted for...
Linux kernel'inin 'drivers/of/device' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_address.h> #include <linux/of_iommu.h> #include <linux/of_reserved_mem.h> #include <linux/dma-direct.h> /* for bus_dma_region */ #include <linux/dma-map-ops.h> #include <linux/init.h>...
Linux kernel'inin 'drivers/of/pdt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* pdt.c: OF PROM device tree support code. * * Paul Mackerras August 1996. * Copyright (C) 1996-2005 Paul Mackerras. * * Adapted for 64bit PowerPC by Dave Engebretsen and Peter Bergner. * {engebret|bergner}@us.ibm.com * * Adapted for sparc by David S. Miller davem...
Linux kernel'inin 'drivers/of/fdt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions for working with the Flattened Device Tree data format * * Copyright 2009 Benjamin Herrenschmidt, IBM Corp * benh@kernel.crashing.org */ #define pr_fmt(fmt) "OF: fdt: " fmt #include <linux/crash_dump.h> #include <linux/crc32.h> #include <linux/kernel.h> #in...
Linux kernel'inin 'drivers/of/of_kunit_helpers' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Test managed DeviceTree APIs */ #include <linux/of.h> #include <linux/of_fdt.h> #include <kunit/of.h> #include <kunit/test.h> #include <kunit/resource.h> #include "of_private.h" /** * of_root_kunit_skip() - Skip test if the root node isn't populated * @test: test to...
Linux kernel'inin 'drivers/of/cpu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/cpu.h> #include <linux/kernel.h> #include <linux/of.h> /** * of_get_cpu_hwid - Get the hardware ID from a CPU device node * * @cpun: CPU number(logical index) for which device node is required * @thread: The local thread number to get the hardware ID for. *...
Linux kernel'inin 'drivers/of/module' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Linux kernel module helpers. */ #include <linux/of.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/string.h> ssize_t of_modalias(const struct device_node *np, char *str, ssize_t len) { const char *compat; char *c; struct property *p; ssize_t csi...
Linux kernel'inin 'drivers/of/dynamic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Support for dynamic device trees. * * On some platforms, the device tree can be manipulated at runtime. * The routines in this section support adding, removing and changing * device tree nodes. */ #define pr_fmt(fmt) "OF: " fmt #include <linux/cleanup.h> #include <l...
Linux kernel'inin 'drivers/of/kexec' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2020 Arm Limited * * Based on arch/arm64/kernel/machine_kexec_file.c: * Copyright (C) 2018 Linaro Limited * * And arch/powerpc/kexec/file_load.c: * Copyright (C) 2016 IBM Corporation */ #include <linux/ima.h> #include <linux/kernel.h> #include...
Linux kernel'inin 'drivers/of/kobj' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/of.h> #include <linux/slab.h> #include "of_private.h" /* true when node is initialized */ static int of_node_is_initialized(const struct device_node *node) { return node && node->kobj.state_initialized; } /* true when node is attached (i.e. present on sysfs) ...
Linux kernel'inin 'drivers/of/unittest' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Self tests for device tree subsystem */ #define pr_fmt(fmt) "### dt-test ### " fmt #include <linux/memblock.h> #include <linux/clk.h> #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */ #include <linux/err.h> #include <linux/errno.h> #include <linux/hash...
Linux kernel'inin 'drivers/of/of_test' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * KUnit tests for OF APIs */ #include <linux/ioport.h> #include <linux/module.h> #include <linux/of.h> #include <kunit/test.h> #include "of_private.h" /* * Test that the root node "/" can be found by path. */ static void of_dtb_root_node_found_by_path(struct kunit *tes...
Linux kernel'inin 'drivers/of/address' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "OF: " fmt #include <linux/device.h> #include <linux/fwnode.h> #include <linux/io.h> #include <linux/ioport.h> #include <linux/logic_pio.h> #include <linux/module.h> #include <linux/of_address.h> #include <linux/overflow.h> #include <linux/pci.h> #include <l...
Linux kernel'inin 'drivers/of/platform' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp. * <benh@kernel.crashing.org> * and Arnd Bergmann, IBM Corp. * Merged from powerpc/kernel/of_platform.c and * sparc{,64}/kernel/of_device.c by Stephen Rothwell */ #define pr_fmt(fmt) "OF: " fmt #i...
Linux kernel'inin 'drivers/of/overlay' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Functions for working with device tree overlays * * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> * Copyright (C) 2012 Texas Instruments Inc. */ #define pr_fmt(fmt) "OF: overlay: " fmt #include <linux/kernel.h> #include <linux/module.h> #includ...
Linux işletim sistemi çekirdeği için 'drivers/of/of_private' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ */ #ifndef _LINUX_OF_PRIVATE_H #define _LINUX_OF_PRIVATE_H /* * Private symbols used by OF support code * * Paul Mackerras August 1996. * Copyright (C) 1996-2005 Paul Mackerras. */ #define FDT_ALIGN_SIZE 8 #define MAX_RESERVED_REGIONS 64 /** * struct alias_prop - Ali...
Linux kernel'inin 'drivers/of/property' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * drivers/of/property.c - Procedures for accessing and interpreting * Devicetree properties and graphs. * * Initially created by copying procedures from drivers/of/base.c. This * file contains the OF property as well as the OF graph interface * functions. * * Pa...
Linux kernel'inin 'drivers/of/of_reserved_mem' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Device tree based initialization code for reserved memory. * * Copyright (c) 2013, 2015 The Linux Foundation. All Rights Reserved. * Copyright (c) 2013,2014 Samsung Electronics Co., Ltd. * http://www.samsung.com * Author: Marek Szyprowski <m.szyprowski@samsung.com> ...
Linux işletim sistemi çekirdeği için 'drivers/net/tun_vnet' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef TUN_VNET_H #define TUN_VNET_H /* High bits in flags field are unused. */ #define TUN_VNET_LE 0x80000000 #define TUN_VNET_BE 0x40000000 #define TUN_VNET_TNL_SIZE sizeof(struct virtio_net_hdr_v1_hash_tunnel) static inline bool tun_vnet_legacy_is_litt...
Linux kernel'inin 'drivers/net/xen-netfront' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Virtual network driver for conversing with remote driver backends. * * Copyright (c) 2002-2005, K A Fraser * Copyright (c) 2005, XenSource Ltd * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 * as published by the...
Linux kernel'inin 'drivers/net/sungem_phy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * PHY drivers for the sungem ethernet driver. * * This file could be shared with other drivers. * * (c) 2002-2007, Benjamin Herrenscmidt (benh@kernel.crashing.org) * * TODO: * - Add support for PHYs that provide an IRQ line * - Eventually moved the entire poll...
Linux kernel'inin 'drivers/net/macvtap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/etherdevice.h> #include <linux/if_macvlan.h> #include <linux/if_tap.h> #include <linux/if_vlan.h> #include <linux/interrupt.h> #include <linux/nsproxy.h> #include <linux/compat.h> #include <linux/if_tun.h> #include <linux/module.h> #include <linux/skbuff.h> ...
Linux kernel'inin 'drivers/net/mhi_net' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* MHI Network driver - Network over MHI bus * * Copyright (C) 2020 Linaro Ltd <loic.poulain@linaro.org> */ #include <linux/if_arp.h> #include <linux/mhi.h> #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/netdevice.h> #include <linux/skb...
Linux kernel'inin 'drivers/net/dummy' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* dummy.c: a dummy net driver The purpose of this driver is to provide a device to point a route through, but not to actually transmit packets. Why? If you have a machine whose only connection is an occasional PPP/SLIP/PLIP link, you can only connect to your own hos...
Linux kernel'inin 'drivers/net/netconsole' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * linux/drivers/net/netconsole.c * * Copyright (C) 2001 Ingo Molnar <mingo@redhat.com> * * This file contains the implementation of an IRQ-safe, crash-safe * kernel console implementation that outputs kernel messages to the * network. * * Modification ...
Linux kernel'inin 'drivers/net/net_failover' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2018, Intel Corporation. */ /* This provides a net_failover interface for paravirtual drivers to * provide an alternate datapath by exporting APIs to create and * destroy a upper 'net_failover' netdev. The upper dev manages the * original paravirtual interfa...
Linux kernel'inin 'drivers/net/mdio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * mdio.c: Generic support for MDIO-compatible transceivers * Copyright 2006-2009 Solarflare Communications Inc. */ #include <linux/kernel.h> #include <linux/capability.h> #include <linux/errno.h> #include <linux/ethtool.h> #include <linux/mdio.h> #include <linux/modu...
Linux kernel'inin 'drivers/net/tun' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * TUN - Universal TUN/TAP device driver. * Copyright (C) 1999-2002 Maxim Krasnyansky <maxk@qualcomm.com> * * $Id: tun.c,v 1.15 2002/03/01 02:44:24 maxk Exp $ */ /* * Changes: * * Mike Kershaw <dragorn@kismetwireless.net> 2005/08/14 * Add TUNSETLINK ...
Linux kernel'inin 'drivers/net/veth' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * drivers/net/veth.c * * Copyright (C) 2007 OpenVZ http://openvz.org, SWsoft Inc * * Author: Pavel Emelianov <xemul@openvz.org> * Ethtool interface from: Eric W. Biederman <ebiederm@xmission.com> * */ #include <linux/netdevice.h> #include <linux/slab.h> #inclu...
Linux kernel'inin 'drivers/net/gtp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* GTP according to GSM TS 09.60 / 3GPP TS 29.060 * * (C) 2012-2014 by sysmocom - s.f.m.c. GmbH * (C) 2016 by Pablo Neira Ayuso <pablo@netfilter.org> * * Author: Harald Welte <hwelte@sysmocom.de> * Pablo Neira Ayuso <pablo@netfilter.org> * Andreas Schultz <...
Linux kernel'inin 'drivers/net/loopback' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Pseudo-driver for the loopback interface. * * Version: @(#...
Linux kernel'inin 'drivers/net/ifb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* drivers/net/ifb.c: The purpose of this driver is to provide a device that allows for sharing of resources: 1) qdiscs/policies that are per device as opposed to system wide. ifb allows for a device which can be redirected to thus providing an impression of shar...
Linux kernel'inin 'drivers/net/vrf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * vrf.c: device driver to encapsulate a VRF space * * Copyright (c) 2015 Cumulus Networks. All rights reserved. * Copyright (c) 2015 Shrijeet Mukherjee <shm@cumulusnetworks.com> * Copyright (c) 2015 David Ahern <dsa@cumulusnetworks.com> * * Based on dummy, tea...
Linux kernel'inin 'drivers/net/mii' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* mii.c: MII interface library Maintained by Jeff Garzik <jgarzik@pobox.com> Copyright 2001,2002 Jeff Garzik Various code came from myson803.c and other files by Donald Becker. Copyright: Written 1998-2002 by Donald Becker. This software may be used and distributed according to the terms of the G...
Linux kernel'inin 'drivers/net/tap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/etherdevice.h> #include <linux/if_tap.h> #include <linux/if_vlan.h> #include <linux/interrupt.h> #include <linux/nsproxy.h> #include <linux/compat.h> #include <linux/if_tun.h> #include <linux/module.h> #include <linux/skbuff.h> #include <linux/cache.h> #incl...
Linux kernel'inin 'drivers/net/ntb_netdev' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause /* * PCIe NTB Network Linux driver */ #include <linux/etherdevice.h> #include <linux/ethtool.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/ntb.h> #include <linux/ntb_transport.h> #include <linux/slab.h> #define NTB_NETDEV_VER "0.7" ...
Linux kernel'inin 'drivers/net/Space' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Holds initial configuration information for devices. * * V...
Linux kernel'inin 'drivers/net/macvlan' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2007 Patrick McHardy <kaber@trash.net> * * The code this is based on carried the following copyright notice: * --- * (C) Copyright 2001-2006 * Alex Zeffertt, Cambridge Broadband Ltd, ajz@cambridgebroadband.com * Re-worked by Ben Greear <greearb...
Linux kernel'inin 'drivers/net/nlmon' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/ethtool.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/netdevice.h> #include <linux/netlink.h> #include <net/net_namespace.h> #include <linux/if_arp.h> #include <net/rtnetlink.h> static netdev_tx_t nlmon_xmit(struct sk_buff *skb, str...
Linux kernel'inin 'drivers/net/pfcp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * PFCP according to 3GPP TS 29.244 * * Copyright (C) 2022, Intel Corporation. */ #include <linux/module.h> #include <linux/netdevice.h> #include <linux/rculist.h> #include <linux/skbuff.h> #include <linux/types.h> #include <net/udp.h> #include <net/udp_tunnel.h...
Linux kernel'inin 'drivers/net/rionet' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * rionet - Ethernet driver over RapidIO messaging services * * Copyright 2005 MontaVista Software, Inc. * Matt Porter <mporter@kernel.crashing.org> */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/dma-mapping.h> #include <linux/delay.h> #i...
Linux kernel'inin 'drivers/net/geneve' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * GENEVE: Generic Network Virtualization Encapsulation * * Copyright (c) 2015 Red Hat, Inc. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/ethtool.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/etherdevice.h> #include <linux/...
Linux kernel'inin 'drivers/net/amt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Copyright (c) 2021 Taehee Yoo <ap420073@gmail.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include <linux/skbuff.h> #include <linux/udp.h> #include <linux/jhash.h> #include <linux/if_tunnel.h> #include <linux/net.h> #include <linux...
Linux kernel'inin 'drivers/net/netkit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* Copyright (c) 2023 Isovalent */ #include <linux/netdevice.h> #include <linux/ethtool.h> #include <linux/etherdevice.h> #include <linux/filter.h> #include <linux/netfilter_netdev.h> #include <linux/bpf_mprog.h> #include <linux/indirect_call_wrapper.h> #include <net/netd...
Linux kernel'inin 'drivers/net/virtio_net' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* A network driver using virtio. * * Copyright 2007 Rusty Russell <rusty@rustcorp.com.au> IBM Corporation */ //#define DEBUG #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/ethtool.h> #include <linux/module.h> #include <linux/virtio.h> #i...
Linux kernel'inin 'drivers/net/macsec' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* * drivers/net/macsec.c - MACsec device * * Copyright (c) 2015 Sabrina Dubroca <sd@queasysnail.net> */ #include <linux/types.h> #include <linux/skbuff.h> #include <linux/socket.h> #include <linux/module.h> #include <crypto/aead.h> #include <linux/etherdevice.h> #...
Linux kernel'inin 'drivers/net/bareudp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Bareudp: UDP tunnel encasulation for different Payload types like * MPLS, NSH, IP, etc. * Copyright (c) 2019 Nokia, Inc. * Authors: Martin Varghese, <martin.varghese@nokia.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kernel.h> #include <linux/mo...
Linux kernel'inin 'drivers/net/eql' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* * Equalizer Load-balancer for serial network interfaces. * * (c) Copyright 1995 Simon "Guru Aleph-Null" Janes * NCM: Network and Communications Management, Inc. * * (c) Copyright 2002 David S. Miller (davem@redhat.com) * * This software may be used and distributed according to the terms * of the GNU Ge...
Linux kernel'inin 'drivers/net/vsockmon' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/ethtool.h> #include <linux/module.h> #include <linux/kernel.h> #include <linux/if_arp.h> #include <net/rtnetlink.h> #include <net/sock.h> #include <net/af_vsock.h> #include <uapi/linux/vsockmon.h> #include <linux/virtio_vsock.h> /* Virtio transport max pack...
Linux kernel'inin 'drivers/net/mdio/mdio-cavium' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009-2016 Cavium, Inc. */ #include <linux/delay.h> #include <linux/io.h> #include <linux/module.h> #include <linux/phy.h> #include "mdio-cavium.h" static void cavium_mdiobus_set_mode(struct cavium_mdiobus *p, enum cavium_mdiobus_mode m) { union c...
Linux kernel'inin 'drivers/net/mdio/mdio-mux-bcm6368' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Broadcom BCM6368 mdiomux bus controller driver * * Copyright (C) 2021 Álvaro Fernández Rojas <noltari@gmail.com> */ #include <linux/delay.h> #include <linux/io.h> #include <linux/kernel.h> #include <linux/mdio-mux.h> #include <linux/module.h> #include <linux/of.h> #in...
Linux kernel'inin 'drivers/net/mdio/mdio-pic64hpsc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Microchip PIC64-HPSC/HX MDIO controller driver * * Copyright (c) 2026 Microchip Technology Inc. and its subsidiaries. */ #include <linux/bitops.h> #include <linux/clk.h> #include <linux/io.h> #include <linux/iopoll.h> #include <linux/kernel.h> #include <linux/module.h> #i...
Linux kernel'inin 'drivers/net/mdio/mdio-mux-multiplexer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* MDIO bus multiplexer using kernel multiplexer subsystem * * Copyright 2019 NXP */ #include <linux/mdio-mux.h> #include <linux/module.h> #include <linux/mux/consumer.h> #include <linux/platform_device.h> struct mdio_mux_multiplexer_state { struct mux_control *muxc; boo...
Linux kernel'inin 'drivers/net/mdio/mdio-mux' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2011, 2012 Cavium, Inc. */ #include <linux/device.h> #include <linux/mdio-mux.h> #include <linux/module.h> #include <linux/of_mdio.h> #include <linux/phy.h> #include <linux/platform_device.h> #define DRV_DESCRIPTION "MDIO bus multiplexer driver" struct md...
Linux kernel'inin 'drivers/net/mdio/mdio-bcm-unimac' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Broadcom UniMAC MDIO bus controller driver * * Copyright (C) 2014-2017 Broadcom */ #include <linux/clk.h> #include <linux/delay.h> #include <linux/io.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_mdio.h> #include <linu...
Linux kernel'inin 'drivers/net/mdio/mdio-thunder' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009-2016 Cavium, Inc. */ #include <linux/acpi.h> #include <linux/gfp.h> #include <linux/io.h> #include <linux/module.h> #include <linux/of_address.h> #include <linux/of_mdio.h> #include <linux/pci.h> #include <linux/phy.h> #include "mdio-cavium.h" struct...
Linux kernel'inin 'drivers/net/mdio/of_mdio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * OF helpers for the MDIO (Ethernet PHY) API * * Copyright (c) 2009 Secret Lab Technologies, Ltd. * * This file provides helper functions for extracting PHY device information * out of the OpenFirmware device tree and using it to populate an mii_bus. */ #include ...
Linux kernel'inin 'drivers/net/mdio/mdio-mux-meson-gxl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2022 Baylibre, SAS. * Author: Jerome Brunet <jbrunet@baylibre.com> */ #include <linux/bitfield.h> #include <linux/delay.h> #include <linux/clk.h> #include <linux/io.h> #include <linux/mdio-mux.h> #include <linux/module.h> #include <linux/platform_device.h> #...
Linux kernel'inin 'drivers/net/mdio/mdio-regmap' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Driver for MMIO-Mapped MDIO devices. Some IPs expose internal PHYs or PCS * within the MMIO-mapped area * * Copyright (C) 2023 Maxime Chevallier <maxime.chevallier@bootlin.com> */ #include <linux/bitfield.h> #include <linux/delay.h> #include <linux/mdio.h> #inclu...
Linux kernel'inin 'drivers/net/mdio/fwnode_mdio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * fwnode helpers for the MDIO (Ethernet PHY) API * * This file provides helper functions for extracting PHY device information * out of the fwnode and using it to populate an mii_bus. */ #include <linux/acpi.h> #include <linux/dev_printk.h> #include <linux/fwnode_m...
Linux kernel'inin 'drivers/net/mdio/mdio-airoha' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Airoha AN7583 MDIO interface driver * * Copyright (C) 2025 Christian Marangi <ansuelsmth@gmail.com> */ #include <linux/clk.h> #include <linux/delay.h> #include <linux/kernel.h> #include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/of_mdio.h> #include <li...
Linux kernel'inin 'drivers/net/mdio/mdio-bcm-iproc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015 Broadcom Corporation */ #include <linux/delay.h> #include <linux/io.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_platform.h> #include <linux/of_mdio.h> #include <linux/phy.h> #include <linux/platform_d...
Linux kernel'inin 'drivers/net/mdio/mdio-mscc-miim' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: (GPL-2.0 OR MIT) /* * Driver for the MDIO interface of Microsemi network switches. * * Author: Alexandre Belloni <alexandre.belloni@bootlin.com> * Copyright (c) 2017 Microsemi Corporation */ #include <linux/bitops.h> #include <linux/clk.h> #include <linux/io.h> #include <linux/iop...
Linux kernel'inin 'drivers/net/mdio/mdio-mux-meson-g12a' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2019 Baylibre, SAS. * Author: Jerome Brunet <jbrunet@baylibre.com> */ #include <linux/bitfield.h> #include <linux/delay.h> #include <linux/clk.h> #include <linux/clk-provider.h> #include <linux/device.h> #include <linux/io.h> #include <linux/iopoll.h> #includ...
Linux kernel'inin 'drivers/net/mdio/mdio-ipq8064' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Qualcomm IPQ8064 MDIO interface driver * * Copyright (C) 2019 Christian Lamparter <chunkeey@gmail.com> * Copyright (C) 2020 Ansuel Smith <ansuelsmth@gmail.com> */ #include <linux/delay.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of_mdio.h> #inc...
Linux kernel'inin 'drivers/net/mdio/mdio-aspeed' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later /* Copyright (C) 2019 IBM Corp. */ #include <linux/bitfield.h> #include <linux/delay.h> #include <linux/reset.h> #include <linux/iopoll.h> #include <linux/mdio.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_mdio.h> #include <linux/phy.h> #include...
Linux kernel'inin 'drivers/net/mdio/mdio-sun4i' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Allwinner EMAC MDIO interface driver * * Copyright 2012-2013 Stefan Roese <sr@denx.de> * Copyright 2013 Maxime Ripard <maxime.ripard@free-electrons.com> * * Based on the Linux driver provided by Allwinner: * Copyright (C) 1997 Sten Wang */ #include <linux/delay.h>...
Linux kernel'inin 'drivers/net/mdio/mdio-mvusb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/module.h> #include <linux/of_mdio.h> #include <linux/phy.h> #include <linux/usb.h> #define USB_MARVELL_VID 0x1286 static const struct usb_device_id mvusb_mdio_table[] = { { USB_DEVICE(USB_MARVELL_VID, 0x1fa4) }, {} }; MODULE_DEVICE...
Linux işletim sistemi çekirdeği için 'drivers/net/mdio/mdio-cavium' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2009-2016 Cavium, Inc. */ enum cavium_mdiobus_mode { UNINIT = 0, C22, C45 }; #define SMI_CMD 0x0 #define SMI_WR_DAT 0x8 #define SMI_RD_DAT 0x10 #define SMI_CLK 0x18 #define SMI_EN 0x20 #ifdef __BIG_ENDIAN_BITFIELD #define OCT_MDIO_BITFIELD_FIELD(...
Linux kernel'inin 'drivers/net/mdio/mdio-moxart' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* MOXA ART Ethernet (RTL8201CP) MDIO interface driver * * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com> */ #include <linux/delay.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/mutex.h> #include <linux/of_address.h> #include <linux/of_mdio....
Linux kernel'inin 'drivers/net/mdio/mdio-hisi-femac' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Hisilicon Fast Ethernet MDIO Bus Driver * * Copyright (c) 2016 HiSilicon Technologies Co., Ltd. */ #include <linux/clk.h> #include <linux/iopoll.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of_address.h> #include <linux/of_mdio.h> #include <l...
Linux kernel'inin 'drivers/net/mdio/mdio-i2c' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * MDIO I2C bridge * * Copyright (C) 2015-2016 Russell King * Copyright (C) 2021 Marek Behun * * Network PHYs can appear on I2C buses when they are part of SFP module. * This driver exposes these PHYs to the networking PHY code, allowing * our PHY drivers access to the...
Linux kernel'inin 'drivers/net/mdio/mdio-mux-mmioreg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Simple memory-mapped device MDIO MUX driver * * Author: Timur Tabi <timur@freescale.com> * * Copyright 2012 Freescale Semiconductor, Inc. */ #include <linux/device.h> #include <linux/mdio-mux.h> #include <linux/module.h> #include <linux/of_address.h> #include <linux/...
Linux kernel'inin 'drivers/net/mdio/mdio-gpio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * GPIO based MDIO bitbang driver. * Supports OpenFirmware. * * Copyright (c) 2008 CSE Semaphore Belgium. * by Laurent Pinchart <laurentp@cse-semaphore.com> * * Copyright (C) 2008, Paulius Zaleckas <paulius.zaleckas@teltonika.lt> * * Based on earlier work by * * Co...
Linux kernel'inin 'drivers/net/mdio/mdio-bitbang' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Bitbanged MDIO support. * * Author: Scott Wood <scottwood@freescale.com> * Copyright (c) 2007 Freescale Semiconductor * * Based on CPM2 MDIO code which is: * * Copyright (c) 2003 Intracom S.A. * by Pantelis Antoniou <panto@intracom.gr> * * 2005 (c) MontaVista So...
Linux kernel'inin 'drivers/net/mdio/mdio-mux-bcm-iproc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright 2016 Broadcom */ #include <linux/align.h> #include <linux/clk.h> #include <linux/delay.h> #include <linux/device.h> #include <linux/iopoll.h> #include <linux/mdio-mux.h> #include <linux/module.h> #include <linux/of_mdio.h> #include <linux/phy.h> #include <linux/...
Linux kernel'inin 'drivers/net/mdio/mdio-xgene' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* Applied Micro X-Gene SoC MDIO Driver * * Copyright (c) 2016, Applied Micro Circuits Corporation * Author: Iyappan Subramanian <isubramanian@apm.com> */ #include <linux/acpi.h> #include <linux/clk.h> #include <linux/device.h> #include <linux/efi.h> #include <linux/if_vla...
Linux kernel'inin 'drivers/net/mdio/mdio-ipq4019' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* Copyright (c) 2015, The Linux Foundation. All rights reserved. */ /* Copyright (c) 2020 Sartura Ltd. */ #include <linux/delay.h> #include <linux/io.h> #include <linux/iopoll.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of_address.h> ...
Linux kernel'inin 'drivers/net/mdio/mdio-mux-gpio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2011, 2012 Cavium, Inc. */ #include <linux/device.h> #include <linux/gpio/consumer.h> #include <linux/mdio-mux.h> #include <linux/module.h> #include <linux/of_mdio.h> #include <linux/phy.h> #include <linux/platform_device.h> #define DRV_VERSION "1.1" #defi...
Linux kernel'inin 'drivers/net/mdio/acpi_mdio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * ACPI helpers for the MDIO (Ethernet PHY) API * * This file provides helper functions for extracting PHY device information * out of the ACPI ASL and using it to populate an mii_bus. */ #include <linux/acpi.h> #include <linux/acpi_mdio.h> #include <linux/bits.h> #...
Linux kernel'inin 'drivers/net/mdio/mdio-octeon' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009-2015 Cavium, Inc. */ #include <linux/gfp.h> #include <linux/io.h> #include <linux/module.h> #include <linux/of_address.h> #include <linux/of_mdio.h> #include <linux/phy.h> #include <linux/platform_device.h> #include "mdio-cavium.h" static int octeon_...
Linux kernel'inin 'drivers/net/mdio/mdio-realtek-rtl9300' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * MDIO controller for RTL9300 switches with integrated SoC. * * The MDIO communication is abstracted by the switch. At the software level * communication uses the switch port to address the PHY. We work out the * mapping based on the MDIO bus described in device tre...
Linux kernel'inin 'drivers/net/hyperv/netvsc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2009, Microsoft Corporation. * * Authors: * Haiyang Zhang <haiyangz@microsoft.com> * Hank Janssen <hjanssen@microsoft.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/kernel.h> #include <linux/sched.h> #include <linux/wait.h...
Linux işletim sistemi çekirdeği için 'drivers/net/hyperv/hyperv_net' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright (c) 2011, Microsoft Corporation. * * Authors: * Haiyang Zhang <haiyangz@microsoft.com> * Hank Janssen <hjanssen@microsoft.com> * K. Y. Srinivasan <kys@microsoft.com> */ #ifndef _HYPERV_NET_H #define _HYPERV_NET_H #include <linux/list.h> ...