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 DT_DRV_COMPAT siemens_ivshmem_eth #include <zephyr/drivers/virtualization/ivshmem.h> #include <zephyr/logging/log.h> #include <zephyr/net/ethernet.h> #include <ethernet/eth_stats.h> #include "eth.h" #include "eth_ivshmem_priv.h" LOG_MODULE_REGISTER(eth_ivshmem, CONFIG_ETHERNET_LOG_LEVEL); #d...
/content/code_sandbox/drivers/ethernet/eth_ivshmem.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,541
```unknown # Ethernet drivers configuration options menuconfig ETH_DRIVER bool "Ethernet drivers" depends on NETWORKING depends on !NET_TEST default y if NET_L2_ETHERNET if ETH_DRIVER config ETH_DRIVER_RAW_MODE bool "Ethernet driver without the MAC stack" select NET_RAW_MODE depends on !NET_L2_ETHERNET help...
/content/code_sandbox/drivers/ethernet/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
817
```objective-c /* */ #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_STM32_HAL_PRIV_H_ #define ZEPHYR_DRIVERS_ETHERNET_ETH_STM32_HAL_PRIV_H_ #include <zephyr/kernel.h> #include <zephyr/types.h> /* Naming of the ETH PTP Config Status changes depending on the stm32 serie */ #if defined(CONFIG_SOC_SERIES_STM32F4X) #define ETH_ST...
/content/code_sandbox/drivers/ethernet/eth_stm32_hal_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
659
```c /** * @file * @brief Ethernet Driver raw mode * * This file contains a collection of functions called from the ethernet drivers * to the missing upper layer. */ /* * */ #include <zephyr/net/ethernet.h> __weak void ethernet_init(struct net_if *iface) { ARG_UNUSED(iface); } __weak void net_eth_carrier_o...
/content/code_sandbox/drivers/ethernet/eth_raw.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
195
```objective-c /* * */ /** @file * @brief Private functions for native posix ethernet driver. */ #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_ #define ZEPHYR_DRIVERS_ETHERNET_ETH_NATIVE_POSIX_PRIV_H_ int eth_iface_create(const char *dev_name, const char *if_name, bool tun_only); int eth_iface_remove(i...
/content/code_sandbox/drivers/ethernet/eth_native_posix_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
139
```c /* * */ #include "oa_tc6.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(oa_tc6, CONFIG_ETHERNET_LOG_LEVEL); /* * When IPv6 support enabled - the minimal size of network buffer * shall be at least 128 bytes (i.e. default value). */ #if defined(CONFIG_NET_IPV6) && (CONFIG_NET_BUF_DATA_SIZE < 128) #er...
/content/code_sandbox/drivers/ethernet/oa_tc6.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,651
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_NUMAKER_PRIV_H_ #define ZEPHYR_DRIVERS_ETHERNET_ETH_NUMAKER_PRIV_H_ #include <zephyr/types.h> #define NU_ETH_MAX_FLEN (1518) #define NU_HWADDR_SIZE (6) #define NU_ETH_MTU_SIZE 1500 #endif /* ZEPHYR_DRIVERS_ETHERNET_...
/content/code_sandbox/drivers/ethernet/eth_numaker_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
93
```objective-c /* */ /** @file * @brief Atmel SAM MCU family Ethernet MAC (GMAC) driver. */ #ifndef ZEPHYR_DRIVERS_ETHERNET_ETH_SAM_GMAC_PRIV_H_ #define ZEPHYR_DRIVERS_ETHERNET_ETH_SAM_GMAC_PRIV_H_ #include <zephyr/types.h> #define ATMEL_OUI_B0 0x00 #define ATMEL_OUI_B1 0x04 #define ATMEL_OUI_B2 0x25 /* This op...
/content/code_sandbox/drivers/ethernet/eth_sam_gmac_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,497
```unknown # IVSHMEM Ethernet driver configuration options menuconfig ETH_IVSHMEM bool "Inter-VM shared memory Ethernet driver" select PCIE select VIRTUALIZATION select IVSHMEM_V2 select IVSHMEM_DOORBELL select OPENAMP help Enable Inter-VM Shared Memory Ethernet driver. Used for Ethernet communication be...
/content/code_sandbox/drivers/ethernet/Kconfig.ivshmem
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```c /* * */ /* SiLabs Giant Gecko GG11 Ethernet PHY driver. */ #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/net/mii.h> #include "phy_gecko.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(eth_gecko_phy, CONFIG_ETHERNET_LOG_LEVEL); /* Maximum time to establish a link through auto-negotiati...
/content/code_sandbox/drivers/ethernet/phy_gecko.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,002
```c /* * Driver for Synopsys DesignWare MAC * * */ #define LOG_MODULE_NAME dwmac_plat #define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #define DT_DRV_COMPAT snps_designware_ethernet #include <sys/types.h> #include <zephyr/kernel/mm.h> #include <z...
/content/code_sandbox/drivers/ethernet/eth_dwmac_mmu.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
692
```unknown # ETH_XMC4XXX Ethernet driver configuration options menuconfig ETH_XMC4XXX bool "XMC4XXX Ethernet driver" default y depends on DT_HAS_INFINEON_XMC4XXX_ETHERNET_ENABLED help Enable XMC4XXX Ethernet driver. if ETH_XMC4XXX config ETH_XMC4XXX_TX_FRAME_POOL_SIZE int "Number of TX frames in the pool si...
/content/code_sandbox/drivers/ethernet/Kconfig.xmc4xxx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
412
```unknown # Native posix ethernet driver configuration options menuconfig ETH_NATIVE_POSIX bool "Native Posix Ethernet driver" depends on ARCH_POSIX help Enable native posix ethernet driver. Note, this driver is run inside a process in your host system. if ETH_NATIVE_POSIX config ETH_NATIVE_POSIX_INTERFAC...
/content/code_sandbox/drivers/ethernet/Kconfig.native_posix
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
609
```objective-c /* ENC424J600 Stand-alone Ethernet Controller with SPI * * */ #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/spi.h> #ifndef _ENC424J600_ #define _ENC424J600_ /* Bank 0 Registers */ #define ENC424J600_SFR0_ETXSTL 0x00 #define ENC424J600_SFR0_ETXSTH 0x01 #def...
/content/code_sandbox/drivers/ethernet/eth_enc424j600_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,134
```c /* * */ #define DT_DRV_COMPAT microchip_lan865x #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(eth_lan865x, CONFIG_ETHERNET_LOG_LEVEL); #include <zephyr/net/ethernet.h> #include <zephyr/net/phy.h> #include <string.h> #include <errno.h> #include <zephyr/net/net_if.h> #include <zephyr/net/ethernet.h> #in...
/content/code_sandbox/drivers/ethernet/eth_lan865x.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,863
```c /* * */ #define DT_DRV_COMPAT litex_liteeth #define LOG_MODULE_NAME eth_litex_liteeth #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 <soc.h> #include <stdbool.h> #include <zephyr/...
/content/code_sandbox/drivers/ethernet/eth_litex_liteeth.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,621
```unknown # NXP PHY TJA1103 driver configuration options menuconfig PHY_TJA1103 bool "TJA1103 PHY driver" default y depends on DT_HAS_NXP_TJA1103_ENABLED depends on MDIO help Enable TJA1103 PHY driver. if PHY_TJA1103 config PHY_TJA1103_IRQ_THREAD_STACK_SIZE int "Stack size for a thread that processes TJA1...
/content/code_sandbox/drivers/ethernet/phy/Kconfig.tja1103
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
177
```c /* * * Inspiration from phy_mii.c, which is: * */ #define DT_DRV_COMPAT microchip_ksz8081 #include <zephyr/kernel.h> #include <zephyr/net/phy.h> #include <zephyr/net/mii.h> #include <zephyr/drivers/mdio.h> #include <string.h> #include <zephyr/sys/util_macro.h> #include <zephyr/drivers/gpio.h> #define LOG_MO...
/content/code_sandbox/drivers/ethernet/phy/phy_microchip_ksz8081.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,241
```c /* * */ #include <zephyr/logging/log.h> #if DT_NODE_HAS_STATUS(DT_INST(0, adi_adin2111_phy), okay) #define DT_DRV_COMPAT adi_adin2111_phy #else #define DT_DRV_COMPAT adi_adin1100_phy #endif LOG_MODULE_REGISTER(DT_DRV_COMPAT, CONFIG_PHY_LOG_LEVEL); #include <errno.h> #include <stdint.h> #include <stdbool.h> #...
/content/code_sandbox/drivers/ethernet/phy/phy_adin2111.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,225
```objective-c /* * */ #ifndef PHY_ADIN2111_PRIV_H__ #define PHY_ADIN2111_PRIV_H__ #include <zephyr/device.h> #include <zephyr/net/phy.h> /** * @brief Handles PHY interrupt. * * @note Used internally by the ADIN offloaded ISR handler. * The caller is responsible for device lock. * Shall not be cal...
/content/code_sandbox/drivers/ethernet/phy/phy_adin2111_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
174
```c /* * * Inspiration from phy_mii.c, which is: * */ #define DT_DRV_COMPAT qca_ar8031 #include <errno.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/drivers/mdio.h> #include <zephyr/net/phy.h> #include <zephyr/net/mdio.h> #include <zephyr/net/mii.h> #include ...
/content/code_sandbox/drivers/ethernet/phy/phy_qualcomm_ar8031.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,008
```unknown # Ethernet PHY drivers configuration options menuconfig ETH_PHY_DRIVER bool "Ethernet PHY drivers" default y if NET_L2_ETHERNET || ETH_DRIVER if ETH_PHY_DRIVER module = PHY module-dep = LOG module-str = Log level for Ethernet PHY driver module-help = Sets log level for Ethernet PHY Device Drivers. sour...
/content/code_sandbox/drivers/ethernet/phy/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
612
```c /* * * Inspiration from phy_mii.c, which is: * */ #define DT_DRV_COMPAT realtek_rtl8211f #include <zephyr/kernel.h> #include <zephyr/net/phy.h> #include <zephyr/net/mii.h> #include <zephyr/drivers/mdio.h> #include <string.h> #include <zephyr/sys/util_macro.h> #if DT_ANY_INST_HAS_PROP_STATUS_OKAY(reset_gpios)...
/content/code_sandbox/drivers/ethernet/phy/phy_realtek_rtl8211f.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,819
```c /* * */ #define DT_DRV_COMPAT ethernet_phy #include <errno.h> #include <zephyr/device.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/drivers/mdio.h> #include <zephyr/net/phy.h> #include <zephyr/net/mii.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(phy_mii, CONFIG_PHY_LOG_LEVE...
/content/code_sandbox/drivers/ethernet/phy/phy_mii.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,768
```c /* * */ #define DT_DRV_COMPAT nxp_tja1103 #include <errno.h> #include <stdint.h> #include <stdbool.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/sys/util.h> #include <zephyr/net/phy.h> #include <zephyr/net/mii.h> #include <zephyr/net/mdio.h> #include <zephyr/drivers/gpio.h> #include...
/content/code_sandbox/drivers/ethernet/phy/phy_tja1103.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,746
```unknown # NXP ENET ethernet drivers configuration options menu "NXP ENET" choice NXP_ENET_DRIVER prompt "NXP ENET Driver Version" default ETH_NXP_ENET if DT_HAS_NXP_ENET_MAC_ENABLED default ETH_MCUX if DT_HAS_NXP_KINETIS_ETHERNET_ENABLED depends on DT_HAS_NXP_ENET_MAC_ENABLED || DT_HAS_NXP_KINETIS_ETHERNET_EN...
/content/code_sandbox/drivers/ethernet/nxp_enet/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,326
```c /* NXP ENET MAC Driver * * * Inspiration from eth_mcux.c, which was: * */ #define DT_DRV_COMPAT nxp_enet_mac /* Set up logging module for this driver */ #define LOG_MODULE_NAME eth_nxp_enet_mac #define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); ...
/content/code_sandbox/drivers/ethernet/nxp_enet/eth_nxp_enet.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,540
```c /* * */ #define DT_DRV_COMPAT nxp_enet_qos_mac #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(eth_nxp_enet_qos_mac, CONFIG_ETHERNET_LOG_LEVEL); #include <zephyr/net/phy.h> #include <zephyr/kernel/thread_stack.h> #include <zephyr/sys_clock.h> #include <ethernet/eth_stats.h> #include "../eth.h" #include "n...
/content/code_sandbox/drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,025
```c /* NXP ENET QOS Ethernet MAC Driver * * */ #define DT_DRV_COMPAT nxp_enet_qos #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/ethernet/eth_nxp_enet_qos.h> int nxp_enet_qos_init(const struct device *dev) { const struct nxp_enet_qos_config *config = dev->config; int ret; /* TODO: once NXP rese...
/content/code_sandbox/drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
374
```objective-c /* NXP ENET QOS Header * * */ #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/sys/util.h> #include <zephyr/net/ethernet.h> #include <zephyr/drivers/ethernet/eth_nxp_enet_qos.h> /* shorthands */ #define NUM_TX_BUFDESC CONFIG_ETH_NXP_ENET_QOS_TX_BUFFER_DESCRIPTORS #define NUM_RX...
/content/code_sandbox/drivers/ethernet/eth_nxp_enet_qos/nxp_enet_qos_priv.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
724
```c /* MCUX Ethernet Driver * * */ #define DT_DRV_COMPAT nxp_kinetis_ethernet /* Driver Limitations: * * There is no statistics collection for either normal operation or * error behaviour. */ #define LOG_MODULE_NAME eth_mcux #define LOG_LEVEL CONFIG_ETHERNET_LOG_LEVEL #define RING_ID 0 #include <zephyr/logg...
/content/code_sandbox/drivers/ethernet/nxp_enet/eth_mcux.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
14,538
```unknown menuconfig ETH_NXP_ENET_QOS bool "NXP ENET QOS Ethernet Module Driver" default y depends on DT_HAS_NXP_ENET_QOS_ENABLED select MDIO if DT_HAS_NXP_ENET_QOS_MDIO_ENABLED help Enable NXP ENET Ethernet Module Driver. This driver handles IP module level tasks. if ETH_NXP_ENET_QOS config ETH_NXP_ENET...
/content/code_sandbox/drivers/ethernet/eth_nxp_enet_qos/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
415
```unknown config MIPI_DSI_MCUX bool "NXP MCUX MIPI-DSI Host Controller" default y depends on DT_HAS_NXP_IMX_MIPI_DSI_ENABLED help NXP MIPI DSI controller driver config MIPI_DSI_MCUX_2L bool "NXP MCUX MIPI-DSI 2L Controller" default y depends on DT_HAS_NXP_MIPI_DSI_2L_ENABLED help NXP MIPI DSI 2L contro...
/content/code_sandbox/drivers/mipi_dsi/Kconfig.mcux
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
284
```unknown config MIPI_DSI_STM32 bool "STM32 MIPI-DSI Host Controller" default y depends on DT_HAS_ST_STM32_MIPI_DSI_ENABLED depends on DT_HAS_ST_STM32_LTDC_ENABLED select USE_STM32_HAL_DSI help STM32 MIPI DSI controller driver ```
/content/code_sandbox/drivers/mipi_dsi/Kconfig.stm32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
75
```c /* * */ #include <errno.h> #include <zephyr/drivers/mipi_dsi.h> ssize_t mipi_dsi_generic_read(const struct device *dev, uint8_t channel, const void *params, size_t nparams, void *buf, size_t len) { struct mipi_dsi_msg msg = { .tx_len = nparams, .tx_buf = params, .rx_len = len, .rx_b...
/content/code_sandbox/drivers/mipi_dsi/mipi_dsi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
602
```c /* * based on dsi_mcux.c * */ #define DT_DRV_COMPAT st_stm32_mipi_dsi #include <zephyr/device.h> #include <zephyr/devicetree.h> #include <zephyr/sys/printk.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/clock_control/stm32_clock_control.h> #include <zephyr/drivers/gpio.h> #include <zeph...
/content/code_sandbox/drivers/mipi_dsi/dsi_stm32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,852
```unknown # Memory controller configuration options menuconfig MIPI_DSI bool "MIPI-DSI Host Controller drivers [EXPERIMENTAL]" select EXPERIMENTAL help Add support for MIPI-DSI host controllers if MIPI_DSI module = MIPI_DSI module-str = mipi_dsi source "subsys/logging/Kconfig.template.log_config" config MIP...
/content/code_sandbox/drivers/mipi_dsi/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
138
```c /* * */ /* Based on dsi_mcux.c, which is (c) 2022 NXP */ #define DT_DRV_COMPAT nxp_mipi_dsi_2l #include <zephyr/kernel.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/mipi_dsi.h> #include <zephyr/drivers/mipi_dsi/mipi_dsi_mcux_2l.h> #include <zephyr/drivers/dma.h> #include <zephyr/drive...
/content/code_sandbox/drivers/mipi_dsi/dsi_mcux_2l.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,189
```unknown # Organisation (CSIRO) ABN 41 687 119 230. # # Hidden option for turning on the dummy driver for vnd,i3c devices # used in testing. config I3C_TEST def_bool DT_HAS_VND_I3C_ENABLED depends on DT_HAS_VND_I3C_ENABLED ```
/content/code_sandbox/drivers/i3c/Kconfig.test
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
70
```c /* * */ #define DT_DRV_COMPAT nxp_imx_mipi_dsi #include <zephyr/drivers/mipi_dsi.h> #include <fsl_mipi_dsi.h> #include <fsl_clock.h> #include <zephyr/logging/log.h> #include <soc.h> LOG_MODULE_REGISTER(dsi_mcux, CONFIG_MIPI_DSI_LOG_LEVEL); #define MIPI_DPHY_REF_CLK DT_INST_PROP(0, dphy_ref_frequency) /* Ma...
/content/code_sandbox/drivers/mipi_dsi/dsi_mcux.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,593
```c /* * */ #include <string.h> #include <zephyr/toolchain.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/__assert.h> #include <zephyr/drivers/i3c.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(i3c, CONFIG_I3C_LOG_LEVEL); int i3c_ccc_do_getbcr(struct i3c_device_desc *target, struct i3c...
/content/code_sandbox/drivers/i3c/i3c_ccc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,804
```unknown # DT_COMPAT_NXP_MCUX_I3C := nxp,mcux-i3c module = I3C_MCUX module-str = i3c-mcux source "subsys/logging/Kconfig.template.log_config" config I3C_MCUX bool "MCUX I3C driver" depends on HAS_MCUX depends on DT_HAS_NXP_MCUX_I3C_ENABLED select PINCTRL select I3C_IBI_WORKQUEUE if I3C_USE_IBI default y hel...
/content/code_sandbox/drivers/i3c/Kconfig.nxp
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
121
```c /* * */ #include <string.h> #include <zephyr/toolchain.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/slist.h> #include <zephyr/drivers/i3c.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(i3c, CONFIG_I3C_LOG_LEVEL); void i3c_dump_msgs(const char *name, const struct i3c_msg *msgs, uint8...
/content/code_sandbox/drivers/i3c/i3c_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,996
```unknown # module = I3C_CADENCE module-str = i3c-cadence source "subsys/logging/Kconfig.template.log_config" config I3C_CADENCE bool "Cadence I3C driver" select I3C_IBI_WORKQUEUE if I3C_USE_IBI depends on DT_HAS_CDNS_I3C_ENABLED default y help Enable Cadence I3C driver. ```
/content/code_sandbox/drivers/i3c/Kconfig.cdns
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
91
```c /* * */ /* * This is not a real I3C driver. It is used to instantiate struct * devices for the "vnd,i3c" devicetree compatible used in test code. */ #define DT_DRV_COMPAT vnd_i3c #include <zephyr/drivers/i3c.h> #include <zephyr/device.h> #include <zephyr/kernel.h> static int vnd_i3c_configure(const struct...
/content/code_sandbox/drivers/i3c/i3c_test.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
294
```c /* * */ #include <zephyr/drivers/i3c.h> #include <zephyr/shell/shell.h> #include <stdlib.h> #include <string.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/util.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(i3c_shell, CONFIG_LOG_DEFAULT_LEVEL); #define MAX_BYTES_FOR_REGISTER_INDEX 4 #defin...
/content/code_sandbox/drivers/i3c/i3c_shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
15,628
```c /* * */ #include <zephyr/drivers/i3c.h> #include <string.h> #include <zephyr/internal/syscall_handler.h> static inline int z_vrfy_i3c_do_ccc(const struct device *dev, struct i3c_ccc_payload *payload) { K_OOPS(K_SYSCALL_DRIVER_I3C(dev, do_ccc)); K_OOPS(K_SYSCALL_MEMORY_READ(payload, sizeof(*payload)))...
/content/code_sandbox/drivers/i3c/i3c_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
696
```unknown # NPCX I3C driver configuration options DT_I3C_NPCX := $(dt_nodelabel_path,i3c0) config I3C_NPCX bool "Nuvoton NPCX embedded controller (EC) I3C driver" depends on DT_HAS_NUVOTON_NPCX_I3C_ENABLED select RESET select I3C_IBI_WORKQUEUE if I3C_USE_IBI default y help This option enables the I3C drive...
/content/code_sandbox/drivers/i3c/Kconfig.npcx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
333
```unknown # I3C configuration options # # menuconfig I3C bool "Improved Inter-Integrated Circuit (I3C) bus drivers" help Enable I3C Driver Configuration if I3C module = I3C module-str = i3c source "subsys/logging/Kconfig.template.log_config" config I3C_SHELL bool "I3C Shell" depends on SHELL help Enable...
/content/code_sandbox/drivers/i3c/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
702
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/init.h> #include <zephyr/drivers/i3c.h> #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(i3c, CONFIG_I3C_LOG_LEVEL); /* Statically allocated array of IBI work item nodes */ static struct i3c_ibi_work i3c_ibi_work_nodes[CONFIG_I3C_IBI_WORKQUEUE_LENGTH]; st...
/content/code_sandbox/drivers/i3c/i3c_ibi_workq.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,648
```c /* * */ /*132*/ #define DT_DRV_COMPAT nuvoton_npcx_i3c #include <string.h> #include <zephyr/device.h> #include <zephyr/irq.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/sys_io.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/i3c.h> #include <zephyr/drivers/pinctrl.h> #include <...
/content/code_sandbox/drivers/i3c/i3c_npcx.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
19,073
```c /* * */ #define DT_DRV_COMPAT nxp_mcux_i3c #include <string.h> #include <zephyr/device.h> #include <zephyr/irq.h> #include <zephyr/sys/__assert.h> #include <zephyr/sys/sys_io.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/i3c.h> #include <zephyr/drivers/pinctrl.h> /* * This is from ...
/content/code_sandbox/drivers/i3c/i3c_mcux.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
17,273
```c /* * an affiliate of Cypress Semiconductor Corporation * * */ /** * @brief SDIO driver for Infineon CAT1 MCU family. * * This driver support only SDIO protocol of the SD interface for general * I/O functions. * * Refer to the SD Specifications Part 1 SDIO Specifications Version 4.10 for more * informat...
/content/code_sandbox/drivers/sdhc/ifx_cat1_sdio.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,757
```c /* * */ #define DT_DRV_COMPAT cdns_sdhc #include <zephyr/drivers/sdhc.h> #include <zephyr/logging/log.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/reset.h> #include "sdhc_cdns_ll.h" #define SDHC_CDNS_DESC_SIZE (1<<20) #define COMBOPHY_ADDR_MASK 0x0000FFFFU #define DEV_CFG(_dev) ((co...
/content/code_sandbox/drivers/sdhc/sdhc_cdns.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,487
```objective-c /* * */ #ifndef __RCAR_MMC_REGISTERS_H__ #define __RCAR_MMC_REGISTERS_H__ #include <zephyr/sys/util_macro.h> /* for BIT macro */ /* * The command type register is used to select the command type * and response type */ #define RCAR_MMC_CMD 0x000 /* command */ #define RCAR_MMC_CMD_NOSTOP BIT(14)...
/content/code_sandbox/drivers/sdhc/rcar_mmc_registers.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,837
```c /* */ #include <stddef.h> #include "sdhc_cdns_ll.h" #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(sdhc_cdns_ll, CONFIG_SDHC_LOG_LEVEL); /* card busy and present */ #define CARD_BUSY 1 #define CARD_NOT_BUSY 0 #define CARD_PRESENT 1 /* SRS12 error mask */ #define CDNS_SRS12_ERR_MASK 0xFFFF8000U #d...
/content/code_sandbox/drivers/sdhc/sdhc_cdns_ll.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,781
```unknown config SAM_HSMCI bool "ATMEL SAM HSMCI driver" default y depends on DT_HAS_ATMEL_SAM_HSMCI_ENABLED select SDHC_SUPPORTS_NATIVE_MODE help Enable the ATMEL SAM HSMCI MMC/SD card driver. if SAM_HSMCI config SAM_HSMCI_PDCMODE bool "Use PDC if available" default y if SOC_SERIES_SAM4E help Use per...
/content/code_sandbox/drivers/sdhc/Kconfig.sam_hsmci
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
231
```unknown config SDHC_ESP32 bool "ESP32 SDHC Driver" default y depends on DT_HAS_ESPRESSIF_ESP32_SDHC_SLOT_ENABLED select SDHC_SUPPORTS_NATIVE_MODE select PINCTRL help Enables the ESP32 SD Host controller driver if SDHC_ESP32 # ESP32 DMA needs 32 bit aligned buffers config SDHC_BUFFER_ALIGNMENT default 4 ...
/content/code_sandbox/drivers/sdhc/Kconfig.esp32
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
90
```unknown config RCAR_MMC bool "Renesas Rcar MMC driver" default y depends on DT_HAS_RENESAS_RCAR_MMC_ENABLED select SDHC_SUPPORTS_NATIVE_MODE select REGULATOR select GPIO select SDHC_SUPPORTS_UHS if SDMMC_STACK help Renesas Rcar MMC driver. if RCAR_MMC config RCAR_MMC_DMA_SUPPORT bool "Internal DMA sup...
/content/code_sandbox/drivers/sdhc/Kconfig.rcar
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
228
```c /* * */ #define DT_DRV_COMPAT nxp_imx_usdhc #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/sdhc.h> #include <zephyr/sd/sd_spec.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/drivers/gpio.h> #include <zephyr/logging/log.h> #include <soc.h> #include <zephyr/dri...
/content/code_sandbox/drivers/sdhc/imx_usdhc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
9,888
```unknown config INTEL_EMMC_HOST bool "EMMC driver" select SDHC_SUPPORTS_NATIVE_MODE select EVENTS default y depends on DT_HAS_INTEL_EMMC_HOST_ENABLED help EMMC driver support. Though this driver can be easily port to any HW which is complaint to eMMC spec, currently it is only validated using intel's ...
/content/code_sandbox/drivers/sdhc/Kconfig.intel
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
328
```c /* * */ #include <errno.h> #include <zephyr/drivers/i3c.h> #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/logging/log.h> #include <zephyr/sys/byteorder.h> #include <zephyr/sys/sys_io.h> #include <zephyr/sys/util.h> #define DEV_ID 0x0 #define DEV_ID_I3C_MASTER 0x5034 #define C...
/content/code_sandbox/drivers/i3c/i3c_cdns.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31,568
```unknown config CDNS_SDHC bool "CDNS SDHC" default y depends on DT_HAS_CDNS_SDHC_ENABLED select SDHC_SUPPORTS_NATIVE_MODE help Enable Cadence SDMMC Host Controller. if CDNS_SDHC # Cadence SDHC DMA needs 64 bit aligned buffers config SDHC_BUFFER_ALIGNMENT default 8 config CDNS_DESC_COUNT int "Allocate num...
/content/code_sandbox/drivers/sdhc/Kconfig.sdhc_cdns
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
156
```unknown config SPI_SDHC bool "SD protocol over SPI bus" default y depends on DT_HAS_ZEPHYR_SDHC_SPI_SLOT_ENABLED select SPI select CRC select SDHC_SUPPORTS_SPI_MODE help Enable the SPI SD host controller driver ```
/content/code_sandbox/drivers/sdhc/Kconfig.spi
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
58
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_DISK_EMMC_HOST_H_ #define ZEPHYR_DRIVERS_DISK_EMMC_HOST_H_ /* Bit map for command Register */ #define EMMC_HOST_CMD_RESP_TYPE_LOC 0 #define EMMC_HOST_CMD_CRC_CHECK_EN_LOC 3 #define EMMC_HOST_CMD_IDX_CHECK_EN_LOC 4 #define EMMC_HOST_CMD_DATA_PRESENT_LOC 5 #define EMMC...
/content/code_sandbox/drivers/sdhc/intel_emmc_host.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,231
```c /* * */ #define DT_DRV_COMPAT atmel_sam_hsmci #include <zephyr/drivers/sdhc.h> #include <zephyr/drivers/gpio.h> #include <zephyr/devicetree.h> #include <zephyr/logging/log.h> #include <zephyr/kernel.h> #include <soc.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/clock_control.h> #include <zeph...
/content/code_sandbox/drivers/sdhc/sam_hsmci.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,160
```c /* * */ #define DT_DRV_COMPAT zephyr_sdhc_spi_slot #include <zephyr/drivers/sdhc.h> #include <zephyr/drivers/gpio.h> #include <zephyr/logging/log.h> #include <zephyr/sys/byteorder.h> #include <zephyr/drivers/spi.h> #include <zephyr/sys/crc.h> LOG_MODULE_REGISTER(sdhc_spi, CONFIG_SDHC_LOG_LEVEL); #define MA...
/content/code_sandbox/drivers/sdhc/sdhc_spi.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
8,313
```unknown config MCUX_SDIF bool "NXP MCUX SDIF Driver" default y depends on DT_HAS_NXP_LPC_SDIF_ENABLED select SDHC_SUPPORTS_NATIVE_MODE select PINCTRL help Enable the NXP SDIF Host controller driver if MCUX_SDIF config MCUX_SDIF_DMA_SUPPORT bool "DMA support for MCUX SDIF driver" default y help Enab...
/content/code_sandbox/drivers/sdhc/Kconfig.mcux_sdif
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
194
```objective-c /* * */ #define SDMMC_FREQ_DEFAULT 20000 /*!< SD/MMC Default speed (limited by clock divider) */ #define SDMMC_FREQ_HIGHSPEED 40000 /*!< SD High speed (limited by clock divider) */ #define SDMMC_FREQ_PROBING 400 /*!< SD/MMC probing speed */ #define SDMMC_FREQ_52M 52000 /*!< MMC 52MHz speed...
/content/code_sandbox/drivers/sdhc/sdhc_esp32.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,197
```c /* * */ #define DT_DRV_COMPAT espressif_esp32_sdhc_slot #include <zephyr/kernel.h> #include <zephyr/drivers/sdhc.h> #include <zephyr/drivers/gpio.h> #include <zephyr/logging/log.h> #include <soc.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/clock_control.h> /* ESP32 includes */ #include <esp...
/content/code_sandbox/drivers/sdhc/sdhc_esp32.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
12,208
```objective-c /* */ #include <zephyr/cache.h> #include <zephyr/drivers/sdhc.h> /* HRS09 */ #define CDNS_HRS09_PHY_SW_RESET BIT(0) #define CDNS_HRS09_PHY_INIT_COMP BIT(1) #define CDNS_HRS09_EXT_WR_MODE BIT(3) #define CDNS_HRS09_RDCMD_EN_BIT BIT(15) #define CDNS_HRS09_RDDATA_EN_BIT BIT(16) #define CDNS_HRS09_EXT_R...
/content/code_sandbox/drivers/sdhc/sdhc_cdns_ll.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
5,070
```c /* * */ #define DT_DRV_COMPAT nxp_lpc_sdif #include <zephyr/drivers/sdhc.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/drivers/clock_control.h> #include <zephyr/logging/log.h> #include <zephyr/irq.h> #include <zephyr/kernel.h> #include <fsl_sdif.h> LOG_MODULE_REGISTER(...
/content/code_sandbox/drivers/sdhc/mcux_sdif.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,776
```c /* * */ #define DT_DRV_COMPAT renesas_rcar_mmc #include <zephyr/devicetree.h> #include <zephyr/drivers/disk.h> #include <zephyr/drivers/sdhc.h> #include <zephyr/drivers/clock_control/renesas_cpg_mssr.h> #include <zephyr/drivers/pinctrl.h> #include <zephyr/logging/log.h> #include <zephyr/cache.h> #include <zeph...
/content/code_sandbox/drivers/sdhc/rcar_mmc.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
20,145
```unknown config IMX_USDHC bool "NXP IMX USDHC Driver" default y depends on DT_HAS_NXP_IMX_USDHC_ENABLED select SDHC_SUPPORTS_UHS select SDHC_SUPPORTS_NATIVE_MODE select PINCTRL help Enable the NXP IMX SD Host controller driver if IMX_USDHC config IMX_USDHC_DAT3_PWR_TOGGLE bool "Toggle power when pulling...
/content/code_sandbox/drivers/sdhc/Kconfig.imx
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
243
```unknown menuconfig SDHC bool "Secure Digital High Capacity (SDHC) drivers" help Include drivers for SD host controller if SDHC source "drivers/sdhc/Kconfig.ifx_cat1" source "drivers/sdhc/Kconfig.imx" source "drivers/sdhc/Kconfig.spi" source "drivers/sdhc/Kconfig.mcux_sdif" source "drivers/sdhc/Kconfig.rcar" ...
/content/code_sandbox/drivers/sdhc/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
363
```unknown # Infineon CAT1 SDHC configuration options # an affiliate of Cypress Semiconductor Corporation # config SDHC_INFINEON_CAT1 bool "Infineon CAT1 SDHC driver" default y depends on DT_HAS_INFINEON_CAT1_SDHC_SDIO_ENABLED select USE_INFINEON_SDIO select SDHC_SUPPORTS_NATIVE_MODE help This option enables...
/content/code_sandbox/drivers/sdhc/Kconfig.ifx_cat1
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
115
```c /* * */ #define DT_DRV_COMPAT intel_emmc_host #include <zephyr/kernel.h> #include <zephyr/devicetree.h> #include <zephyr/drivers/sdhc.h> #include <zephyr/sd/sd_spec.h> #include <zephyr/cache.h> #include "intel_emmc_host.h" #if DT_ANY_INST_ON_BUS_STATUS_OKAY(pcie) BUILD_ASSERT(IS_ENABLED(CONFIG_PCIE), "DT need ...
/content/code_sandbox/drivers/sdhc/intel_emmc_host.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
11,056
```c /* * */ /** * @file * @brief Module for tracking page use within memory banks * * The memory management drivers may use the routines within this module * to track page use within their memory banks. This information in turn * could be leveraged by them to determine when to power them on or off to * bette...
/content/code_sandbox/drivers/mm/mm_drv_bank.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
374
```objective-c /* * */ /** * @file * @brief Header for agregating all defines for mm * */ #ifndef ZEPHYR_DRIVERS_SYSTEM_MM_DRV_INTEL_MTL_ #define ZEPHYR_DRIVERS_SYSTEM_MM_DRV_INTEL_MTL_ #define DT_DRV_COMPAT intel_adsp_mtl_tlb #include <zephyr/device.h> #include <zephyr/kernel.h> #include <zephyr/spinlock.h> #...
/content/code_sandbox/drivers/mm/mm_drv_intel_adsp.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
714
```c /* * */ /** * @file * @brief Driver to utilize TLB on Intel Audio DSP * * TLB (Translation Lookup Buffer) table is used to map between * physical and virtual memory. This is global to all cores * on the DSP, as changes to the TLB table are visible to * all cores. * * Note that all passed in addresses s...
/content/code_sandbox/drivers/mm/mm_drv_intel_adsp_mtl_tlb.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
6,570
```c /* * */ /** * @file * @brief Driver to utilize TLB on Intel Audio DSP * * TLB (Translation Lookup Buffer) table is used to map between * physical and virtual memory. This is global to all cores * on the DSP, as changes to the TLB table are visible to * all cores. * * Note that all passed in addresses s...
/content/code_sandbox/drivers/mm/mm_drv_intel_adsp_tlb.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,176
```c /* * */ /** * @file * @brief Driver handling memory regions related * functions */ #include "mm_drv_intel_adsp.h" struct sys_mm_drv_region virtual_memory_regions[CONFIG_MP_MAX_NUM_CPUS + VIRTUAL_REGION_COUNT] = { {0} }; const struct sys_mm_drv_region *sys_mm_drv_query_memory_regions(void) { return (cons...
/content/code_sandbox/drivers/mm/mm_drv_intel_adsp_regions.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
409
```c /* * */ /** * @file * @brief Driver handling Region based Address Translation (RAT) * related functions * * RAT is a module that is used by certain Texas Instruments SoCs * to allow some cores with a 32 bit address space to access * the full 48 bit SoC address space. This is required for the * core to b...
/content/code_sandbox/drivers/mm/mm_drv_ti_rat.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,066
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_SYSTEM_MM_DRV_COMMON_H_ #define ZEPHYR_DRIVERS_SYSTEM_MM_DRV_COMMON_H_ #include <zephyr/kernel.h> #include <zephyr/toolchain.h> #include <zephyr/drivers/mm/system_mm.h> extern struct k_spinlock sys_mm_drv_common_lock; /** * @brief Get the flags of mapped virtual add...
/content/code_sandbox/drivers/mm/mm_drv_common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,421
```unknown # menuconfig MM_DRV bool "Memory Management drivers [EXPERIMENTAL]" select EXPERIMENTAL select KERNEL_VM_SUPPORT help Include Memory Management drivers in system config if MM_DRV config MM_DRV_PAGE_SIZE hex "Memory Page Size" default 0x1000 help Size of memory pages. config MM_DRV_INTEL_ADSP...
/content/code_sandbox/drivers/mm/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
410
```unknown # config CACHE_ASPEED bool "ASPEED external cache driver" depends on SOC_SERIES_AST10X0 depends on SYSCON select CACHE_HAS_DRIVER help This option enables the CACHE driver for ASPEED AST10X0 series SOC. ```
/content/code_sandbox/drivers/cache/Kconfig.aspeed
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```c /* * */ #include <zephyr/cache.h> #include <zephyr/internal/syscall_handler.h> static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size) { K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size)); return z_impl_sys_cache_data_flush_range(addr, size); } #include <zephyr/syscalls/sys_cache_data_flush_ran...
/content/code_sandbox/drivers/cache/cache_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
221
```c /* * */ /** * @file * @brief Common Memory Management Driver Code * * This file provides common implementation of memory management driver * functions, for example, sys_mm_drv_map_region() can use * sys_mm_drv_map_page() to map page by page for the whole region. * This avoids duplicate implementations of...
/content/code_sandbox/drivers/mm/mm_drv_common.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,268
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_CACHE_CACHE_ANDES_L2_H_ #define ZEPHYR_DRIVERS_CACHE_CACHE_ANDES_L2_H_ #include <zephyr/kernel.h> #include <zephyr/arch/cpu.h> #include <zephyr/drivers/syscon.h> #define L2C_BASE DT_REG_ADDR_BY_IDX(DT_INST(0, andestech_l2c), 0) /* L2 cache Register Offset */ #define ...
/content/code_sandbox/drivers/cache/cache_andes_l2.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,158
```unknown # DT_COMPAT_ANDESTECH_L2C := andestech,l2c config CACHE_ANDES bool "ANDES external cache driver" default y depends on SOC_FAMILY_ANDES_V5 select CACHE_HAS_DRIVER imply DCACHE_LINE_SIZE_DETECT imply ICACHE_LINE_SIZE_DETECT help This option enables the CACHE driver for ANDES V5 series SOC. if CACHE...
/content/code_sandbox/drivers/cache/Kconfig.andes
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
200
```unknown config CACHE_NRF_CACHE bool "nRF cache driver" select CACHE_HAS_DRIVER depends on HAS_NRFX && CACHE_MANAGEMENT help Enable support for the nRF cache driver. config CACHE_NRF_PATCH_LINEADDR bool "Patch lineaddr" default y if SOC_NRF54H20 help Manually set 28th bit in the LINEADDR in Trustzone S...
/content/code_sandbox/drivers/cache/Kconfig.nrf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
87
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/syscon.h> #include <zephyr/sys/barrier.h> /* * cache area control: each bit controls 32KB cache area * 1: cacheable * 0: no-cache * * bit[0]: 1st 32KB from 0x0000_0000 to 0x0000_7fff * bit[1]: 2nd 32KB from 0x0000_8000 to 0x0000_ffff * ... * b...
/content/code_sandbox/drivers/cache/cache_aspeed.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,181
```c /* * */ #include <zephyr/kernel.h> #include <zephyr/drivers/cache.h> #include <hal/nrf_cache.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(cache_nrfx, CONFIG_CACHE_LOG_LEVEL); #if !defined(NRF_ICACHE) && defined(NRF_CACHE) #define NRF_ICACHE NRF_CACHE #endif #define CACHE_BUSY_RETRY_INTERVAL_US 10 ...
/content/code_sandbox/drivers/cache/cache_nrf.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,916
```unknown menuconfig CACHE bool "External cache controller drivers" default y if CACHE_MANAGEMENT help Enable support for external cache controllers drivers if CACHE config CACHE_HAS_DRIVER bool module = CACHE module-str = cache source "subsys/logging/Kconfig.template.log_config" comment "Device Drivers" ...
/content/code_sandbox/drivers/cache/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
97
```c /* * */ #include <zephyr/shell/shell.h> #include <stdlib.h> #include <zephyr/drivers/virtualization/ivshmem.h> static const struct device *ivshmem = DEVICE_DT_GET_ONE(qemu_ivshmem); #ifdef CONFIG_IVSHMEM_DOORBELL #define STACK_SIZE 512 static struct k_poll_signal doorbell_sig = K_POLL_SIGNAL_INITIALIZER(doo...
/content/code_sandbox/drivers/virtualization/virt_ivshmem_shell.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,411
```c /* * */ #include "soc_v5.h" #include <zephyr/init.h> #include <zephyr/kernel.h> #include <zephyr/arch/riscv/csr.h> #include <zephyr/drivers/cache.h> #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(cache_andes, CONFIG_CACHE_LOG_LEVEL); /* L1 CCTL Command */ #define CCTL_L1D_VA_INVAL 0 #define CCTL_L1D_VA_...
/content/code_sandbox/drivers/cache/cache_andes.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
4,107
```objective-c /* * */ #ifndef ZEPHYR_DRIVERS_VIRTUALIZATION_VIRT_IVSHMEM_H_ #define ZEPHYR_DRIVERS_VIRTUALIZATION_VIRT_IVSHMEM_H_ #include <zephyr/drivers/pcie/pcie.h> #ifdef CONFIG_IVSHMEM_DOORBELL #include <zephyr/drivers/pcie/msi.h> #endif #define PCIE_CONF_CMDSTAT_INTX_DISABLE 0x0400 #define PCIE_CONF_INTR_P...
/content/code_sandbox/drivers/virtualization/virt_ivshmem.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
656
```c /* * */ #include <zephyr/drivers/virtualization/ivshmem.h> #include <zephyr/internal/syscall_handler.h> #include <string.h> static inline size_t z_vrfy_ivshmem_get_mem(const struct device *dev, uintptr_t *memmap) { K_OOPS(K_SYSCALL_DRIVER_IVSHMEM(dev, get_mem)); K_OOPS(K_SYSCALL_MEMORY_WRITE(memmap,...
/content/code_sandbox/drivers/virtualization/virt_ivshmem_handlers.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
999
```unknown # Virtualization drivers configuration options menuconfig VIRTUALIZATION bool "Virtualization guest drivers" help This contains various drivers meant to support and expose features when Zephyr is running as a guest in a virtualized or emulated environment. if VIRTUALIZATION config IVSHMEM boo...
/content/code_sandbox/drivers/virtualization/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
524
```unknown # SAM CAN configuration options config CAN_SAM bool "Atmel SAM CAN driver" default y depends on DT_HAS_ATMEL_SAM_CAN_ENABLED select CAN_MCAN ```
/content/code_sandbox/drivers/can/Kconfig.sam
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41