File indexing completed on 2025-05-11 08:23:51
0001 #ifndef BSP_EARLY_ENET_LINK_STATUS_H
0002 #define BSP_EARLY_ENET_LINK_STATUS_H
0003
0004
0005
0006
0007
0008 #include <rtems.h>
0009
0010 #ifdef __cplusplus
0011 extern "C" {
0012 #endif
0013
0014 typedef struct {
0015 int (*init)(int idx);
0016 int (*read_phy)(int idx, unsigned reg);
0017 int (*write_phy)(int idx, unsigned reg, unsigned val);
0018 const char *name;
0019 unsigned char num_slots;
0020 unsigned char initialized;
0021 } rtems_bsdnet_early_link_check_ops;
0022
0023 int
0024 BSP_early_check_link_status(int unit, rtems_bsdnet_early_link_check_ops *ops);
0025
0026 #ifdef __cplusplus
0027 }
0028 #endif
0029
0030 #endif