#define ADIN1300_LNK_STAT_CHNG_IRQ_MASK
Definition: adin1300.h:54
Definition: iio_adin1300.h:12
#define MAX24287_AN_RX
Definition: max24287.h:29
#define MAX24287_AN_EXP
Definition: max24287.h:31
Definition: iio_max24287.h:7
Structure describing a callback to be registered.
Definition: no_os_irq.h:142
@ ADIN1300_10_BASE_T_FULLDUPLEX
Definition: adin1300.h:115
Definition: mdio_bitbang.h:38
Header file of IRQ interface.
int32_t no_os_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Register a callback to handle the irq events.
Definition: no_os_irq.c:92
#define ADIN1300_IRQ_MASK
Definition: adin1300.h:52
rj45_led
Definition: led.h:4
@ MAX24287_SGMII
Definition: max24287.h:85
struct max24287_desc * dev
Definition: iio_max24287.h:8
#define MAX24287_PAGE_IE
Definition: max24287.h:52
void adin1300_int(void *context)
Definition: net.c:23
Header file of Delay functions.
int adin1300_write(struct adin1300_desc *dev, uint32_t addr, uint16_t val)
Definition: adin1300.c:120
int max24287_write(struct max24287_desc *dev, uint8_t addr, uint16_t val)
Definition: max24287.c:112
int max24287_config_serial(struct max24287_desc *dev, enum max24287_serial ser, enum max24287_speed speed)
Definition: max24287.c:200
@ rj45_led_off
Definition: led.h:5
@ MAX24287_1000_FULLDUPLEX
Definition: max24287.h:95
enum adin1300_speed adin1300_resolved_speed(struct adin1300_desc *dev)
Definition: adin1300.c:258
#define ADIN1300_GE_B10_REGEN_PRE_MSK
Definition: adin1300.h:111
max24287_speed
Definition: max24287.h:89
Definition: adin1300.h:146
int32_t no_os_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: no_os_gpio.c:124
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:79
@ ADIN1300_1000_BASE_T_FULLDUPLEX
Definition: adin1300.h:119
int adin1300_autoneg(struct adin1300_desc *dev, bool on)
Definition: adin1300.c:239
int adin1300_init(struct adin1300_desc **dev, struct adin1300_init_param *param)
Definition: adin1300.c:9
#define ADIN1300_IRQ_STATUS
Definition: adin1300.h:53
int32_t no_os_irq_set_priority(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, uint32_t priority_level)
Set the priority for an interrupt.
Definition: no_os_irq.c:216
@ ADIN1300_GP_CLK_RECOVERED
Definition: adin1300.h:127
int max24287_read(struct max24287_desc *dev, uint8_t addr, uint16_t *val)
Definition: max24287.c:129
#define MAX24287_GPIOCR1
Definition: max24287.h:56
@ MAX24287_RGMII
Definition: max24287.h:80
void * ctx
Definition: no_os_irq.h:146
int adin1300_read(struct adin1300_desc *dev, uint32_t addr, uint16_t *val)
Definition: adin1300.c:126
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition: maxim_irq.c:657
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
Header file for MDIO interface driver.
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:111
Definition: max24287.h:100
struct no_os_irq_ctrl_desc * nvic
Definition: net.c:18
#define MAX24287_AN_EN_MASK
Definition: max24287.h:14
struct no_os_mdio_ops mdio_bitbang_ops
Definition: mdio_bitbang.c:188
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
#define MAX24287_AN_START_MASK
Definition: max24287.h:15
#define MAX24287_AN_ADV
Definition: max24287.h:23
@ ADIN1300_100_BASE_TX_FULLDUPLEX
Definition: adin1300.h:117
int max24287_init(struct max24287_desc **dev, struct max24287_init_param *param)
Definition: max24287.c:9
struct no_os_gpio_init_param * reset_param
Definition: max24287.h:101
void(* callback)(void *context)
Definition: no_os_irq.h:144
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
Definition: max24287.h:109
Definition: adin1300.h:157
struct max24287_desc * max24287
Definition: net.c:17
#define MAX24287_IR
Definition: max24287.h:51
Definition: iio_max24287.h:12
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
#define ADIN1300_GE_B10_REGEN_PRE
Definition: adin1300.h:110
#define MAX24287_BMCR
Definition: max24287.h:12
int32_t adin1300_iio_init(struct adin1300_iio_desc **iiodev, struct adin1300_iio_init_param *init_param)
Definition: iio_adin1300.c:145
int max24287_config_parallel(struct max24287_desc *dev, enum max24287_parallel par, enum max24287_speed speed)
Definition: max24287.c:162
void led_rj45(enum rj45_led state)
#define NULL
Definition: wrapper.h:64
Header file for MDIO implementation using gpio bit banging.
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
int max24287_write_bits(struct max24287_desc *dev, uint8_t addr, uint16_t val, uint16_t bitmask)
Definition: max24287.c:146
int net_init(struct adin1300_iio_desc **adin1300_iio, struct max24287_iio_desc **max24287_iio, unsigned int speed)
Definition: net.c:90
#define MAX24287_AN_RX_PAGE
Definition: max24287.h:32
#define ADIN1300_HW_IRQ_EN_MASK
Definition: adin1300.h:56
struct no_os_gpio_init_param * reset_param
Definition: adin1300.h:147
struct adin1300_desc * dev
Definition: iio_adin1300.h:8
int32_t max24287_iio_init(struct max24287_iio_desc **iiodev, struct max24287_iio_init_param *init_param)
Definition: iio_max24287.c:131
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
volatile bool selfchange
Definition: net.c:21
int net_init(struct adin1300_iio_desc **adin1300_iio, struct max24287_iio_desc **max24287_iio, unsigned int speed)
Definition: net.c:90
Header file of GPIO Interface.
@ NO_OS_GPIO_IRQ
Definition: no_os_irq.h:85
int adin1300_config_speed(struct adin1300_desc *dev, enum adin1300_speed speed_cap)
Definition: adin1300.c:194
Definition: iio_adin1300.h:7
int32_t no_os_irq_trigger_level_set(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level trig)
Set interrupt trigger level.
Definition: no_os_irq.c:162
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
#define MAX24287_DPLX_MASK
Definition: max24287.h:26
void max24287_int(void *context)
Definition: net.c:60
adin1300_speed
Definition: adin1300.h:113
Definition: no_os_irq.h:123
const struct no_os_irq_platform_ops max_gpio_irq_ops
maxim platform specific gpio irq platform ops structure
Definition: maxim_gpio_irq.c:375
#define MAX24287_SPD_MASK
Definition: max24287.h:27
struct adin1300_desc * adin1300
Definition: net.c:16