|
| NO_OS_DECLARE_CRC8_TABLE (_crc_table) |
|
int | adin1110_reg_write (struct adin1110_desc *desc, uint16_t addr, uint32_t data) |
| Write a register's value. More...
|
|
int | adin1110_reg_read (struct adin1110_desc *desc, uint16_t addr, uint32_t *data) |
| Read a register's value. More...
|
|
int | adin1110_reg_update (struct adin1110_desc *desc, uint16_t addr, uint32_t mask, uint32_t data) |
| Update a register's value based on a mask. More...
|
|
int | adin1110_mdio_read (struct adin1110_desc *desc, uint32_t phy_id, uint32_t reg, uint16_t *data) |
| Read a PHY register using clause 22. More...
|
|
int | adin1110_mdio_write (struct adin1110_desc *desc, uint32_t phy_id, uint32_t reg, uint16_t data) |
| Write a PHY register using clause 22. More...
|
|
int | adin1110_mdio_write_c45 (struct adin1110_desc *desc, uint32_t phy_id, uint32_t dev_id, uint32_t reg, uint16_t data) |
| Write a PHY register using clause 45. More...
|
|
int | adin1110_mdio_read_c45 (struct adin1110_desc *desc, uint32_t phy_id, uint32_t dev_id, uint16_t reg, uint16_t *data) |
| Read a PHY register using clause 45. More...
|
|
int | adin1110_set_mac_addr (struct adin1110_desc *desc, uint8_t mac_address[ADIN1110_ETH_ALEN]) |
| Set a MAC address destination filter, frames who's DA doesn't match are dropped. More...
|
|
int | adin1110_clear_mac_addr (struct adin1110_desc *desc, uint8_t mac_address[ADIN1110_ETH_ALEN]) |
| Drop a MAC address filter. More...
|
|
int | adin1110_broadcast_filter (struct adin1110_desc *desc, bool enabled) |
| Set/clear a broadcast filter. By enabling this, broadcast frames will be forwarded to the host. More...
|
|
int | adin1110_write_fifo (struct adin1110_desc *desc, uint32_t port, struct adin1110_eth_buff *eth_buff) |
| Write a frame to the TX FIFO. More...
|
|
int | adin1110_read_fifo (struct adin1110_desc *desc, uint32_t port, struct adin1110_eth_buff *eth_buff) |
| Read a frame from the RX FIFO. More...
|
|
int | adin1110_mac_reset (struct adin1110_desc *desc) |
| Reset the MAC device. More...
|
|
int | adin1110_phy_reset (struct adin1110_desc *desc) |
| Reset the PHY device. More...
|
|
int | adin1110_sw_reset (struct adin1110_desc *desc) |
| Reset both the MAC and PHY. More...
|
|
int | adin1110_link_state (struct adin1110_desc *desc, uint32_t *state) |
| Reset both the MAC and PHY. More...
|
|
int | adin1110_set_promisc (struct adin1110_desc *desc, uint32_t port, bool promisc) |
| Set a port in promiscuous mode. All MAC filters are dropped. More...
|
|
int | adin1110_init (struct adin1110_desc **desc, struct adin1110_init_param *param) |
| Initialize the device. More...
|
|
int | adin1110_remove (struct adin1110_desc *desc) |
| Free a device descriptor. More...
|
|
Source file of the ADIN1110 driver.
- Author
- Ciprian Regus (cipri.nosp@m.an.r.nosp@m.egus@.nosp@m.anal.nosp@m.og.co.nosp@m.m)
Copyright 2023(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
- Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.