text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163
values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751
values | repo_full_name stringclasses 752
values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```c
/**
*
*/
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/net_if.h>
#incl... | /content/code_sandbox/drivers/wifi/eswifi/eswifi_offload.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,325 |
```c
/**
*
*/
#define DT_DRV_COMPAT inventek_eswifi_uart
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <errno.h>
#include <zephyr/sys/ring_buffer.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/uart.h>
#... | /content/code_sandbox/drivers/wifi/eswifi/eswifi_bus_uart.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,642 |
```c
/*
*
*/
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "eswifi.h"
#include <zephyr/net/net_pkt.h>
int eswifi_socket_type_from_zephyr(int proto, enum eswif... | /content/code_sandbox/drivers/wifi/eswifi/eswifi_socket.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,564 |
```c
/**
*
*/
#define DT_DRV_COMPAT inventek_eswifi
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include "eswifi.h"
#define ESWIFI_SPI_THRE... | /content/code_sandbox/drivers/wifi/eswifi/eswifi_bus_spi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,947 |
```c
/**
*
*/
#if defined(CONFIG_WIFI_ESWIFI_BUS_UART)
#define DT_DRV_COMPAT inventek_eswifi_uart
#else
#define DT_DRV_COMPAT inventek_eswifi
#endif
#include "eswifi_log.h"
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <errno.h>
#include <z... | /content/code_sandbox/drivers/wifi/eswifi/eswifi_core.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,305 |
```unknown
# SimpleLink WiFi driver options
menuconfig WIFI_SIMPLELINK
bool "SimpleLink Wi-Fi driver support"
select SIMPLELINK_HOST_DRIVER
select WIFI_OFFLOAD
select NET_L2_WIFI_MGMT
select FDTABLE
select POSIX_SEMAPHORES
if WIFI_SIMPLELINK
config WIFI_SIMPLELINK_NAME
string "Driver name"
default "SimpleLi... | /content/code_sandbox/drivers/wifi/simplelink/Kconfig.simplelink | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 344 |
```objective-c
/**
*
*/
#ifndef ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_SOCKETS_H_
#define ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_SOCKETS_H_
#ifdef __cplusplus
extern "C" {
#endif
extern const struct socket_dns_offload simplelink_dns_ops;
extern void simplelink_sockets_init(void);
#ifdef __cplusplus
}
#endif... | /content/code_sandbox/drivers/wifi/simplelink/simplelink_sockets.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```objective-c
/**
*
*/
#ifndef ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_
#define ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_
#define LOG_MODULE_NAME wifi_simplelink
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
#include <zephyr/logging/log.h>
#endif /* ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_ */
`... | /content/code_sandbox/drivers/wifi/simplelink/simplelink_log.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```c
/**
*
*/
#include "simplelink_log.h"
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/wifi_mgmt.h>
#include <zephyr/net/net_offload.h>
#include <zephyr/net/conn_mgr/connectivity_wifi_mgmt.h>
#ifdef CONFIG_NET_SOCKETS... | /content/code_sandbox/drivers/wifi/simplelink/simplelink.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,098 |
```c
/**
*
*/
#include "simplelink_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <stdlib.h>
#include <limits.h>
#include <zephyr/posix/fcntl.h>
#include <zephyr/kernel.h>
/* Define sockaddr, etc, before simplelink.h */
#include <zephyr/net/socket_offload.h>
#include <errno.h>
#include <ti/drivers/net/wifi/... | /content/code_sandbox/drivers/wifi/simplelink/simplelink_sockets.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,585 |
```objective-c
/*
*
*
*/
#ifndef ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_SUPPORT_H_
#define ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_SUPPORT_H_
#include <zephyr/net/wifi_mgmt.h>
#ifdef __cplusplus
extern "C" {
#endif
#define SSID_LEN_MAX (32)
#define BSSID_LEN_MAX (6)
/* Define ID for simplelink_wifi_cb to... | /content/code_sandbox/drivers/wifi/simplelink/simplelink_support.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 361 |
```c
/*
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/winstream.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#include <zephyr/devicetree.h>
#include <zephyr/cache.h>
#include <adsp_memory.h>
#include <mem_window.h>
struct k_spinl... | /content/code_sandbox/drivers/console/winstream_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 495 |
```c
/*
*
*/
/**
* @file
* @brief UART-driven console
*
*
* Serial console driver.
* Hooks into the printk and fputc (for printf) modules. Poll driven.
*/
#include <zephyr/kernel.h>
#include <stdio.h>
#include <zephyr/types.h>
#include <zephyr/sys/__assert.h>
#include <errno.h>
#include <ctype.h>
#include ... | /content/code_sandbox/drivers/console/uart_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,758 |
```c
/*
*/
#include <xtensa/simcall.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#if defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE)
/**
* @brief Output one character to SIMULATOR console
* @param c Character to output
* @r... | /content/code_sandbox/drivers/console/xtensa_sim_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 427 |
```c
/*
*
*
*/
#include <stdlib.h>
#include <string.h>
#include "simplelink_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <stdint.h>
#include <ti/drivers/net/wifi/simplelink.h>
#include <ti/net/slnetif.h>
#include <ti/net/slnetutils.h>
#include <ti/drivers/net/wifi/slnetifwifi.h... | /content/code_sandbox/drivers/wifi/simplelink/simplelink_support.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,752 |
```c
/*
*
*/
#include <zephyr/init.h>
#include <zephyr/arch/posix/posix_trace.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#define _STDOUT_BUF_SIZE 256
static char stdout_buff[_STDOUT_BUF_SIZE];
static int n_pend; /* Number of pending characters in buffer */
static int print_char(int ... | /content/code_sandbox/drivers/console/posix_arch_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 352 |
```c
/*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/arch/common/semihost.h>
#include <zephyr/sys/libc-hooks.h>
int arch_printk_char_out(int _c)
{
semihost_poll_out((char)_c);
return 0;
}
static int semihost_console_init(void)
{
/*
* The printk output callb... | /content/code_sandbox/drivers/console/semihost_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 173 |
```c
/*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#if defined(CONFIG_PRINTK) || defined(CONFIG_STDOUT_CONSOLE)
/**
* @brief Output one character to SIMULATOR console
* @par... | /content/code_sandbox/drivers/console/jailhouse_debug_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 272 |
```c
/*
*
*/
/**
* @file
* @brief EFI console driver
*
* @details EFI console driver.
* Hooks into the printk and fputc (for printf) modules.
*/
#include <stdio.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-... | /content/code_sandbox/drivers/console/efi_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 309 |
```c
/* ram_console.c - Console messages to a RAM buffer */
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/linker/devicetree_regions.h>
#ifdef CONFIG_RAM_... | /content/code_sandbox/drivers/console/ram_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 405 |
```c
/* rtt_console.c - Console messages to a RAM buffer that is then read by
* the Segger J-Link debugger
*/
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <SEG... | /content/code_sandbox/drivers/console/rtt_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 545 |
```c
/*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(ipm_console, CONFIG_IPM_LOG_LEVEL);
const struct device *ipm_dev;
... | /content/code_sandbox/drivers/console/ipm_console.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 446 |
```c
/* ipm_console_send.c - Console messages to another processor */
/*
*
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/printk-hooks.h>
#include <zephyr/sys/libc-hooks.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/drivers/console/ipm_console.h>
static ... | /content/code_sandbox/drivers/console/ipm_console_sender.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 304 |
```c
/* ipm_console.c - Console messages to/from another processor */
/*
*
*/
#include <errno.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/ring_buffer.h>
#include <zephyr/sys/printk.h>
#include <stdio.h>
#include <zephyr/drivers/ipm.h>
#include <zephyr/drivers/console/ipm_console.h>
#include <zephyr/sys/__as... | /content/code_sandbox/drivers/console/ipm_console_receiver.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,160 |
```unknown
# Console driver configuration options
# Setting shared by different subsystems
menuconfig CONSOLE
bool "Console drivers"
if CONSOLE
config CONSOLE_INPUT_MAX_LINE_LEN
int "Console maximum input line length"
default 128
help
This option can be used to modify the maximum length a console input
c... | /content/code_sandbox/drivers/console/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,062 |
```unknown
config ARM_SIP_SVC_HAS_INTEL_SDM_MAILBOX_FIFO
bool
default y
depends on DT_HAS_INTEL_SOCFPGA_AGILEX_SIP_SMC_ENABLED
imply ARM_SIP_SVC_HAS_DRIVER
help
Support for SDM mailbox fifo in Intel SoC FPGA Agilex via SMC calls.
config ARM_SIP_SVC_EL3_MAILBOX_RESPONSE_SIZE
int "Size of response buffer used ... | /content/code_sandbox/drivers/sip_svc/Kconfig.sip_smc_agilex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 225 |
```c
/*
*
*/
/**
* @file
* @brief A driver for sending and receiving mcumgr packets over UART.
*/
#include <string.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/mgmt/mcumgr/transport/serial.h>
#include <zephyr/drivers/console/uart_mcumgr.h>
static const struct device *const uar... | /content/code_sandbox/drivers/console/uart_mcumgr.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,653 |
```unknown
# Silicon vendor Provided Supervisory call driver for sip_svc subsystem
menuconfig ARM_SIP_SVC_DRIVER
bool "ARM SIP SVC driver"
depends on ARM64
help
ARM supervisory call driver for communicating with EL2 or EL3 firmware
if ARM_SIP_SVC_DRIVER
module = ARM_SIP_SVC_DRIVER
module-str = arm_sip_svc_dri... | /content/code_sandbox/drivers/sip_svc/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 188 |
```c
/*
*
*
* Intel SoC FPGA platform specific functions used by ARM SiP Services for
* supporting EL3 communication from zephyr.
*/
#include <string.h>
#include <zephyr/drivers/sip_svc/sip_svc_agilex_mailbox.h>
#include <zephyr/drivers/sip_svc/sip_svc_agilex_smc.h>
#include <zephyr/drivers/sip_svc/sip_svc_driver... | /content/code_sandbox/drivers/sip_svc/sip_smc_intel_socfpga.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,090 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_ETHERNET_PHY_GECKO_H_
#define ZEPHYR_DRIVERS_ETHERNET_PHY_GECKO_H_
#include <zephyr/types.h>
#include <soc.h>
#ifdef __cplusplus
extern "C" {
#endif
struct phy_gecko_dev {
ETH_TypeDef *regs;
uint8_t address;
};
/**
* @brief Initialize Ethernet PHY device.
*
* @p... | /content/code_sandbox/drivers/ethernet/phy_gecko.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 312 |
```c
/* Stellaris Ethernet Controller
*
*
*/
#define DT_DRV_COMPAT ti_stellaris_ethernet
#define LOG_MODULE_NAME eth_stellaris
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/net/ethernet.h>
#include <zephyr/net/net_pkt.h>
#include... | /content/code_sandbox/drivers/ethernet/eth_stellaris.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,541 |
```objective-c
/*
*
*/
#ifndef ETH_LAN865X_PRIV_H__
#define ETH_LAN865X_PRIV_H__
#include <stdint.h>
#include <stdbool.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/net/net_if.h>
#include <ethernet/eth_stats.h>
#include "oa_tc6.h"
#define LAN865X_SPI... | /content/code_sandbox/drivers/ethernet/eth_lan865x_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 764 |
```c
/* W5500 Stand-alone Ethernet Controller with SPI
*
* Author: Parthiban Nallathambi <parthiban@linumiz.com>
*
*/
#define DT_DRV_COMPAT wiznet_w5500
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(eth_w5500, CONFIG_ETHERNET_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <strin... | /content/code_sandbox/drivers/ethernet/eth_w5500.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,425 |
```objective-c
/*
* Driver for Synopsys DesignWare MAC
*
*
*
* Definitions in this file are based on:
*
* DesignWare Cores Ethernet Quality-of-Service Databook
* Version 5.10a, December 2017
*/
#ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_DWMAC_PRIV_H_
#define ZEPHYR_DRIVERS_ETHERNET_ETH_DWMAC_PRIV_H_
/*
* Globa... | /content/code_sandbox/drivers/ethernet/eth_dwmac_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,616 |
```c
/*
*
*/
#define DT_DRV_COMPAT espressif_esp32_eth
#include <ethernet/eth_stats.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/interrupt_controller/intc_esp32.h>
#include <zephyr/logging/log.h>
#include <zephyr/net/ethernet.h>
#include <zephyr/net/phy.h>
#include <esp_attr.h>
#include <e... | /content/code_sandbox/drivers/ethernet/eth_esp32.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,142 |
```unknown
menuconfig ETH_ADIN2111
bool "ADIN2111 2-port 10BASE-T1L Controller"
default y
depends on DT_HAS_ADI_ADIN2111_ENABLED || DT_HAS_ADI_ADIN1110_ENABLED
select SPI
select MDIO
imply CRC
help
The ADIN2111 is a low power, 2-port 10BASE-T1L transceiver
designed for industrial Ethernet applications, an... | /content/code_sandbox/drivers/ethernet/Kconfig.adin2111 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 419 |
```objective-c
/*
* Arvin Farahmand <arvinf@ip-logix.com>
*/
#ifndef __DSA_KSZ8863_H__
#define __DSA_KSZ8863_H__
/* SPI commands */
#define KSZ8863_SPI_CMD_WR (BIT(6))
#define KSZ8863_SPI_CMD_RD (BIT(6) | BIT(5))
/* PHY registers */
#define KSZ8863_BMCR 0x00
#define KS... | /content/code_sandbox/drivers/ethernet/dsa_ksz8863.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,247 |
```unknown
config ETH_LITEX_LITEETH
bool "LiteX LiteEth Ethernet core driver"
default y
depends on DT_HAS_LITEX_LITEETH_ENABLED
imply MDIO
``` | /content/code_sandbox/drivers/ethernet/Kconfig.litex | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 42 |
```unknown
config ETH_SMSC91X
bool "SMSC91x Ethernet driver"
default y
depends on DT_HAS_SMSC_LAN91C111_ENABLED
select MDIO
help
Enable driver for SMSC/LAN91x family of chips.
``` | /content/code_sandbox/drivers/ethernet/Kconfig.smsc91x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 55 |
```c
/*
*
*/
/** @file
* @brief Atmel SAM MCU family Ethernet MAC (GMAC) driver.
*
* This is a zero-copy networking implementation of an Ethernet driver. To
* prepare for the incoming frames the driver will permanently reserve a defined
* amount of RX data net buffers when the interface is brought up and thus
... | /content/code_sandbox/drivers/ethernet/eth_sam_gmac.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 19,557 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_NXP_S32_NETC_PRIV_H_
#define ZEPHYR_DRIVERS_ETHERNET_ETH_NXP_S32_NETC_PRIV_H_
#define NETC_F3_PSICFGR0_SIVC_CVLAN_BIT BIT(0) /* 0x8100 */
#define NETC_F3_PSICFGR0_SIVC_SVLAN_BIT BIT(1) /* 0x88A8 */
#define NETC_MIN_RING_LEN 8U
#define NETC_MIN_RING_BUF_SIZ... | /content/code_sandbox/drivers/ethernet/eth_nxp_s32_netc_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,587 |
```objective-c
/*
*/
#ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_SMSC91X_PRIV_H_
#define ZEPHYR_DRIVERS_ETHERNET_ETH_SMSC91X_PRIV_H_
#include <zephyr/sys/util.h>
/* All Banks, Offset 0xe: Bank Select Register */
#define BSR 0xe
#define BSR_BANK_MASK GENMASK(2, 0) /* Which bank is currently selected */
#define BSR_IDEN... | /content/code_sandbox/drivers/ethernet/eth_smsc91x_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,798 |
```c
/*
*
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(eth_adin2111, CONFIG_ETHERNET_LOG_LEVEL);
#include <zephyr/net/net_pkt.h>
#include <zephyr/net/ethernet.h>
#include <zephyr/net/phy.h>
#if CONFIG_ETH_ADIN2111_SPI_CFG0
#include <zephyr/sys/crc.h>
#endif /* CONFIG_ETH_ADIN2111_SPI_CFG0 */
#include <st... | /content/code_sandbox/drivers/ethernet/eth_adin2111.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13,969 |
```unknown
menuconfig ETH_GECKO
bool "SiLabs Gecko Ethernet driver"
default y
depends on DT_HAS_SILABS_GECKO_ETHERNET_ENABLED
help
Enable Ethernet driver for Silicon Labs Gecko chips.
if ETH_GECKO
config ETH_GECKO_RX_THREAD_STACK_SIZE
int "RX thread stack size"
default 1500
help
RX thread stack size
co... | /content/code_sandbox/drivers/ethernet/Kconfig.gecko | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 178 |
```objective-c
#ifndef ETH_CYCLONEV_HEADER
#define ETH_CYCLONEV_HEADER
/*
* Description:
* Driver for the Synopsys DesignWare
* 3504-0 Universal 10/100/1000 Ethernet MAC (DWC_gmac)
* specifically designed for Cyclone V SoC DevKit use only.
*/
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#define alt_replb... | /content/code_sandbox/drivers/ethernet/eth_cyclonev_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,529 |
```c
#ifndef PHY_CYCLONEV_SRC
#define PHY_CYCLONEV_SRC
/*
* Description:
* Driver for the PHY KSZ9021RL/RN Datasheet:(path_to_url
* downloads/en/DeviceDoc/KSZ9021RL-RN-Data-Sheet-DS00003050A.pdf)
* specifically designed for Cyclone V SoC DevKit use only.
*/
/* PHY */
/* According to default Cyclone V DevKit Boots... | /content/code_sandbox/drivers/ethernet/phy_cyclonev.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,143 |
```c
/*
*
*/
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nxp_s32_eth);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/net/ethernet.h>
#include <zephyr/net/net_if.h>
#inclu... | /content/code_sandbox/drivers/ethernet/eth_nxp_s32_netc.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,707 |
```unknown
#
# Xilinx Processor System Gigabit Ethernet controller (GEM) driver
# configuration options
#
#
menuconfig ETH_XLNX_GEM
bool "Xilinx GEM Ethernet driver"
default y
depends on DT_HAS_XLNX_GEM_ENABLED
depends on !QEMU_TARGET || (QEMU_TARGET && NET_QEMU_ETHERNET)
help
Enable Xilinx GEM Ethernet driver... | /content/code_sandbox/drivers/ethernet/Kconfig.xlnx_gem | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 146 |
```objective-c
/* STELLARIS Ethernet Controller
*
*
*/
#ifndef ETH_STELLARIS_PRIV_H_
#define ETH_STELLARIS_PRIV_H_
#define REG_BASE(dev) \
((const struct eth_stellaris_config *const)(dev)->config)->mac_base
/*
* Register mapping
*/
/* Registers for ethernet system, mac_base + offset */
#define REG_MACRIS (REG... | /content/code_sandbox/drivers/ethernet/eth_stellaris_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 568 |
```unknown
# ESP32 Ethernet driver configuration options
menuconfig ETH_ESP32
bool "ESP32 Ethernet driver"
default y
depends on SOC_SERIES_ESP32
depends on DT_HAS_ESPRESSIF_ESP32_ETH_ENABLED
select MDIO
help
Enable ESP32 Ethernet driver.
if ETH_ESP32
config ETH_ESP32_RX_THREAD_STACK_SIZE
int "ESP32 Ethern... | /content/code_sandbox/drivers/ethernet/Kconfig.esp32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 122 |
```unknown
# W5500 Ethernet driver configuration options
# Author: Parthiban Nallathambi <parthiban@linumiz.com>
menuconfig ETH_W5500
bool "W5500 Ethernet Controller"
default y
depends on DT_HAS_WIZNET_W5500_ENABLED
select SPI
help
W5500 Stand-Alone Ethernet Controller
with SPI Interface
config ETH_W5500_... | /content/code_sandbox/drivers/ethernet/Kconfig.w5500 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 245 |
```unknown
# ETH_ENC28J60 Ethernet driver configuration options
menuconfig ETH_ENC28J60
bool "ENC28J60C Ethernet Controller"
default y
depends on DT_HAS_MICROCHIP_ENC28J60_ENABLED
select SPI
help
ENC28J60C Stand-Alone Ethernet Controller
with SPI Interface
if ETH_ENC28J60
config ETH_ENC28J60_RX_THREAD_ST... | /content/code_sandbox/drivers/ethernet/Kconfig.enc28j60 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 346 |
```c
/*
*
*/
#define DT_DRV_COMPAT nuvoton_numaker_ethernet
#include <zephyr/kernel.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/clock_control_numaker.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/logging/log.h>
#include <zephyr/net/... | /content/code_sandbox/drivers/ethernet/eth_numaker.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,165 |
```unknown
menuconfig ETH_NXP_S32_NETC
bool "NXP S32 Ethernet Switch and Controller (NETC) driver"
default y
depends on (DT_HAS_NXP_S32_NETC_PSI_ENABLED || DT_HAS_NXP_S32_NETC_VSI_ENABLED)
select MBOX
select MDIO if DT_HAS_NXP_S32_NETC_PSI_ENABLED
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help
... | /content/code_sandbox/drivers/ethernet/Kconfig.nxp_s32_netc | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 785 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_s32_netc_vsi
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nxp_s32_eth_vsi);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/net/ether... | /content/code_sandbox/drivers/ethernet/eth_nxp_s32_netc_vsi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,167 |
```c
/*
*
*/
#define DT_DRV_COMPAT silabs_gecko_ethernet
/* Silicon Labs EFM32 Giant Gecko 11 Ethernet driver.
* Limitations:
* - no link monitoring through PHY interrupt
*/
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(eth_gecko, CONFIG_ETHERNET_LOG_LEVEL);
#include <soc.h>
#include <zephyr/device.h>
#i... | /content/code_sandbox/drivers/ethernet/eth_gecko.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,314 |
```c
/* XMC4XXX Ethernet controller
*
*
*/
#define DT_DRV_COMPAT infineon_xmc4xxx_ethernet
#include "eth.h"
#include <stdint.h>
#include <soc.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/ptp_clock.h>
#include <zephyr/net/ethernet.h>
#include <zephyr/net/gptp.h>
#incl... | /content/code_sandbox/drivers/ethernet/eth_xmc4xxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,585 |
```c
/*
*
*/
#define LOG_MODULE_NAME eth_slip_tap
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/net/ethernet.h>
#include "../net/slip.h"
static struct slip_context slip_context_data;
static enum ethernet_hw_caps eth_capabilities... | /content/code_sandbox/drivers/ethernet/eth_slip_tap.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 229 |
```unknown
# Description:
# Cyclone V ethernet configuration options
menuconfig ETH_CYCLONEV
bool "Cyclone V ethernet MAC driver"
default y
depends on DT_HAS_SNPS_ETHERNET_CYCLONEV_ENABLED
if ETH_CYCLONEV
config ETH_CVSX_NB_TX_DESCS
int "Number of entries in the transmit descriptor ring"
default 32
range 4 128... | /content/code_sandbox/drivers/ethernet/Kconfig.cyclonev | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 234 |
```c
/*
*
*/
/**
* @file
*
* Routines setting up the host system. Those are placed in separate file
* because there is naming conflicts between host and zephyr network stacks.
*/
/* Host include files */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
#include ... | /content/code_sandbox/drivers/ethernet/eth_native_posix_adapt.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 726 |
```unknown
# NUMAKER Ethernet Driver configuration options
config ETH_NUMAKER
bool "Nuvoton NUMAKER MCU Ethernet driver"
default y
select HAS_NUMAKER_ETH
depends on DT_HAS_NUVOTON_NUMAKER_ETHERNET_ENABLED
help
This option enables the Ethernet driver for Nuvoton NuMaker family of
processors.
Say y if you... | /content/code_sandbox/drivers/ethernet/Kconfig.numaker | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 83 |
```c
/*
*
*/
/**
* @file
*
* Ethernet driver for native posix board. This is meant for network
* connectivity between host and Zephyr.
*/
#define LOG_MODULE_NAME eth_posix
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <stdio.h>
#in... | /content/code_sandbox/drivers/ethernet/eth_native_posix.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,949 |
```c
/*
*/
#define DT_DRV_COMPAT st_stm32_ethernet
#define LOG_MODULE_NAME eth_stm32_hal
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util... | /content/code_sandbox/drivers/ethernet/eth_stm32_hal.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16,799 |
```objective-c
/* mbed Microcontroller Library
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
/*
* This header is originally based on mbedOS header
* targets/TARGET_ARM_SSG/TARGET_CM3DS... | /content/code_sandbox/drivers/ethernet/eth_smsc911x_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,023 |
```unknown
# Synopsys DesignWare MAC configuration options
menuconfig ETH_DWMAC
bool "Synopsys DesignWare MAC driver"
default y
depends on NET_BUF_FIXED_DATA_SIZE
depends on (SOC_SERIES_STM32H7X && !ETH_STM32_HAL) || MMU
depends on DT_HAS_SNPS_DESIGNWARE_ETHERNET_ENABLED
help
This is a driver for the Synopsy... | /content/code_sandbox/drivers/ethernet/Kconfig.dwmac | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 506 |
```c
/*
*/
#include <zephyr/net/ethernet.h>
#include <zephyr/net/phy.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/sys_clock.h>
#include <zephyr/drivers/mdio.h>
#include <zephyr/logging/log.h>
#include "eth_smsc91x_priv.h"
#define DT_DRV_COMPAT smsc_lan91c111
LOG_MODULE_REGISTER(eth_smsc91x, CONFIG_ETHERNET_LOG_... | /content/code_sandbox/drivers/ethernet/eth_smsc91x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,496 |
```c
/* ENC424J600 Stand-alone Ethernet Controller with SPI
*
*
*/
#define DT_DRV_COMPAT microchip_enc424j600
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>
#include <errno.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/net/net_pkt.h>
#include <zephy... | /content/code_sandbox/drivers/ethernet/eth_enc424j600.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 6,870 |
```unknown
# Intel(R) PRO/1000 Gigabit Ethernet driver configuration options
menuconfig ETH_E1000
bool "Intel(R) PRO/1000 Gigabit Ethernet driver"
default y
depends on DT_HAS_INTEL_E1000_ENABLED
depends on PCIE
help
Enable Intel(R) PRO/1000 Gigabit Ethernet driver.
if ETH_E1000
config ETH_NIC_MODEL
string
... | /content/code_sandbox/drivers/ethernet/Kconfig.e1000 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 318 |
```unknown
# STM32 HAL Ethernet driver configuration options
menuconfig ETH_STM32_HAL
bool "STM32 HAL Ethernet driver"
default y
depends on DT_HAS_ST_STM32_ETHERNET_ENABLED
select USE_STM32_HAL_ETH
select NOCACHE_MEMORY if SOC_SERIES_STM32H7X && CPU_CORTEX_M7
select HWINFO
select ETH_DSA_SUPPORT
select MDIO i... | /content/code_sandbox/drivers/ethernet/Kconfig.stm32_hal | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,266 |
```c
/*
*
*/
#include "eth_ivshmem_priv.h"
#include <zephyr/arch/cpu.h>
#include <zephyr/cache.h>
#include <zephyr/kernel.h>
#include <stdatomic.h>
#include <string.h>
/* These defines must match on the peer */
#define ETH_IVSHMEM_VRING_ALIGNMENT 64
#define ETH_IVSHMEM_FRAME_SIZE(len) ROUND_UP(18 + (len), L1_CACH... | /content/code_sandbox/drivers/ethernet/eth_ivshmem_queue.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,486 |
```c
/* ENC28J60 Stand-alone Ethernet Controller with SPI
*
*
*/
#define DT_DRV_COMPAT microchip_enc28j60
#define LOG_MODULE_NAME eth_enc28j60
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#i... | /content/code_sandbox/drivers/ethernet/eth_enc28j60.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,908 |
```objective-c
/* W5500 Stand-alone Ethernet Controller with SPI
*
* Author: Parthiban Nallathambi <parthiban@linumiz.com>
*
*/
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#ifndef _W5500_
#define _W5500_
/*
* W5500 common registers
*/
#define W5500_COMMON_REGS 0x0000
#define W5500_MR 0x00... | /content/code_sandbox/drivers/ethernet/eth_w5500_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,168 |
```unknown
# ENC424J600 Ethernet driver configuration options
menuconfig ETH_ENC424J600
bool "ENC424J600C Ethernet Controller"
default y
depends on DT_HAS_MICROCHIP_ENC424J600_ENABLED
select SPI
help
ENC424J600C Stand-Alone Ethernet Controller
with SPI Interface
if ETH_ENC424J600
config ETH_ENC424J600_RX... | /content/code_sandbox/drivers/ethernet/Kconfig.enc424j600 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 220 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_s32_netc_psi
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nxp_s32_eth_psi);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/mbox.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/net/ether... | /content/code_sandbox/drivers/ethernet/eth_nxp_s32_netc_psi.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,576 |
```unknown
# Atmel SAM Ethernet (GMAC) driver configuration options
menuconfig ETH_SAM_GMAC
bool "Atmel SAM Ethernet driver"
default y
depends on NET_BUF_FIXED_DATA_SIZE
depends on DT_HAS_ATMEL_SAM_GMAC_ENABLED || \
DT_HAS_ATMEL_SAM0_GMAC_ENABLED
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
sel... | /content/code_sandbox/drivers/ethernet/Kconfig.sam_gmac | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 987 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_SAM0_GMAC_H_
#define ZEPHYR_DRIVERS_ETHERNET_ETH_SAM0_GMAC_H_
/*
* Map the SAM-family DFP GMAC register names to the SAM0-family DFP GMAC
* register names.
*/
#define GMAC_NCR NCR.reg
#define GMAC_NCFGR NCFGR.reg
#define GMAC_NSR NSR.r... | /content/code_sandbox/drivers/ethernet/eth_sam0_gmac.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,434 |
```objective-c
/*
*
*/
#ifndef OA_TC6_CFG_H__
#define OA_TC6_CFG_H__
#include <stdint.h>
#include <stdbool.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/net/net_pkt.h>
#define MMS_REG(m, r) ((((m) & GENMASK(3, 0)) << 16) | ((r) & GENMASK(15, 0)))
/*... | /content/code_sandbox/drivers/ethernet/oa_tc6.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,987 |
```unknown
menuconfig ETH_NXP_S32_GMAC
bool "NXP S32 GMAC driver"
default y
depends on DT_HAS_NXP_S32_GMAC_ENABLED
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
select PINCTRL
imply MDIO
help
Enable GMAC/EMAC Ethernet driver for NXP S32 SoCs.
if ETH_NXP_S32_GMAC
config ETH_NXP_S32_TX_RING_LEN
i... | /content/code_sandbox/drivers/ethernet/Kconfig.nxp_s32_gmac | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 774 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_GECKO_PRIV_H_
#define ZEPHYR_DRIVERS_ETHERNET_ETH_GECKO_PRIV_H_
#include <zephyr/kernel.h>
#include <zephyr/types.h>
#define ETH_GECKO_MTU NET_ETH_MTU
#define SILABS_OUI_B0 0x00
#define SILABS_OUI_B1 0x0B
#define SILABS_OUI_B2 ... | /content/code_sandbox/drivers/ethernet/eth_gecko_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,344 |
```objective-c
/*
*
*/
#ifndef ETH_IVSHMEM_PRIV_H
#define ETH_IVSHMEM_PRIV_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <openamp/virtio_ring.h>
struct eth_ivshmem_queue {
struct {
struct vring vring;
void *shmem;
uint16_t desc_head;
uint16_t desc_len;
uint32_t data_head;
ui... | /content/code_sandbox/drivers/ethernet/eth_ivshmem_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 345 |
```c
/*
*
*/
#define DT_DRV_COMPAT intel_e1000
#define LOG_MODULE_NAME eth_e1000
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <sys/types.h>
#include <zephyr/kernel.h>
#include <zephyr/net/ethernet.h>
#include <ethernet/eth_stats.h>
#incl... | /content/code_sandbox/drivers/ethernet/eth_e1000.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 3,157 |
```c
/*
* Description:
* 3504-0 Universal 10/100/1000 Ethernet MAC (DWC_gmac)
* Driver specifically designed for Cyclone V SoC DevKit use only.
*
* based on Intel SOC FPGA HWLIB Repo
* path_to_url
*/
#define LOG_MODULE_NAME eth_cyclonev
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>... | /content/code_sandbox/drivers/ethernet/eth_cyclonev.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,112 |
```c
/*
* Driver for Synopsys DesignWare MAC
*
*
*
* STM32H7X specific glue.
*/
#define LOG_MODULE_NAME dwmac_plat
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
/* be compatible with the HAL-based driver here */
#define DT_DRV_COMPAT st_stm32_... | /content/code_sandbox/drivers/ethernet/eth_dwmac_stm32h7x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,008 |
```c
/*
*
*/
#define DT_DRV_COMPAT nxp_s32_gmac
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nxp_s32_eth, CONFIG_ETHERNET_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/net/ethernet.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net... | /content/code_sandbox/drivers/ethernet/eth_nxp_s32_gmac.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 7,782 |
```objective-c
/*
* Xilinx Processor System Gigabit Ethernet controller (GEM) driver
*
* Driver private data declarations
*
*/
#ifndef _ZEPHYR_DRIVERS_ETHERNET_ETH_XLNX_GEM_PRIV_H_
#define _ZEPHYR_DRIVERS_ETHERNET_ETH_XLNX_GEM_PRIV_H_
#define DT_DRV_COMPAT xlnx_gem
#include <zephyr/kernel.h>
#include <zephyr/ty... | /content/code_sandbox/drivers/ethernet/eth_xlnx_gem_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,625 |
```c
/*
* Lukasz Majewski <lukma@denx.de>
*/
#define LOG_MODULE_NAME dsa
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_ETHERNET_LOG_LEVEL);
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/kernel.h>
#include <errno.h>
#include <zephyr/sys/util... | /content/code_sandbox/drivers/ethernet/dsa_ksz8xxx.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 10,514 |
```objective-c
/*
* Lukasz Majewski <lukma@denx.de>
*/
#ifndef __DSA_KSZ8794_H__
#define __DSA_KSZ8794_H__
/* SPI commands */
#define KSZ8794_SPI_CMD_WR (BIT(6))
#define KSZ8794_SPI_CMD_RD (BIT(6) | BIT(5))
/* PHY registers */
#define KSZ8794_BMCR 0x00
#define KSZ8794_... | /content/code_sandbox/drivers/ethernet/dsa_ksz8794.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,838 |
```objective-c
/*
*
*/
#ifndef ETH_E1000_PRIV_H
#define ETH_E1000_PRIV_H
#ifdef __cplusplus
extern "C" {
#endif
#define CTRL_SLU (1 << 6) /* Set Link Up */
#define TCTL_EN (1 << 1)
#define RCTL_EN (1 << 1)
#define ICR_TXDW (1) /* Transmit Descriptor Written Back */
#define ICR_TXQE (1 << 1) /* Transmit Qu... | /content/code_sandbox/drivers/ethernet/eth_e1000_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,001 |
```objective-c
/*
*
*/
#ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_H_
#define ZEPHYR_DRIVERS_ETHERNET_ETH_H_
#include <zephyr/types.h>
#include <zephyr/random/random.h>
/* helper macro to return mac address octet from local_mac_address prop */
#define NODE_MAC_ADDR_OCTET(node, n) DT_PROP_BY_IDX(node, local_mac_address, n)... | /content/code_sandbox/drivers/ethernet/eth.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 409 |
```unknown
menuconfig ETH_LAN865X
bool "LAN865X 10BASE-T1S Controller"
default y
depends on DT_HAS_MICROCHIP_LAN865X_ENABLED
select SPI
select NET_L2_ETHERNET_MGMT
help
The LAN865X is a low power, 10BASE-T1S transceiver compliant with
the IEEE 802.3cg-2019 Ethernet standard for long reach, 10
Mbps singl... | /content/code_sandbox/drivers/ethernet/Kconfig.lan865x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 338 |
```objective-c
/*
*
*/
#ifndef ETH_ADIN2111_PRIV_H__
#define ETH_ADIN2111_PRIV_H__
#include <stdint.h>
#include <stdbool.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/net/net_if.h>
#include <ethernet/eth_stats.h>
/* SPI frequency maximum, based on cl... | /content/code_sandbox/drivers/ethernet/eth_adin2111_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,744 |
```c
/*
* Xilinx Processor System Gigabit Ethernet controller (GEM) driver
*
* PHY management interface implementation
* Models currently supported:
* - Marvell Alaska 88E1111 (QEMU simulated PHY)
* - Marvell Alaska 88E1510/88E1518/88E1512/88E1514 (Zedboard)
* - Texas Instruments TLK105
* - Texas Instruments DP... | /content/code_sandbox/drivers/ethernet/phy_xlnx_gem.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 9,940 |
```c
/*
* Driver for Synopsys DesignWare MAC
*
*
*/
#define LOG_MODULE_NAME dwmac_core
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <sys/types.h>
#include <zephyr/kernel.h>
#include <zephyr/cache.h>
#include <zephyr/net/ethernet.h>
#in... | /content/code_sandbox/drivers/ethernet/eth_dwmac.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 5,178 |
```objective-c
/* ENC28J60 Stand-alone Ethernet Controller with SPI
*
*
*/
#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#ifndef _ENC28J60_
#define _ENC28J60_
/* Any Bank Registers */
#define ENC28J60_REG_EIE 0x1B
#define ENC28J60_REG_EIR 0x1C
#define ENC28J60_REG... | /content/code_sandbox/drivers/ethernet/eth_enc28j60_priv.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 2,897 |
```unknown
# ETH_STELLARIS Ethernet driver configuration options
menuconfig ETH_STELLARIS
bool "TI Stellaris MCU family ethernet driver."
default y
depends on DT_HAS_TI_STELLARIS_ETHERNET_ENABLED
help
Stellaris on-board Ethernet Controller
config ETH_NIC_MODEL
string
default "stellaris"
depends on ETH_STEL... | /content/code_sandbox/drivers/ethernet/Kconfig.stellaris | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```c
/*
* Xilinx Processor System Gigabit Ethernet controller (GEM) driver
*
*
* Known current limitations / TODOs:
* - Only supports 32-bit addresses in buffer descriptors, therefore
* the ZynqMP APU (Cortex-A53 cores) may not be fully supported.
* - Hardware timestamps not considered.
* - VLAN tags not cons... | /content/code_sandbox/drivers/ethernet/eth_xlnx_gem.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16,672 |
```c
/*
*
*/
#define DT_DRV_COMPAT smsc_lan9220
/* SMSC911x/SMSC9220 driver. Partly based on mbedOS driver. */
#define LOG_MODULE_NAME eth_smsc911x
#define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <soc.h>
#include <zephyr/device.h>
#includ... | /content/code_sandbox/drivers/ethernet/eth_smsc911x.c | c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 4,567 |
```objective-c
/*
* Xilinx Processor System Gigabit Ethernet controller (GEM) driver
*
* PHY management interface and related data
*
*/
#ifndef _ZEPHYR_DRIVERS_ETHERNET_PHY_XLNX_GEM_H_
#define _ZEPHYR_DRIVERS_ETHERNET_PHY_XLNX_GEM_H_
#include <zephyr/kernel.h>
#include <zephyr/types.h>
/* Event codes used to in... | /content/code_sandbox/drivers/ethernet/phy_xlnx_gem.h | objective-c | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 1,699 |
```unknown
menuconfig ETH_SMSC911X
bool "SMSC911x/9220 Ethernet driver"
default y
depends on DT_HAS_SMSC_LAN9220_ENABLED
help
Enable driver for SMSC/LAN911x/9220 family of chips.
config ETH_NIC_MODEL
string
default "lan9118"
depends on ETH_SMSC911X
help
Tells what Qemu network model to use. This value i... | /content/code_sandbox/drivers/ethernet/Kconfig.smsc911x | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 109 |
```unknown
# Distributed Switch Architecture [DSA] configuration options
# Lukasz Majewski <lukma@denx.de>
config ETH_DSA_SUPPORT
bool
help
Set by an ethernet driver that supports DSA.
menuconfig NET_DSA
bool "Distributed Switch Architecture support"
depends on ETH_DSA_SUPPORT
help
Enable Di... | /content/code_sandbox/drivers/ethernet/Kconfig.dsa | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 410 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.