D | eth_lan9250.c | 1 /* LAN9250 Stand-alone Ethernet Controller with SPI 5 * SPDX-License-Identifier: Apache-2.0 26 const struct lan9250_config *config = dev->config; in lan9250_write_sys_reg() 43 return spi_write_dt(&config->spi, &tx); in lan9250_write_sys_reg() 48 const struct lan9250_config *config = dev->config; in lan9250_read_sys_reg() 72 return spi_transceive_dt(&config->spi, &tx, &rx); in lan9250_read_sys_reg() 75 static int lan9250_wait_ready(const struct device *dev, uint16_t address, uint32_t mask, in lan9250_wait_ready() argument 85 if ((tmp & mask) == expected) { in lan9250_wait_ready() 89 return -EIO; in lan9250_wait_ready() 128 static int lan9250_wait_mac_ready(const struct device *dev, uint8_t address, uint32_t mask, in lan9250_wait_mac_ready() argument [all …]
|