Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
eth_adin2111.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 PHOENIX CONTACT Electronics GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_ETH_ADIN2111_H__
14#define ZEPHYR_INCLUDE_DRIVERS_ETH_ADIN2111_H__
15
16#include <stdint.h>
17#include <zephyr/kernel.h>
18#include <zephyr/device.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
36int eth_adin2111_lock(const struct device *dev, k_timeout_t timeout);
37
47int eth_adin2111_unlock(const struct device *dev);
48
60int eth_adin2111_sw_reset(const struct device *dev, uint16_t delay);
61
73int eth_adin2111_mac_reset(const struct device *dev);
74
87int eth_adin2111_broadcast_filter(const struct device *dev, bool enable);
88
97struct net_if *eth_adin2111_get_iface(const struct device *dev, const uint16_t port_idx);
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* ZEPHYR_INCLUDE_DRIVERS_ETH_ADIN2111_H__ */
int eth_adin2111_sw_reset(const struct device *dev, uint16_t delay)
Reset both the MAC and PHY.
int eth_adin2111_lock(const struct device *dev, k_timeout_t timeout)
Locks device access.
int eth_adin2111_unlock(const struct device *dev)
Unlocks device access.
struct net_if * eth_adin2111_get_iface(const struct device *dev, const uint16_t port_idx)
Get the port-related net_if reference.
int eth_adin2111_broadcast_filter(const struct device *dev, bool enable)
Enable/disable the forwarding (to host) of broadcast frames.
int eth_adin2111_mac_reset(const struct device *dev)
Reset the MAC device.
Public kernel APIs.
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:513
Kernel timeout type.
Definition clock.h:65
Network Interface structure.
Definition net_if.h:764