Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
eth_lan865x.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_ETH_LAN865X_H__
8#define ZEPHYR_INCLUDE_DRIVERS_ETH_LAN865X_H__
9
10#include <stdint.h>
11#include <zephyr/kernel.h>
12#include <zephyr/device.h>
13
30int eth_lan865x_mdio_c22_read(const struct device *dev, uint8_t prtad, uint8_t regad,
31 uint16_t *data);
32
49int eth_lan865x_mdio_c22_write(const struct device *dev, uint8_t prtad, uint8_t regad,
50 uint16_t data);
51
69int eth_lan865x_mdio_c45_read(const struct device *dev, uint8_t prtad, uint8_t devad,
70 uint16_t regad, uint16_t *data);
71
89int eth_lan865x_mdio_c45_write(const struct device *dev, uint8_t prtad, uint8_t devad,
90 uint16_t regad, uint16_t data);
91
92#endif /* ZEPHYR_INCLUDE_DRIVERS_ETH_LAN865X_H__ */
int eth_lan865x_mdio_c45_write(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t data)
Write C45 registers using LAN865X MDIO Bus.
int eth_lan865x_mdio_c22_read(const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t *data)
Read C22 registers using LAN865X MDIO Bus.
int eth_lan865x_mdio_c45_read(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t regad, uint16_t *data)
Read C45 registers using LAN865X MDIO Bus.
int eth_lan865x_mdio_c22_write(const struct device *dev, uint8_t prtad, uint8_t regad, uint16_t data)
Write C22 registers using LAN865X MDIO Bus.
Public kernel APIs.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:411