no-OS
Loading...
Searching...
No Matches
mdio_spi.c File Reference

Source file for MDIO implementation. More...

#include <errno.h>
#include "no_os_alloc.h"
#include "mdio_spi.h"
Include dependency graph for mdio_spi.c:

Classes

struct  mdio_spi_extra
 Extra data specific to the MDIO SPI implementation. More...
 

Functions

int mdio_spi_init (struct no_os_mdio_desc **dev, const struct no_os_mdio_init_param *ip)
 Initialize the MDIO SPI Interface.
 

Variables

struct no_os_mdio_ops mdio_spi_ops
 

Detailed Description

Source file for MDIO implementation.

Author
Johnson Ralph Perez (Johns.nosp@m.onra.nosp@m.lph.P.nosp@m.erez.nosp@m.@anal.nosp@m.og.c.nosp@m.om)

Copyright 2026(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.
  3. 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.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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.

Function Documentation

◆ mdio_spi_init()

int mdio_spi_init ( struct no_os_mdio_desc ** dev,
const struct no_os_mdio_init_param * ip )

Initialize the MDIO SPI Interface.

Parameters
dev- The MDIO device descriptor
ip- Initialization parameter containing information about the MDIO SPI interface to be initialized.
Returns
0 in case of success, negative code otherwise

Variable Documentation

◆ mdio_spi_ops

struct no_os_mdio_ops mdio_spi_ops
Initial value:
= {
.init = mdio_spi_init,
.write = mdio_spi_write,
.read = mdio_spi_read,
.remove = mdio_spi_remove,
}
int mdio_spi_init(struct no_os_mdio_desc **dev, const struct no_os_mdio_init_param *ip)
Initialize the MDIO SPI Interface.
Definition mdio_spi.c:54